00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef EPR_STRING_H_INCL
00019 #define EPR_STRING_H_INCL
00020
00021 #ifdef __cplusplus
00022 extern "C"
00023 {
00024 #endif
00025
00026 #include <stdlib.h>
00027 #include <string.h>
00028 #include <assert.h>
00029
00030 char* epr_assign_string(char** str_clone, const char* str);
00031 char* epr_create_string(unsigned int length);
00032 char* epr_clone_string(const char* str);
00033 void epr_cut_string(char** sub_str, const char* str, int start, int length);
00034 char* epr_sub_string(const char* str, int start, int length);
00035 boolean epr_equal_names(const char* name1, const char* name2);
00036 void epr_free_string(char* str);
00037 char* epr_str_tok(const char* str, const char* seps, int* pos);
00038 char* epr_str_tok_tok(const char* str, const char* seps, const char* exceptions, uint* pos);
00039 int epr_find_first_not_white(const char* str);
00040 int epr_find_last_not_white(const char* str);
00041 char* epr_trim_string(char* str);
00042 char* epr_strip_string_r(char* str);
00043 int epr_if_no_letters(const char* str);
00044 int epr_numeral_suspicion(const char* str);
00045 int epr_get_positive_int(const char* str);
00046 void epr_free_and_null_string(char** str);
00047 int epr_if_no_scaling(const char* str);
00048
00052 int stricmp(const char* s1, const char* s2);
00053
00054 #ifdef __cplusplus
00055 }
00056 #endif
00057 #endif