ITK Function Reference

(V10000.1.0.60_20160308.00)
tc_string.h
Go to the documentation of this file.
1 /*==============================================================================
2  Copyright (c) 2003-2005 UGS Corporation
3  Unpublished - All Rights Reserved
4  ==============================================================================*/
5 
12 /* */
13 
14 #ifndef TC_STRING_H
15 #define TC_STRING_H
16 
22 #include <unidefs.h>
23 #include <string.h>
24 #include <fclasses/libfclasses_exports.h>
25 
32 #ifdef __cplusplus
33 extern "C"{
34 #endif
35 
36 extern FCLASSES_API size_t tc_strlen(
37  const char* s
38  );
39 
40 extern FCLASSES_API int tc_strcmp(
41  const char* s1,
42  const char* s2
43  );
44 
45 extern FCLASSES_API int tc_strcasecmp(
46  const char* s1,
47  const char* s2
48  );
49 
50 extern FCLASSES_API int tc_strncasecmp(
51  const char* s1,
52  const char* s2,
53  size_t len
54  );
55 
56 extern FCLASSES_API char* tc_strcpy(
57  char* s1,
58  const char* s2
59  );
60 
61 extern FCLASSES_API char* tc_strncpy(
62  char* s1,
63  const char* s2,
64  size_t size
65  );
66 
67 extern FCLASSES_API char* tc_strcat(
68  char* s1,
69  const char* s2
70  );
71 
72 extern FCLASSES_API char* tc_strstr(
73  const char* s1,
74  const char* s2
75  );
76 
77 extern FCLASSES_API void tc_strupr(
78  const char* str,
79  char** ustr
80  );
81 
83 extern FCLASSES_API void tc_strlwr(
84  const char* str,
85  char** lstr
86  );
87 
88 extern FCLASSES_API signed long long tc_atoll(
89  const char* str
90  );
91 
96 extern FCLASSES_API void tc_strdup(
97  const char* str,
98  char** dstr
99  );
100 
101 extern FCLASSES_API char* tc_strtok(
102  char* cptr,
103  const char* seps
104  );
105 
106 extern FCLASSES_API char* tc_strtok_and_delimiter(
107  char* cptr,
108  const char* seps,
109  char** matchedSep
110  );
111 
112 extern FCLASSES_API void tc_str_contains_wildcard(
113  const char* n,
114  logical* contained
115  );
116 
117 extern FCLASSES_API void tc_str_contains_wildcard_at(
118  const char* n,
119  logical* contained,
120  int* position
121  );
122 
123 extern FCLASSES_API char* STRNG_mb_strncpy(
124  char* szOutputString,
125  const char* szInputString,
126  const int iMaxLength
127  );
128 
129 extern FCLASSES_API char* STRNG_mb_strncat(
130  char* szOutputString,
131  const char* szInputString,
132  const int iMaxLength
133  );
134 
135 extern FCLASSES_API logical STRNG_mb_yesno(
136  const char* szInputString
137  );
138 
145 extern FCLASSES_API void STRNG_MegaBytesToText(
146  long int megaBytes,
147  char text[50]
148  );
149 
153 extern FCLASSES_API void STRNG_MegaBytesToText2(
154  long int megaBytes,
155  char **text
156  );
157 
165 extern FCLASSES_API void STRNG_to_lower(
166  char* inputString
167  );
168 
176 extern FCLASSES_API void STRNG_to_upper(
177  char* inputString
178  );
179 
180 
185 extern FCLASSES_API void STRNG_to_lower2(
186  const char* str,
187  char** ustr
188  );
189 
194 extern FCLASSES_API void STRNG_to_upper2(
195  const char* str,
196  char** ustr
197  );
198 
202 extern FCLASSES_API void STRNG_clean_up_string(
203  char* inputString
204  );
205 
209 extern FCLASSES_API void STRNG_limit_characters(
210  char* inputString,
211  const char* characterSet,
212  char replacement
213  );
214 
219 extern FCLASSES_API char* STRNG_find_first_char(
220  const char* inputString,
221  const char match
222  );
223 
224 extern FCLASSES_API char* STRNG_find_last_char(
225  const char* inputString,
226  const char match
227  );
228 
232 extern FCLASSES_API int STRNG_quote_xml(
233  const char* input,
234  char** output
235  );
236 
246 extern FCLASSES_API char* stripBlanks(
247  char* str
248  );
249 
253 extern FCLASSES_API logical STRNG_ends_with(
254  const char* theString,
255  const char* theEndString
256  );
257 
262 extern FCLASSES_API int STRNG_replace_str(
263  const char* input,
264  const char* strToBereplaced,
265  const char* strToBeUsedInstead,
266  char** output
267  );
268 
278 extern FCLASSES_API int STRNG_is_double(
279  const char *val,
280  double *n
281  );
282 
300 extern FCLASSES_API int STRNG_is_date(
301  const char *val,
302  date_t *d
303  );
304 
315 extern FCLASSES_API int STRNG_is_char(
316  const char *val,
317  char *c
318  );
319 
329 extern FCLASSES_API int STRNG_is_logical(
330  const char *val,
331  logical *n
332  );
333 
344 extern FCLASSES_API int STRNG_is_integer(
345  const char *val,
346  int *n
347  );
348 
374 extern FCLASSES_API logical STRNG_compare_wildcard_i(
375  char escape,
376  char any,
377  char one,
378  const char *pattern,
379  const char *match
380  );
381 
384 #ifdef __cplusplus
385 }
386 #endif
387 
388 #include <fclasses/libfclasses_undef.h>
389 #endif