41#define odaIsValidString(lpch) (true)
116#if defined(_MSC_VER) && _MSC_VER >= 1300
148 return (
getData()->nDataLength == 0 &&
169 return getData()->unicodeBuffer[charIndex];
181 return getAt(charIndex);
193#if defined(_MSC_VER) && defined(_WIN32) && defined(_DEBUG) && defined(ODA_LINT)
194#define UPDATECONSTSTRINGDIAGNISTIC
199 #define updateConstStringDiagnostic(pAddr)
222#if defined(_MSC_VER) && _MSC_VER >= 1300
223 operator const __wchar_t*()
const
225 return reinterpret_cast<const __wchar_t*
>(c_str());
229 operator const char*()
const;
241#if defined(_MSC_VER) && _MSC_VER >= 1300
279#if defined(_MSC_VER) && _MSC_VER >= 1300
332 return odStrCmp((
const wchar_t*)
getData()->unicodeBuffer, (
const wchar_t*)otherString);
352#if defined(_MSC_VER) && _MSC_VER >= 1300
368 int compare(
const __wchar_t* otherString)
const {
return compare((
const OdChar*)otherString);}
426#if defined(_MSC_VER) && _MSC_VER >= 1300
442 __forceinline
int iCompare(
const __wchar_t* otherString)
const {
return iCompare((
const OdChar*)otherString);}
498#if defined(_MSC_VER) && _MSC_VER >= 1300
510 OdString spanIncluding(
const __wchar_t* charSet)
const{
return spanIncluding((
const OdChar*)charSet);}
539#if defined(_MSC_VER) && _MSC_VER >= 1300
551 OdString spanExcluding(
const __wchar_t* charSet)
const{
return spanExcluding((
const OdChar*)charSet);}
635#if defined(_MSC_VER) && _MSC_VER >= 1300
646 OdString& trimRight(
const __wchar_t* whiteChars){
return trimRight((
const OdChar*)whiteChars);}
685#if defined(_MSC_VER) && _MSC_VER >= 1300
696 OdString& trimLeft(
const __wchar_t* whiteChars){
return trimLeft((
const OdChar*)whiteChars);}
731#if defined(_MSC_VER) && _MSC_VER >= 1300
742 int replace(
const __wchar_t* oldString,
const __wchar_t* newString){
return replace((
const OdChar*)oldString, (
const OdChar*)newString);}
801#if defined(_MSC_VER) && _MSC_VER >= 1300
814 int insert(
int insertIndex,
const __wchar_t* insertString){
return insert(insertIndex,(
const OdChar*)insertString);}
902#if defined(_MSC_VER) && _MSC_VER >= 1300
921 int findOneOf(
const OdString& charSet)
const{
return findOneOf((
const OdChar*)charSet);}
923 int find(
const __wchar_t* searchString)
const{
return find((
const OdChar*)searchString);}
925 int find(
const OdString& searchString)
const{
return find((
const OdChar*)searchString);}
927 int find(
const __wchar_t* searchString,
int startIndex)
const{
return find((
const OdChar*)searchString,startIndex);}
929 int find(
const OdString& searchString,
int startIndex)
const{
return find((
const OdChar*)searchString,startIndex);}
940#if defined(_MSC_VER) && _MSC_VER >= 1300
961#if defined(_MSC_VER) && _MSC_VER >= 1300
970 inline OdString&
formatV(
const __wchar_t* formatString, va_list argList)
1037#ifdef NOT_IMPLEMENTED
1055 int collate(
const OdChar* otherString)
const;
1073 int iCollate(
const OdChar* otherString)
const;
1093 {
return getData()->nAllocLength; }
1223 {
return (
string == NULL) ? (int)0 : (int)
odStrLen((
const wchar_t*)
string); }
1260#if defined(_MSC_VER) && _MSC_VER >= 1300
1272 {
return s1.
compare(s2) == 0; }
1275 {
return s1.
compare(s2) == 0; }
1278 {
return s2.
compare(s1) == 0; }
1280#if defined(_MSC_VER) && _MSC_VER >= 1300
1289{
return s1.
compare(s2) == 0; }
1292{
return odStrCmpA((
const char*)s2, s1) == 0; }
1295 {
return s1.
compare(s2) != 0; }
1298 {
return s1.
compare(s2) != 0; }
1301 {
return s2.
compare(s1) != 0; }
1303#if defined(_MSC_VER) && _MSC_VER >= 1300
1312{
return s1.
compare(s2) != 0; }
1315{
return s2.
compare(s1) != 0; }
1318 {
return s1.
compare(s2) < 0; }
1321 {
return s1.
compare(s2) < 0; }
1324 {
return s2.
compare(s1) > 0; }
1326#if defined(_MSC_VER) && _MSC_VER >= 1300
1341 {
return s1.
compare(s2) > 0; }
1344 {
return s1.
compare(s2) > 0; }
1347 {
return s2.
compare(s1) < 0; }
1349#if defined(_MSC_VER) && _MSC_VER >= 1300
1363 {
return s1.
compare(s2) <= 0; }
1366 {
return s1.
compare(s2) <= 0; }
1369 {
return s2.
compare(s1) >= 0; }
1371#if defined(_MSC_VER) && _MSC_VER >= 1300
1379{
return s1.
compare(s2) <= 0; }
1382{
return s2.
compare(s1) >= 0; }
1385 {
return s1.
compare(s2) >= 0; }
1388 {
return s1.
compare(s2) >= 0; }
1391 {
return s2.
compare(s1) <= 0; }
1393#if defined(_MSC_VER) && _MSC_VER >= 1300
1402{
return s1.
compare(s2) >= 0; }
1405{
return s2.
compare(s1) <= 0; }
1407#if defined(ODA_UNIXOS)
1414 OdW2US(
const wchar_t* pStr)
1418 for (
size_t i = 0; i < len; i++)
1428 operator const OdUInt16*()
const {
return _buf; }
1446 _buf =
new wchar_t[len+1];
1447 for (
size_t i = 0; i < len; i++)
1449 _buf[i] = (wchar_t)pStr[i];
1457 operator const wchar_t*()
const {
return _buf; }
1462#define OdUS2W(a) (const wchar_t*)(a)
1463#define OdW2US(a) (const OdUInt16*)(a)
bool operator>=(const OdString &s1, const OdString &s2)
bool operator!=(const OdString &s1, const OdString &s2)
bool operator==(const OdString &s1, const OdString &s2)
bool operator<=(const OdString &s1, const OdString &s2)
bool operator<(const OdString &s1, const OdString &s2)
bool operator>(const OdString &s1, const OdString &s2)
#define updateConstStringDiagnostic(pAddr)
#define FIRSTDLL_EXPORT_STATIC
OdTrVisMiniVec4d< DataType > operator+(const OdTrVisMiniVec4d< DataType > &v1, const OdTrVisMiniVec4d< DataType > &v2)
OdConstString & operator=(const OdConstString &pSource)
OdConstString(const OdChar *pSource=NULL)
OdString & operator=(const OdChar *pSource)
OdString & operator=(OdChar ch)
OdString & operator=(const char *pSource)
OdString & operator=(const OdString &pSource)
OdString & operator=(const OdAnsiString &pSource)
OdString & operator+=(const OdChar *string)
OdChar * getBufferSetLength(int length)
int replace(OdChar oldChar, OdChar newChar)
int compare(const OdString &otherString) const
OdString & trimLeft(const OdString &whiteChars)
OdString & operator+=(const OdString &string)
static void release(OdStringData *pStringData)
OdString & formatV(const OdChar *formatString, va_list argList)
OdString & operator=(OdChar ch)
void assignCopy(int sourceLength, const OdChar *source)
OdString(const OdChar *source)
int compare(const char *otherString) const
OdString mid(int startIndex, int length) const
OdString(const OdChar16_t *lpch, OdCodePageId codepage=CP_CNT)
int compare(const OdChar *otherString) const
OdString & trimRight(const OdString &whiteChars)
int iCompare(const OdChar *otherString) const
int insert(int insertIndex, const OdString &insertString)
OdString & format(const OdChar *formatString,...)
OdString & trimLeft(OdChar whiteChar)
int find(const OdChar *searchString) const
OdString & operator=(const OdString &source)
OdString & operator=(const OdChar16_t *source)
int replace(const OdChar *oldString, const OdChar *newString)
OdString & trimLeft(const OdChar *whiteChars)
OdString(OdStringData *pData)
OdChar getAt(int charIndex) const
int remove(OdChar chRemove)
OdString & trimRight(const OdChar *whiteChars)
OdString & operator=(const OdChar *source)
int find(const OdChar *searchString, int startIndex) const
friend FIRSTDLL_EXPORT OdString operator+(const OdString &string1, const OdString &string2)
int iCompare(const OdString &otherString) const
int find(OdChar searchChar, int startIndex) const
void concatInPlace(int sourceLength, const OdChar *source)
OdString & operator=(const OdAnsiString &source)
OdChar * getBuffer(int minBufLength)
OdString mid(int startIndex) const
OdString & operator=(const char *source)
OdString(OdChar ch, int length)
void concatCopy(int sourceLength1, const OdChar *source1, int sourceLength2, const OdChar *source2)
OdString(const OdString &source)
friend FIRSTDLL_EXPORT OdString operator+(OdChar ch, const OdString &string)
int reverseFind(OdChar searchChar) const
OdString(const char *lpch, int nLength, OdCodePageId codepage=CP_CNT)
void allocCopy(OdString &destString, int copyLength, int copyIndex, int extraLength) const
void allocBuffer(int length, bool allocAlways=false)
void setAt(int charIndex, OdChar ch)
OdString left(int length) const
const OdChar * c_str() const
OdString spanExcluding(const OdChar *charSet) const
friend FIRSTDLL_EXPORT OdString operator+(const OdString &string1, const OdChar *string2)
static void freeData(OdStringData *pStringData)
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
OdString right(int length) const
OdString spanIncluding(const OdString &charSet) const
void releaseBuffer(int newLength=-1)
int replace(const OdString &oldString, const OdString &newString)
OdStringData * getData() const
void preallocate(int length)
OdString spanIncluding(const OdChar *charSet) const
void allocBeforeWrite(int newLength)
int reverseFind(OdChar searchChar, int startIndex) const
OdString(const char *lpch, OdCodePageId codepage=CP_CNT)
OdString & operator+=(OdChar ch)
friend FIRSTDLL_EXPORT OdString operator+(const OdString &string, OdChar ch)
int insert(int insertIndex, OdChar insertChar)
OdString(const OdChar *source, int length)
OdString(const OdAnsiString &)
int getAllocLength() const
static FIRSTDLL_EXPORT_STATIC OdStringData kEmptyData
bool isUnicodeNotInSync() const
friend FIRSTDLL_EXPORT OdString operator+(const OdChar *string1, const OdString &string2)
OdString spanExcluding(const OdString &charSet) const
OdString & trimRight(OdChar whiteChar)
friend class OdAnsiString
int deleteChars(int deleteIndex, int count=1)
static int safeStrlen(const OdChar *string)
OdString & operator+=(const char *string)
int insert(int insertIndex, const OdChar *insertString)
OdChar operator[](int charIndex) const
int find(OdChar searchChar) const
OdAnsiString * getAnsiString() const
int findOneOf(const OdChar *charSet) const
void freeAnsiString() const
GLsizei GLsizei GLchar * source
GLuint GLsizei GLsizei * length
GLint GLint GLint GLsizei GLsizei GLenum format
bool operator()(const OdString &x, const OdString &y) const
std::size_t operator()(const OdString &key) const ODRX_NOEXCEPT