31 #ifndef _OSRTSTRING_H_ 32 #define _OSRTSTRING_H_ 36 #pragma warning(disable: 4514) 41 #include "rtxsrc/OSRTStringIF.h" 96 inline const char*
data()
const {
return getValue(); }
111 return (
const OSUTF8CHAR*)mpValue;
118 int indexOf (
char ch)
const;
123 inline size_t length()
const {
return OSCRTLSTRLEN(mpValue); }
130 virtual void print (
const char* name) {
139 virtual EXTRTMETHOD
void setValue (
const char* str);
146 virtual EXTRTMETHOD
void setValue (
const OSUTF8CHAR* str);
156 bool toInt (OSINT32& value)
const;
164 bool toSize (OSSIZE& value)
const;
172 bool toUInt (OSUINT32& value)
const;
174 #if !defined(_NO_INT64_SUPPORT) 181 bool toUInt64 (OSUINT64& value)
const;
189 inline operator const char* (void)
const {
void rtxPrintCharStr(const char *name, const char *cstring)
const char * data() const
Definition: OSRTString.h:96
virtual OSRTStringIF * clone()
Definition: OSRTString.h:91
virtual void print(const char *name)
Definition: OSRTString.h:130
virtual const OSUTF8CHAR * getUTF8Value() const
Definition: OSRTString.h:110
Definition: OSRTString.h:49
size_t length() const
Definition: OSRTString.h:123
virtual const char * getValue() const
Definition: OSRTString.h:102