Main Page | Modules | Files | Functions | Code Elements | Data Structures | Deprecated

fclasses/tc_string.h

Go to the documentation of this file.
00001 /*==============================================================================
00002                 Copyright (c) 2003-2005 UGS Corporation
00003                    Unpublished - All Rights Reserved
00004  ==============================================================================*/
00005 
00012 /*  */
00013 
00014 #ifndef TC_STRING_H
00015 #define TC_STRING_H
00016 
00022 #include <unidefs.h>
00023 #include <string.h>
00024 #include <fclasses/libfclasses_exports.h>
00025 
00032 #ifdef __cplusplus
00033 extern "C"{
00034 #endif
00035 
00036 extern FCLASSES_API size_t tc_strlen(
00037     const char*            s
00038     );
00039 
00040 extern FCLASSES_API int tc_strcmp(
00041     const char*         s1,
00042     const char*         s2
00043     );
00044 
00045 extern FCLASSES_API int tc_strcasecmp(
00046     const char*         s1,
00047     const char*         s2
00048     );
00049 
00050 extern FCLASSES_API int tc_strncasecmp(
00051     const char*         s1,
00052     const char*         s2,
00053     size_t              len
00054     );
00055 
00056 extern FCLASSES_API char* tc_strcpy(
00057     char*                 s1,
00058     const char*           s2
00059     );
00060 
00061 extern FCLASSES_API char* tc_strncpy(
00062     char*                 s1,
00063     const char*           s2,
00064     size_t                size
00065     );
00066 
00067 extern FCLASSES_API char* tc_strcat(
00068     char*                 s1,
00069     const char*           s2
00070     );
00071 
00072 extern FCLASSES_API char* tc_strstr(
00073     const char*           s1,
00074     const char*           s2
00075     );
00076 
00077 extern FCLASSES_API void tc_strupr(
00078     const char*          str,
00079     char**               ustr
00080     );
00081 
00082 //Convert a string of characters to lower case.
00083 extern FCLASSES_API void tc_strlwr(
00084     const char*          str, 
00085     char**               lstr 
00086     );
00087 
00088 extern FCLASSES_API signed long long tc_atoll(
00089     const char*          str
00090     );
00091 
00096 extern FCLASSES_API void tc_strdup(
00097     const char*          str,
00098     char**               dstr
00099     );
00100 
00101 extern FCLASSES_API char* tc_strtok(
00102     char*                 cptr,
00103     const char*           seps
00104     );
00105 
00106 extern FCLASSES_API char* tc_strtok_and_delimiter(
00107     char*                 cptr,
00108     const char*           seps,
00109     char**                matchedSep
00110     );
00111 
00112 extern FCLASSES_API void tc_str_contains_wildcard(
00113     const char*          n,
00114     logical*             contained
00115     );
00116 
00117 extern FCLASSES_API void tc_str_contains_wildcard_at(
00118     const char*          n,
00119     logical*             contained,
00120     int*                 position
00121     );
00122 
00123 extern FCLASSES_API char* STRNG_mb_strncpy(
00124     char*                 szOutputString,
00125     const char*           szInputString,
00126     const int             iMaxLength
00127     );
00128 
00129 extern FCLASSES_API char* STRNG_mb_strncat(
00130     char*                 szOutputString,
00131     const char*           szInputString,
00132     const int             iMaxLength
00133     );
00134 
00135 extern FCLASSES_API logical STRNG_mb_yesno(
00136     const char*             szInputString
00137     );
00138 
00145 extern FCLASSES_API void STRNG_MegaBytesToText(
00146     long int             megaBytes,
00147     char                 text[50]
00148     );
00149 
00153 extern FCLASSES_API void STRNG_MegaBytesToText2(
00154     long int             megaBytes,            
00155     char                 **text                
00156     );
00157 
00165 extern FCLASSES_API void STRNG_to_lower(
00166     char*                inputString
00167     );
00168 
00176 extern FCLASSES_API void STRNG_to_upper(
00177     char*                inputString
00178     );
00179 
00180 
00185 extern FCLASSES_API void STRNG_to_lower2(
00186     const char*           str,
00187     char**                ustr
00188     );
00189 
00194 extern FCLASSES_API void STRNG_to_upper2(
00195     const char*           str,
00196     char**                ustr
00197     );
00198 
00202 extern FCLASSES_API void STRNG_clean_up_string(
00203     char*                inputString
00204     );
00205 
00209 extern FCLASSES_API void STRNG_limit_characters(
00210     char*                inputString,
00211     const char*          characterSet,
00212     char                 replacement
00213     );
00214 
00219 extern FCLASSES_API char* STRNG_find_first_char(
00220     const char*           inputString,
00221     const char            match
00222     );
00223 
00224 extern FCLASSES_API char* STRNG_find_last_char(
00225     const char*           inputString,
00226     const char            match
00227     );
00228 
00232 extern FCLASSES_API int STRNG_quote_xml(
00233     const char*         input,      
00234     char**              output      
00235     );
00236 
00246 extern FCLASSES_API char* stripBlanks(
00247     char*                 str
00248     );
00249 
00253 extern FCLASSES_API logical STRNG_ends_with(
00254     const char*             theString,
00255     const char*             theEndString
00256     );
00257 
00262 extern FCLASSES_API int STRNG_replace_str(
00263     const char*         input,
00264     const char*         strToBereplaced,
00265     const char*         strToBeUsedInstead,
00266     char**              output
00267     );
00268 
00271 #ifdef __cplusplus
00272 }
00273 #endif
00274 
00275 #include <fclasses/libfclasses_undef.h>
00276 #endif