PIPS
newgen_auto_string.h
Go to the documentation of this file.
1 /* string.c */
2 extern string gen_strndup(string /*s*/, size_t /*n*/);
3 extern string gen_strndup0(string /*s*/, size_t /*n*/);
4 extern char *i2a(int /*i*/);
5 extern void init_the_buffer(void);
6 extern string append_to_the_buffer(const char */*s*/);
7 extern string get_the_buffer(void);
8 extern string concatenate(const char */*next*/, ...);
9 extern string strupper(string /*s1*/, const char */*s2*/);
10 extern string strlower(string /*s1*/, const char */*s2*/);
11 extern string bool_to_string(bool /*b*/);
12 extern string nth_suffix(int /*i*/);
13 extern string find_suffix(const string /*s*/, const string /*suffix*/);
14 extern string chop_newline(string /*s*/, bool /*flg*/);
15 extern string remove_newline_of_string(string /*s*/);
16 extern list strsplit(const char */*s*/, const char */*d*/);
17 extern int gen_qsort_string_cmp(const void */*s1*/, const void */*s2*/);
18 extern void str_prepend(string */*dst*/, string /*prefix*/);
19 extern void str_append(string */*dst*/, string /*suffix*/);
string nth_suffix(int)
Definition: string.c:250
string gen_strndup0(string, size_t)
Like strdup() but copy at most n characters.
Definition: string.c:83
string gen_strndup(string, size_t)
string.c
Definition: string.c:59
string get_the_buffer(void)
Definition: string.c:169
string append_to_the_buffer(const char *)
If the string is undefined, just skip it.
Definition: string.c:145
void str_append(string *, string)
Append the suffix to the string.
Definition: string.c:356
char * i2a(int)
I2A (Integer TO Ascii) yields a string for a given Integer.
Definition: string.c:121
string strlower(string, const char *)
Definition: string.c:228
string find_suffix(const string, const string)
Find if a string s end with a suffix.
Definition: string.c:273
string chop_newline(string, bool)
Definition: string.c:294
void str_prepend(string *, string)
Prepend the prefix to the string.
Definition: string.c:342
list strsplit(const char *, const char *)
Definition: string.c:318
int gen_qsort_string_cmp(const void *, const void *)
Callback for sorting string with qsort.
Definition: string.c:332
string bool_to_string(bool)
Definition: string.c:243
string strupper(string, const char *)
Definition: string.c:213
void init_the_buffer(void)
Definition: string.c:127
string remove_newline_of_string(string)
Definition: string.c:309
string concatenate(const char *,...)
Return the concatenation of the given strings.
Definition: string.c:183
The structure used to build lists in NewGen.
Definition: newgen_list.h:41