#ifndef __BEE2_STR_H
#define __BEE2_STR_H
#include "bee2/defs.h"
#ifdef __cplusplus
extern "C" {
#endif
size_t strLen(
const char* str
);
bool_t strIsValid(
const char* str
);
#define strIsNullOrValid(str)\
((str) == 0 || strIsValid(str))
void strCopy(
char* dest,
const char* src
);
int strCmp(
const char* str1,
const char* str2
);
#define strEq(str1, str2) (strCmp(str1, str2) == 0)
void strSet(
char* str,
char ch
);
bool_t strIsNumeric(
const char* str
);
bool_t strIsAlphanumeric(
const char* str
);
bool_t strIsPrintable(
const char* str
);
bool_t strContains(
const char* str,
char ch
);
bool_t strStartsWith(
const char* str,
const char* prefix
);
bool_t strEndsWith(
const char* str,
const char* suffix
);
void strRev(
char* str
);
#ifdef __cplusplus
}
#endif
#endif