#include <opennurbs_string.h>
Public Member Functions | |
void | Append (const char *sUTF8, int) |
void | Append (const unsigned char *sUTF8, int) |
void | Append (const wchar_t *, int) |
wchar_t * | Array () |
const wchar_t * | Array () const |
int | Compare (const char *sUTF8) const |
int | Compare (const unsigned char *sUTF8) const |
int | Compare (const wchar_t *) const |
int | CompareNoCase (const char *sUTF8) const |
int | CompareNoCase (const unsigned char *sUTF8) const |
int | CompareNoCase (const wchar_t *) const |
void | Create () |
ON__UINT32 | DataCRC (ON__UINT32 current_remainder) const |
ON__UINT32 | DataCRCLower (ON__UINT32 current_remainder) const |
void | Destroy () |
void | EmergencyDestroy () |
void | Empty () |
void | EnableReferenceCounting (bool bEnable) |
int | Find (char) const |
int | Find (unsigned char) const |
int | Find (wchar_t) const |
int | Find (const char *) const |
int | Find (const unsigned char *) const |
int | Find (const wchar_t *) const |
void ON_MSC_CDECL | Format (const char *,...) |
void ON_MSC_CDECL | Format (const unsigned char *,...) |
void ON_MSC_CDECL | Format (const wchar_t *,...) |
wchar_t | GetAt (int) const |
bool | IsEmpty () const |
bool | IsReferenceCounted () const |
ON_wString | Left (int) const |
int | Length () const |
void | MakeLower () |
void | MakeReverse () |
void | MakeUpper () |
ON_wString | Mid (int, int) const |
ON_wString | Mid (int) const |
ON_wString () | |
ON_wString (const ON_wString &) | |
ON_wString (const ON_String &src) | |
ON_wString (const char *src) | |
ON_wString (const char *src, int) | |
ON_wString (char, int=1) | |
ON_wString (const unsigned char *src) | |
ON_wString (const unsigned char *src, int) | |
ON_wString (unsigned char, int=1) | |
ON_wString (const wchar_t *) | |
ON_wString (const wchar_t *, int) | |
ON_wString (wchar_t, int=1) | |
operator const wchar_t * () const | |
bool | operator!= (const ON_wString &) const |
bool | operator!= (const wchar_t *) const |
ON_wString | operator+ (const ON_wString &) const |
ON_wString | operator+ (const ON_String &sUTF8) const |
ON_wString | operator+ (char) const |
ON_wString | operator+ (unsigned char) const |
ON_wString | operator+ (wchar_t) const |
ON_wString | operator+ (const char *sUTF8) const |
ON_wString | operator+ (const unsigned char *sUTF8) const |
ON_wString | operator+ (const wchar_t *) const |
const ON_wString & | operator+= (const ON_wString &) |
const ON_wString & | operator+= (const ON_String &sUTF8) |
const ON_wString & | operator+= (char) |
const ON_wString & | operator+= (unsigned char) |
const ON_wString & | operator+= (wchar_t) |
const ON_wString & | operator+= (const char *sUTF8) |
const ON_wString & | operator+= (const unsigned char *sUTF8) |
const ON_wString & | operator+= (const wchar_t *) |
bool | operator< (const ON_wString &) const |
bool | operator< (const wchar_t *) const |
bool | operator<= (const ON_wString &) const |
bool | operator<= (const wchar_t *) const |
const ON_wString & | operator= (const ON_wString &) |
const ON_wString & | operator= (const ON_String &src) |
const ON_wString & | operator= (char) |
const ON_wString & | operator= (const char *src) |
const ON_wString & | operator= (unsigned char) |
const ON_wString & | operator= (const unsigned char *src) |
const ON_wString & | operator= (wchar_t) |
const ON_wString & | operator= (const wchar_t *) |
bool | operator== (const ON_wString &) const |
bool | operator== (const wchar_t *) const |
bool | operator> (const ON_wString &) const |
bool | operator> (const wchar_t *) const |
bool | operator>= (const ON_wString &) const |
bool | operator>= (const wchar_t *) const |
wchar_t & | operator[] (int) |
wchar_t | operator[] (int) const |
int | Remove (wchar_t c) |
int | RemoveWhiteSpace (const wchar_t *whitespace=0) |
int | Replace (const wchar_t *token1, const wchar_t *token2) |
int | Replace (wchar_t token1, wchar_t token2) |
int | ReplaceWhiteSpace (wchar_t token, const wchar_t *whitespace=0) |
void | ReserveArray (size_t) |
int | ReverseFind (char) const |
int | ReverseFind (unsigned char) const |
int | ReverseFind (wchar_t) const |
ON_wString | Right (int) const |
void | SetAt (int, char) |
void | SetAt (int, unsigned char) |
void | SetAt (int, wchar_t) |
void | SetLength (size_t) |
void | ShrinkArray () |
unsigned int | SizeOf () const |
void | TrimLeft (const wchar_t *=NULL) |
void | TrimLeftAndRight (const wchar_t *=NULL) |
void | TrimRight (const wchar_t *=NULL) |
bool | UrlDecode () |
void | UrlEncode () |
bool | WildCardMatch (const wchar_t *) const |
bool | WildCardMatchNoCase (const wchar_t *) const |
~ON_wString () | |
Static Public Member Functions | |
static void | SplitPath (const char *path, ON_wString *drive, ON_wString *dir, ON_wString *fname, ON_wString *ext) |
static void | SplitPath (const wchar_t *path, ON_wString *drive, ON_wString *dir, ON_wString *fname, ON_wString *ext) |
Protected Member Functions | |
void | AppendToArray (const ON_wString &) |
void | AppendToArray (int, const char *) |
void | AppendToArray (int, const unsigned char *) |
void | AppendToArray (int, const wchar_t *) |
void | CopyArray () |
void | CopyToArray (const ON_wString &) |
void | CopyToArray (int, const char *) |
void | CopyToArray (int, const unsigned char *) |
void | CopyToArray (int, const wchar_t *) |
void | CreateArray (int) |
struct ON_wStringHeader * | Header () const |
Static Protected Member Functions | |
static int | Length (const char *) |
static int | Length (const unsigned char *) |
static int | Length (const wchar_t *) |
Protected Attributes | |
wchar_t * | m_s |
Definition at line 700 of file opennurbs_string.h.
Definition at line 424 of file opennurbs_wstring.cpp.
ON_wString::ON_wString | ( | const ON_wString & | src | ) |
Definition at line 434 of file opennurbs_wstring.cpp.
ON_wString::ON_wString | ( | const ON_String & | src | ) |
Definition at line 450 of file opennurbs_wstring.cpp.
ON_wString::ON_wString | ( | const char * | src | ) |
Definition at line 456 of file opennurbs_wstring.cpp.
ON_wString::ON_wString | ( | const char * | src, |
int | length | ||
) |
Definition at line 465 of file opennurbs_wstring.cpp.
ON_wString::ON_wString | ( | char | c, |
int | repeat_count = 1 |
||
) |
Definition at line 473 of file opennurbs_wstring.cpp.
ON_wString::ON_wString | ( | const unsigned char * | src | ) |
Definition at line 487 of file opennurbs_wstring.cpp.
ON_wString::ON_wString | ( | const unsigned char * | src, |
int | length | ||
) |
Definition at line 495 of file opennurbs_wstring.cpp.
ON_wString::ON_wString | ( | unsigned char | c, |
int | repeat_count = 1 |
||
) |
Definition at line 503 of file opennurbs_wstring.cpp.
ON_wString::ON_wString | ( | const wchar_t * | s | ) |
Definition at line 518 of file opennurbs_wstring.cpp.
ON_wString::ON_wString | ( | const wchar_t * | s, |
int | length | ||
) |
Definition at line 526 of file opennurbs_wstring.cpp.
ON_wString::ON_wString | ( | wchar_t | c, |
int | repeat_count = 1 |
||
) |
Definition at line 534 of file opennurbs_wstring.cpp.
Definition at line 429 of file opennurbs_wstring.cpp.
void ON_wString::Append | ( | const char * | sUTF8, |
int | count | ||
) |
Definition at line 716 of file opennurbs_wstring.cpp.
void ON_wString::Append | ( | const unsigned char * | sUTF8, |
int | count | ||
) |
Definition at line 723 of file opennurbs_wstring.cpp.
void ON_wString::Append | ( | const wchar_t * | s, |
int | count | ||
) |
Definition at line 731 of file opennurbs_wstring.cpp.
void ON_wString::AppendToArray | ( | const ON_wString & | s | ) | [protected] |
Definition at line 372 of file opennurbs_wstring.cpp.
void ON_wString::AppendToArray | ( | int | size, |
const char * | s | ||
) | [protected] |
Definition at line 377 of file opennurbs_wstring.cpp.
void ON_wString::AppendToArray | ( | int | size, |
const unsigned char * | s | ||
) | [protected] |
Definition at line 386 of file opennurbs_wstring.cpp.
void ON_wString::AppendToArray | ( | int | size, |
const wchar_t * | s | ||
) | [protected] |
Definition at line 391 of file opennurbs_wstring.cpp.
wchar_t * ON_wString::Array | ( | ) |
Definition at line 799 of file opennurbs_wstring.cpp.
const wchar_t * ON_wString::Array | ( | ) | const |
Definition at line 805 of file opennurbs_wstring.cpp.
int ON_wString::Compare | ( | const char * | sUTF8 | ) | const |
Definition at line 846 of file opennurbs_wstring.cpp.
int ON_wString::Compare | ( | const unsigned char * | sUTF8 | ) | const |
Definition at line 868 of file opennurbs_wstring.cpp.
int ON_wString::Compare | ( | const wchar_t * | s | ) | const |
Definition at line 873 of file opennurbs_wstring.cpp.
int ON_wString::CompareNoCase | ( | const char * | sUTF8 | ) | const |
Definition at line 890 of file opennurbs_wstring.cpp.
int ON_wString::CompareNoCase | ( | const unsigned char * | sUTF8 | ) | const |
Definition at line 912 of file opennurbs_wstring.cpp.
int ON_wString::CompareNoCase | ( | const wchar_t * | s | ) | const |
Definition at line 917 of file opennurbs_wstring.cpp.
void ON_wString::CopyArray | ( | ) | [protected] |
Definition at line 253 of file opennurbs_wstring.cpp.
void ON_wString::CopyToArray | ( | const ON_wString & | s | ) | [protected] |
Definition at line 327 of file opennurbs_wstring.cpp.
void ON_wString::CopyToArray | ( | int | size, |
const char * | s | ||
) | [protected] |
Definition at line 332 of file opennurbs_wstring.cpp.
void ON_wString::CopyToArray | ( | int | size, |
const unsigned char * | s | ||
) | [protected] |
Definition at line 349 of file opennurbs_wstring.cpp.
void ON_wString::CopyToArray | ( | int | size, |
const wchar_t * | s | ||
) | [protected] |
Definition at line 354 of file opennurbs_wstring.cpp.
void ON_wString::Create | ( | ) |
Definition at line 170 of file opennurbs_wstring.cpp.
void ON_wString::CreateArray | ( | int | capacity | ) | [protected] |
Definition at line 185 of file opennurbs_wstring.cpp.
ON__UINT32 ON_wString::DataCRC | ( | ON__UINT32 | current_remainder | ) | const |
Definition at line 823 of file opennurbs_wstring.cpp.
ON__UINT32 ON_wString::DataCRCLower | ( | ON__UINT32 | current_remainder | ) | const |
Definition at line 833 of file opennurbs_wstring.cpp.
void ON_wString::Destroy | ( | ) |
Definition at line 199 of file opennurbs_wstring.cpp.
void ON_wString::EmergencyDestroy | ( | void | ) |
Definition at line 237 of file opennurbs_wstring.cpp.
void ON_wString::Empty | ( | ) |
Definition at line 210 of file opennurbs_wstring.cpp.
void ON_wString::EnableReferenceCounting | ( | bool | bEnable | ) |
Definition at line 242 of file opennurbs_wstring.cpp.
int ON_wString::Find | ( | char | c | ) | const |
Definition at line 1608 of file opennurbs_wstring.cpp.
int ON_wString::Find | ( | unsigned char | c | ) | const |
Definition at line 1617 of file opennurbs_wstring.cpp.
int ON_wString::Find | ( | wchar_t | c | ) | const |
Definition at line 1622 of file opennurbs_wstring.cpp.
int ON_wString::Find | ( | const char * | s | ) | const |
Definition at line 1657 of file opennurbs_wstring.cpp.
int ON_wString::Find | ( | const unsigned char * | s | ) | const |
Definition at line 1675 of file opennurbs_wstring.cpp.
int ON_wString::Find | ( | const wchar_t * | s | ) | const |
Definition at line 1680 of file opennurbs_wstring.cpp.
void ON_MSC_CDECL ON_wString::Format | ( | const char * | sFormat, |
... | |||
) |
Definition at line 1870 of file opennurbs_wstring.cpp.
void ON_MSC_CDECL ON_wString::Format | ( | const unsigned char * | sFormat, |
... | |||
) |
Definition at line 1895 of file opennurbs_wstring.cpp.
void ON_MSC_CDECL ON_wString::Format | ( | const wchar_t * | sFormat, |
... | |||
) |
Definition at line 1920 of file opennurbs_wstring.cpp.
wchar_t ON_wString::GetAt | ( | int | i | ) | const |
Definition at line 1805 of file opennurbs_wstring.cpp.
ON_wStringHeader * ON_wString::Header | ( | ) | const [read, protected] |
Definition at line 175 of file opennurbs_wstring.cpp.
bool ON_wString::IsEmpty | ( | ) | const |
Definition at line 580 of file opennurbs_wstring.cpp.
bool ON_wString::IsReferenceCounted | ( | ) | const |
Definition at line 247 of file opennurbs_wstring.cpp.
ON_wString ON_wString::Left | ( | int | count | ) | const |
Definition at line 1848 of file opennurbs_wstring.cpp.
int ON_wString::Length | ( | ) | const |
Definition at line 564 of file opennurbs_wstring.cpp.
int ON_wString::Length | ( | const char * | s | ) | [static, protected] |
Definition at line 402 of file opennurbs_wstring.cpp.
int ON_wString::Length | ( | const unsigned char * | s | ) | [static, protected] |
Definition at line 409 of file opennurbs_wstring.cpp.
int ON_wString::Length | ( | const wchar_t * | s | ) | [static, protected] |
Definition at line 414 of file opennurbs_wstring.cpp.
void ON_wString::MakeLower | ( | ) |
Definition at line 616 of file opennurbs_defines.cpp.
void ON_wString::MakeReverse | ( | ) |
Definition at line 1694 of file opennurbs_wstring.cpp.
void ON_wString::MakeUpper | ( | ) |
Definition at line 546 of file opennurbs_defines.cpp.
ON_wString ON_wString::Mid | ( | int | i, |
int | count | ||
) | const |
Definition at line 1832 of file opennurbs_wstring.cpp.
ON_wString ON_wString::Mid | ( | int | i | ) | const |
Definition at line 1843 of file opennurbs_wstring.cpp.
ON_wString::operator const wchar_t * | ( | ) | const |
Definition at line 1603 of file opennurbs_wstring.cpp.
bool ON_wString::operator!= | ( | const ON_wString & | s2 | ) | const |
Definition at line 1957 of file opennurbs_wstring.cpp.
bool ON_wString::operator!= | ( | const wchar_t * | s2 | ) | const |
Definition at line 1962 of file opennurbs_wstring.cpp.
ON_wString ON_wString::operator+ | ( | const ON_wString & | s2 | ) | const |
Definition at line 657 of file opennurbs_wstring.cpp.
ON_wString ON_wString::operator+ | ( | const ON_String & | sUTF8 | ) | const |
Definition at line 664 of file opennurbs_wstring.cpp.
ON_wString ON_wString::operator+ | ( | char | s2 | ) | const |
Definition at line 671 of file opennurbs_wstring.cpp.
ON_wString ON_wString::operator+ | ( | unsigned char | s2 | ) | const |
Definition at line 678 of file opennurbs_wstring.cpp.
ON_wString ON_wString::operator+ | ( | wchar_t | s2 | ) | const |
Definition at line 685 of file opennurbs_wstring.cpp.
ON_wString ON_wString::operator+ | ( | const char * | sUTF8 | ) | const |
Definition at line 692 of file opennurbs_wstring.cpp.
ON_wString ON_wString::operator+ | ( | const unsigned char * | sUTF8 | ) | const |
Definition at line 699 of file opennurbs_wstring.cpp.
ON_wString ON_wString::operator+ | ( | const wchar_t * | s2 | ) | const |
Definition at line 706 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator+= | ( | const ON_wString & | s | ) |
Definition at line 738 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator+= | ( | const ON_String & | sUTF8 | ) |
Definition at line 744 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator+= | ( | char | s | ) |
Definition at line 750 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator+= | ( | unsigned char | s | ) |
Definition at line 756 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator+= | ( | wchar_t | s | ) |
Definition at line 762 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator+= | ( | const char * | sUTF8 | ) |
Definition at line 768 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator+= | ( | const unsigned char * | sUTF8 | ) |
Definition at line 774 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator+= | ( | const wchar_t * | s | ) |
Definition at line 780 of file opennurbs_wstring.cpp.
bool ON_wString::operator< | ( | const ON_wString & | s2 | ) | const |
Definition at line 1967 of file opennurbs_wstring.cpp.
bool ON_wString::operator< | ( | const wchar_t * | s2 | ) | const |
Definition at line 1972 of file opennurbs_wstring.cpp.
bool ON_wString::operator<= | ( | const ON_wString & | s2 | ) | const |
Definition at line 1987 of file opennurbs_wstring.cpp.
bool ON_wString::operator<= | ( | const wchar_t * | s2 | ) | const |
Definition at line 1992 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator= | ( | const ON_wString & | src | ) |
Definition at line 585 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator= | ( | const ON_String & | src | ) |
Definition at line 612 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator= | ( | char | c | ) |
Definition at line 618 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator= | ( | const char * | src | ) |
Reimplemented in ON_Annotation2Text.
Definition at line 624 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator= | ( | unsigned char | c | ) |
Definition at line 631 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator= | ( | const unsigned char * | src | ) |
Definition at line 637 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator= | ( | wchar_t | c | ) |
Definition at line 644 of file opennurbs_wstring.cpp.
const ON_wString & ON_wString::operator= | ( | const wchar_t * | s | ) |
Reimplemented in ON_Annotation2Text.
Definition at line 650 of file opennurbs_wstring.cpp.
bool ON_wString::operator== | ( | const ON_wString & | s2 | ) | const |
Definition at line 1947 of file opennurbs_wstring.cpp.
bool ON_wString::operator== | ( | const wchar_t * | s2 | ) | const |
Definition at line 1952 of file opennurbs_wstring.cpp.
bool ON_wString::operator> | ( | const ON_wString & | s2 | ) | const |
Definition at line 1977 of file opennurbs_wstring.cpp.
bool ON_wString::operator> | ( | const wchar_t * | s2 | ) | const |
Definition at line 1982 of file opennurbs_wstring.cpp.
bool ON_wString::operator>= | ( | const ON_wString & | s2 | ) | const |
Definition at line 1997 of file opennurbs_wstring.cpp.
bool ON_wString::operator>= | ( | const wchar_t * | s2 | ) | const |
Definition at line 2002 of file opennurbs_wstring.cpp.
wchar_t & ON_wString::operator[] | ( | int | i | ) |
Definition at line 569 of file opennurbs_wstring.cpp.
wchar_t ON_wString::operator[] | ( | int | i | ) | const |
Definition at line 575 of file opennurbs_wstring.cpp.
int ON_wString::Remove | ( | wchar_t | c | ) |
Definition at line 1768 of file opennurbs_wstring.cpp.
int ON_wString::RemoveWhiteSpace | ( | const wchar_t * | whitespace = 0 | ) |
Definition at line 1530 of file opennurbs_wstring.cpp.
int ON_wString::Replace | ( | const wchar_t * | token1, |
const wchar_t * | token2 | ||
) |
Definition at line 1152 of file opennurbs_wstring.cpp.
int ON_wString::Replace | ( | wchar_t | token1, |
wchar_t | token2 | ||
) |
Definition at line 1259 of file opennurbs_wstring.cpp.
int ON_wString::ReplaceWhiteSpace | ( | wchar_t | token, |
const wchar_t * | whitespace = 0 |
||
) |
Definition at line 1465 of file opennurbs_wstring.cpp.
void ON_wString::ReserveArray | ( | size_t | array_capacity | ) |
Definition at line 274 of file opennurbs_wstring.cpp.
int ON_wString::ReverseFind | ( | char | c | ) | const |
Definition at line 1631 of file opennurbs_wstring.cpp.
int ON_wString::ReverseFind | ( | unsigned char | c | ) | const |
Definition at line 1637 of file opennurbs_wstring.cpp.
int ON_wString::ReverseFind | ( | wchar_t | c | ) | const |
Definition at line 1643 of file opennurbs_wstring.cpp.
ON_wString ON_wString::Right | ( | int | count | ) | const |
Definition at line 1859 of file opennurbs_wstring.cpp.
void ON_wString::SetAt | ( | int | i, |
char | c | ||
) |
Definition at line 1811 of file opennurbs_wstring.cpp.
void ON_wString::SetAt | ( | int | i, |
unsigned char | c | ||
) |
Definition at line 1819 of file opennurbs_wstring.cpp.
void ON_wString::SetAt | ( | int | i, |
wchar_t | c | ||
) |
Definition at line 1824 of file opennurbs_wstring.cpp.
void ON_wString::SetLength | ( | size_t | string_length | ) |
Definition at line 786 of file opennurbs_wstring.cpp.
void ON_wString::ShrinkArray | ( | ) |
Definition at line 302 of file opennurbs_wstring.cpp.
unsigned int ON_wString::SizeOf | ( | ) | const |
Definition at line 815 of file opennurbs_wstring.cpp.
void ON_wString::SplitPath | ( | const char * | path, |
ON_wString * | drive, | ||
ON_wString * | dir, | ||
ON_wString * | fname, | ||
ON_wString * | ext | ||
) | [static] |
Definition at line 2074 of file opennurbs_wstring.cpp.
void ON_wString::SplitPath | ( | const wchar_t * | path, |
ON_wString * | drive, | ||
ON_wString * | dir, | ||
ON_wString * | fname, | ||
ON_wString * | ext | ||
) | [static] |
Definition at line 2140 of file opennurbs_wstring.cpp.
void ON_wString::TrimLeft | ( | const wchar_t * | s = NULL | ) |
Definition at line 1702 of file opennurbs_wstring.cpp.
void ON_wString::TrimLeftAndRight | ( | const wchar_t * | s = NULL | ) |
Definition at line 1761 of file opennurbs_wstring.cpp.
void ON_wString::TrimRight | ( | const wchar_t * | s = NULL | ) |
Definition at line 1734 of file opennurbs_wstring.cpp.
bool ON_wString::UrlDecode | ( | ) |
Definition at line 1418 of file opennurbs_wstring.cpp.
void ON_wString::UrlEncode | ( | ) |
Definition at line 1277 of file opennurbs_wstring.cpp.
bool ON_wString::WildCardMatch | ( | const wchar_t * | pattern | ) | const |
Definition at line 1054 of file opennurbs_wstring.cpp.
bool ON_wString::WildCardMatchNoCase | ( | const wchar_t * | pattern | ) | const |
Definition at line 1060 of file opennurbs_wstring.cpp.
wchar_t* ON_wString::m_s [protected] |
Definition at line 1048 of file opennurbs_string.h.