diff options
Diffstat (limited to 'src.scim2/utils/string.h')
-rwxr-xr-x | src.scim2/utils/string.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src.scim2/utils/string.h b/src.scim2/utils/string.h new file mode 100755 index 0000000..549595e --- /dev/null +++ b/src.scim2/utils/string.h @@ -0,0 +1,25 @@ +#include <wchar.h> + +int del_char(char * str, int posicion); +int del_wchar(wchar_t * str, int posicion); + +int del_range_chars(char * str, int d, int h); +int del_range_wchars(wchar_t * str, int d, int h); + +int add_char(char * str, char c, int posicion); +int add_wchar(wchar_t * str, wchar_t c, int posicion); + +void subst(char * s, char from, char to); +int is_idchar (int d); +int str_in_str(char * s, char * b); +int wstr_in_wstr(wchar_t * s, wchar_t * b); +char ** split(char *string, const char delimiter, int lastnull); +char * ltrim(char *string, char junk); +char * rtrim(char * string, char junk); +int isnumeric(char * string); +int clean_carrier(char * string); +char * xstrtok(char * line, char * delims); +int count_word_occurrences(char * s, char * word, int overlap); +char * str_replace ( const char * string, const char * substr, const char * replacement); +void uppercase(char * sPtr); +int sc_isprint(int d); |