00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00033 #ifndef _RTXCHARSTR_H_
00034 #define _RTXCHARSTR_H_
00035
00036 #include "rtxsrc/rtxContext.h"
00037
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041
00051 EXTERNRT int rtxStricmp (const char* str1, const char* str2);
00052
00063 EXTERNRT char* rtxStrcat (char* dest, size_t bufsiz, const char* src);
00064
00076 EXTERNRT char* rtxStrncat
00077 (char* dest, size_t bufsiz, const char* src, size_t nchars);
00078
00089 EXTERNRT char* rtxStrcpy (char* dest, size_t bufsiz, const char* src);
00090
00106 EXTERNRT char* rtxStrncpy
00107 (char* dest, size_t bufsiz, const char* src, size_t nchars);
00108
00120 EXTERNRT char* rtxStrdup (OSCTXT* pctxt, const char* src);
00121
00135 EXTERNRT const char* rtxStrJoin
00136 (char* dest, size_t bufsiz, const char* str1, const char* str2,
00137 const char* str3, const char* str4, const char* str5);
00138
00151 EXTERNRT char* rtxStrDynJoin
00152 (OSCTXT* pctxt, const char* str1, const char* str2,
00153 const char* str3, const char* str4, const char* str5);
00154
00165 EXTERNRT int rtxIntToCharStr
00166 (OSINT32 value, char* dest, size_t bufsiz, char padchar);
00167
00178 EXTERNRT int rtxUIntToCharStr
00179 (OSUINT32 value, char* dest, size_t bufsiz, char padchar);
00180
00181 #if !defined(_NO_INT64_SUPPORT)
00182
00192 EXTERNRT int rtxInt64ToCharStr
00193 (OSINT64 value, char* dest, size_t bufsiz, char padchar);
00194
00205 EXTERNRT int rtxUInt64ToCharStr
00206 (OSUINT64 value, char* dest, size_t bufsiz, char padchar);
00207
00208 #endif
00209
00220 EXTERNRT int rtxSizeToCharStr
00221 (size_t value, char* dest, size_t bufsiz, char padchar);
00222
00233 EXTERNRT int rtxHexCharsToBinCount (const char* hexstr, size_t nchars);
00234
00247 EXTERNRT int rtxHexCharsToBin
00248 (const char* hexstr, size_t nchars, OSOCTET* binbuf, size_t bufsize);
00249
00259 EXTERNRT int rtxCharStrToInt (const char* cstr, OSINT32* pvalue);
00260
00261 EXTERNRT int rtxCharStrToInt8 (const char* cstr, OSINT8* pvalue);
00262 EXTERNRT int rtxCharStrToInt16 (const char* cstr, OSINT16* pvalue);
00263 EXTERNRT int rtxCharStrToUInt (const char* cstr, OSUINT32* pvalue);
00264 EXTERNRT int rtxCharStrToUInt8 (const char* cstr, OSUINT8* pvalue);
00265 EXTERNRT int rtxCharStrToUInt16 (const char* cstr, OSUINT16* pvalue);
00266 EXTERNRT int rtxCharStrToUInt64 (const char* cstr, OSUINT64* pvalue);
00267
00271 #ifdef __cplusplus
00272 }
00273 #endif
00274
00275 #endif