41#include "ytStrArray.h"
42#include "ytIntArray.h"
48#define ytStr_copy(x) ytStr_copym(x,__FILE__,__LINE__)
49char * ytStr_copym(
const char * str,
const char * file,
int line);
56char * ytStr_deserialize(ytByte ** ptr);
59int ytStr_debug(
int argc,
char * argv[]);
63#define ytStr_strcasecmp(s1,s2) _stricmp(s1,s2)
66#define ytStr_strcasecmp(s1,s2) strcasecmp(s1,s2)
char * ytStr_substr(const char *str, size_t length)
Extracts the substring.
Definition: ytStr.c:58
char * ytStr_substr2(const char *str, const char *end)
Extracts the substring.
Definition: ytStr.c:75
ytStrArray * ytStr_split(char *str, const char delim, ytStrArray *ar)
Splits the string into tokens.
Definition: ytStr.c:193
void ytStr_serialize(const char *value, ytByte **pptr)
Serializes the character string.
Definition: ytStr.c:162
size_t ytStr_size(const char *value)
Returns the serialized size of the string.
Definition: ytStr.c:148
char * ytStr_copy(const char *str)
Returns the copy of the string.
Definition: ytStr.c:130
char * ytStr_trim(char *str)
Removes white spaces from the both ends of the given string.
Definition: ytStr.c:102
ytIntArray * ytStr_splitPos(char *str, const char delim, ytIntArray *ar)
Splits the string into tokens and returns their positions.
Definition: ytStr.c:224