HDF5 Extras  0.0.1
Convenience Functions for using HDF5 Better
string_funcs.h
Go to the documentation of this file.
1 #ifndef STRING_FUNCS_H_
2 #define STRING_FUNCS_H_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
10 #define TRUE 1
11 #define FALSE 0
12 
13 char *substring(const char *string, int start, int end);
14 int frstch(const char *string);
15 int lastch(const char *string);
16 void str_toupper(char *str);
17 void str_tolower(char *str);
18 void rmblanks(char *str);
19 void rmcommas(char *str);
20 int nextdig(const char *chvarb, int start);
21 int nextcomma(const char *chvarb, int start);
22 int count_commas(const char *chvarb);
23 int nextbl(const char *chvarb, int start);
24 char *binary_strstr( const char *string, /* possibly a binary string */
25  int length, /* #chars in string */
26  const char *searchString); /* must not be binary string */
27 char *find_first_char(char *string, char c);
28 char *find_last_char(char *string, char c);
29 int ends_with(const char *string, const char *ending);
30 void excise(char *string, int start, int num);
31 void strinsert(char *target, int index, const char *newstuff);
32 void char_substitute(char *target, char toreplace, char newchar);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif