22 #ifndef M4_CORE_CSTRING_H 23 #define M4_CORE_CSTRING_H 25 #include "common/str-array.h" 26 #include "m4/m4_types.h" 35 for (uint i = 0; i <
size(); ++i) {
36 if ((*
this)[i] == str)
43 return indexOf(str) != -1;
46 int idx = indexOf(str);
52 #define STR_PARSE_BUFFER_SIZE 255 54 bool charIsIn(
char ch,
char *str);
55 int16 char_IsIn(
char ch,
char *str);
56 int dtoi(
char *
string);
57 bool stringIsInt(
char *str);
58 bool stringIsFloat(
char *str);
60 int16 stringIsIn(
char *str,
char *strings[]);
62 int32 cstrlen(
const char *s);
63 void cstrcpy(
char *dest,
const char *src);
64 void cstrncpy(
char *dest,
const char *src,
const int16 max_len);
65 char *cstrupr(
char *src);
66 char *cstr_lower(
char *src);
67 int xtoi(
char *
string);
68 int strpos(
char *key,
char *target);
69 void strdel(
char *inp,
int indx,
int count);
70 void strseg(
char *work,
char *work2,
int indx,
int count);
71 void strins(
char *work,
char *newStr,
int indx);
72 void str_purge_trailing_spaces(
char *myline);
73 void str_purge_all_spaces(
char *text);
74 char *str_strip_final_lf(
char *mystring);
75 void str_add_final_lf(
char *mystring);
76 void str_parse_init(
char *instring,
char delimiter);
77 char *str_parse(
char *out);
79 bool cstr_isdigit(
char c);
81 #define strrun(a,b,c) memset(a,b,c)
Array< String > StringArray
Definition: str-array.h:43
Definition: database.h:28
size_type size() const
Definition: array.h:315
String remove_at(size_type idx)
Definition: array.h:260