Modifikátor | Jméno | Parametry | Dokumentace |
char * | b_strncat | (char *dest,const char *source, size_t count) | jako strncat, ale pocet znaku je omezeni delky retezce celkem, vcetne NULL znaku, ne jen pridavaneho retezce
|
char * | b_strncpy | (char *dest,const char *source, size_t count) | jako strncpy, ale posledni znak vzdy nastavi na NULL
|
int | empty | (const char *a) | vrati 1 pokud je retezec NULL nebo prazdny
|
int | eq | (const char *a,const char *b) | vrati 1 pokud se retezce rovnaji
|
int | eqi | (const char *a,const char *b) | vrati 1 pokud se retezce rovnaji (case insensitive)
|
void | str_addc | (char *s,char c,size_t maxlen) | priplacne k retezci s znak c, pokud by tim neprekrocil delku maxlen
|
char * | str_chop_until | (char **def,const char *delim) | z retezce vecme cast az po prvni delimiter (libovolny znak z retezce delim) vrati nove alokovany retezec.
|
int | str_count | (const char *string,char target) | vraci pocet znaku "target" v retezci "string"
|
int | str_endwithi | (const char *str,const char *what) | vraci true pokud retezec str konci retezcem what (case insensitive)
|
void | str_exact | (char **s) | realokace retezce na tolik, kolik v pameti skutecne zabira
|
void | str_free | (char *s) | odalokace retezce s kontrolou na NULL pointery
|
char * | str_itoa | (int n,char *buf) | prevedeni cisla na retezec (v desitkove soustave)
|
char * | str_new | (size_t chars) | alokace noveho retezce v pameti. Naalokuje retexec pro chars znaku
|
char * | str_nreplace | (const char *ntemplate,int n) | znak # v ntemplate nahradi cislem j a vrati novy retezec
|
char * | str_plus | (const char *str1,const char *str2) | vrati nove naalokovany retezec, obsahujici druhy retezec prilepeny za prvnim (podobne jako strcat)
|
void | str_replace | (char *s,char c,char r) | nahradi v retezci jeden znak jinym
|
char * | strdup | (const char *s) | duplikace retezce
|
char * | strndup | (const char *s,int n) | vezme prvnich n znaku z retezce s a vrati je v novem naalokovanem retezci
|