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
00104 EXTERNRT char* rtxStrncpy
00105 (char* dest, size_t bufsiz, const char* src, size_t nchars);
00106
00118 EXTERNRT char* rtxStrdup (OSCTXT* pctxt, const char* src);
00119
00133 EXTERNRT const char* rtxStrJoin
00134 (char* dest, size_t bufsiz, const char* str1, const char* str2,
00135 const char* str3, const char* str4, const char* str5);
00136
00149 EXTERNRT const char* rtxStrDynJoin
00150 (OSCTXT* pctxt, const char* str1, const char* str2,
00151 const char* str3, const char* str4, const char* str5);
00152
00163 EXTERNRT int rtxIntToCharStr
00164 (OSINT32 value, char* dest, size_t bufsiz, char padchar);
00165
00176 EXTERNRT int rtxUIntToCharStr
00177 (OSUINT32 value, char* dest, size_t bufsiz, char padchar);
00178
00179 #if !defined(_NO_INT64_SUPPORT)
00180
00190 EXTERNRT int rtxInt64ToCharStr
00191 (OSINT64 value, char* dest, size_t bufsiz, char padchar);
00192
00203 EXTERNRT int rtxUInt64ToCharStr
00204 (OSUINT64 value, char* dest, size_t bufsiz, char padchar);
00205
00206 #endif
00207
00218 EXTERNRT int rtxSizeToCharStr
00219 (size_t value, char* dest, size_t bufsiz, char padchar);
00220
00231 EXTERNRT int rtxHexCharsToBinCount (const char* hexstr, size_t nchars);
00232
00245 EXTERNRT int rtxHexCharsToBin
00246 (const char* hexstr, size_t nchars, OSOCTET* binbuf, size_t bufsize);
00247
00257 EXTERNRT int rtxCharStrToInt (const char* cstr, OSINT32* pvalue);
00258
00259 EXTERNRT int rtxCharStrToInt8 (const char* cstr, OSINT8* pvalue);
00260 EXTERNRT int rtxCharStrToInt16 (const char* cstr, OSINT16* pvalue);
00261 EXTERNRT int rtxCharStrToUInt (const char* cstr, OSUINT32* pvalue);
00262 EXTERNRT int rtxCharStrToUInt8 (const char* cstr, OSUINT8* pvalue);
00263 EXTERNRT int rtxCharStrToUInt16 (const char* cstr, OSUINT16* pvalue);
00264
00268 #ifdef __cplusplus
00269 }
00270 #endif
00271
00272 #endif