Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
ON_String Class Reference

#include <opennurbs_string.h>

List of all members.

Public Member Functions

void Append (const char *, int)
void Append (const unsigned char *, int)
char * Array ()
const char * Array () const
int Compare (const char *) const
int Compare (const unsigned char *) const
int CompareNoCase (const char *) const
int CompareNoCase (const unsigned char *) const
void Create ()
ON__UINT32 DataCRC (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 (const char *) const
int Find (const unsigned char *) const
void ON_MSC_CDECL Format (const char *,...)
void ON_MSC_CDECL Format (const unsigned char *,...)
char GetAt (int) const
bool IsEmpty () const
bool IsReferenceCounted () const
ON_String Left (int) const
int Length () const
void MakeLower ()
void MakeReverse ()
void MakeUpper ()
ON_String Mid (int, int) const
ON_String Mid (int) const
 ON_String ()
 ON_String (const ON_String &)
 ON_String (const char *)
 ON_String (const char *, int)
 ON_String (char, int=1)
 ON_String (const unsigned char *)
 ON_String (const unsigned char *, int)
 ON_String (unsigned char, int=1)
 ON_String (const wchar_t *src)
 ON_String (const wchar_t *src, int length)
 ON_String (const ON_wString &src)
 operator const char * () const
bool operator!= (const ON_String &) const
bool operator!= (const char *) const
ON_String operator+ (const ON_String &) const
ON_String operator+ (char) const
ON_String operator+ (unsigned char) const
ON_String operator+ (const char *) const
ON_String operator+ (const unsigned char *) const
const ON_Stringoperator+= (const ON_String &)
const ON_Stringoperator+= (char)
const ON_Stringoperator+= (unsigned char)
const ON_Stringoperator+= (const char *)
const ON_Stringoperator+= (const unsigned char *)
bool operator< (const ON_String &) const
bool operator< (const char *) const
bool operator<= (const ON_String &) const
bool operator<= (const char *) const
ON_Stringoperator= (const ON_String &)
ON_Stringoperator= (char)
ON_Stringoperator= (const char *)
ON_Stringoperator= (unsigned char)
ON_Stringoperator= (const unsigned char *)
ON_Stringoperator= (const wchar_t *src)
ON_Stringoperator= (const ON_wString &src)
bool operator== (const ON_String &) const
bool operator== (const char *) const
bool operator> (const ON_String &) const
bool operator> (const char *) const
bool operator>= (const ON_String &) const
bool operator>= (const char *) const
char & operator[] (int)
char operator[] (int) const
int Remove (const char chRemove)
int Replace (const char *token1, const char *token2)
int Replace (const unsigned char *token1, const unsigned char *token2)
int Replace (char token1, char token2)
int Replace (unsigned char token1, unsigned char token2)
void ReserveArray (size_t)
int ReverseFind (char) const
int ReverseFind (unsigned char) const
ON_String Right (int) const
void SetAt (int, char)
void SetAt (int, unsigned char)
void SetLength (size_t)
void ShrinkArray ()
unsigned int SizeOf () const
void TrimLeft (const char *=NULL)
void TrimLeftAndRight (const char *=NULL)
void TrimRight (const char *=NULL)
bool WildCardMatch (const char *) const
bool WildCardMatch (const unsigned char *) const
bool WildCardMatchNoCase (const char *) const
bool WildCardMatchNoCase (const unsigned char *) const
 ~ON_String ()

Static Public Member Functions

static void SplitPath (const char *path, ON_String *drive, ON_String *dir, ON_String *fname, ON_String *ext)

Protected Member Functions

void AppendToArray (const ON_String &)
void AppendToArray (int, const char *)
void AppendToArray (int, const unsigned char *)
void CopyArray ()
void CopyToArray (const ON_String &)
void CopyToArray (int, const char *)
void CopyToArray (int, const unsigned char *)
void CopyToArray (int, const wchar_t *)
void CreateArray (int)
struct ON_aStringHeaderHeader () const

Static Protected Member Functions

static int Length (const char *)
static int Length (const unsigned char *)

Protected Attributes

char * m_s

Detailed Description

Definition at line 405 of file opennurbs_string.h.


Constructor & Destructor Documentation

Definition at line 261 of file opennurbs_string.cpp.

ON_String::ON_String ( const ON_String src)

Definition at line 271 of file opennurbs_string.cpp.

ON_String::ON_String ( const char *  s)

Definition at line 287 of file opennurbs_string.cpp.

ON_String::ON_String ( const char *  s,
int  length 
)

Definition at line 295 of file opennurbs_string.cpp.

ON_String::ON_String ( char  c,
int  repeat_count = 1 
)

Definition at line 303 of file opennurbs_string.cpp.

ON_String::ON_String ( const unsigned char *  s)

Definition at line 314 of file opennurbs_string.cpp.

ON_String::ON_String ( const unsigned char *  s,
int  length 
)

Definition at line 323 of file opennurbs_string.cpp.

ON_String::ON_String ( unsigned char  c,
int  repeat_count = 1 
)

Definition at line 331 of file opennurbs_string.cpp.

ON_String::ON_String ( const wchar_t *  src)

Definition at line 343 of file opennurbs_string.cpp.

ON_String::ON_String ( const wchar_t *  src,
int  length 
)

Definition at line 351 of file opennurbs_string.cpp.

ON_String::ON_String ( const ON_wString src)

Definition at line 361 of file opennurbs_string.cpp.

Definition at line 266 of file opennurbs_string.cpp.


Member Function Documentation

void ON_String::Append ( const char *  s,
int  count 
)

Definition at line 519 of file opennurbs_string.cpp.

void ON_String::Append ( const unsigned char *  s,
int  count 
)

Definition at line 526 of file opennurbs_string.cpp.

void ON_String::AppendToArray ( const ON_String s) [protected]

Definition at line 225 of file opennurbs_string.cpp.

void ON_String::AppendToArray ( int  size,
const char *  s 
) [protected]

Definition at line 230 of file opennurbs_string.cpp.

void ON_String::AppendToArray ( int  size,
const unsigned char *  s 
) [protected]

Definition at line 241 of file opennurbs_string.cpp.

char * ON_String::Array ( )

Definition at line 577 of file opennurbs_string.cpp.

const char * ON_String::Array ( ) const

Definition at line 583 of file opennurbs_string.cpp.

int ON_String::Compare ( const char *  s) const

Definition at line 611 of file opennurbs_string.cpp.

int ON_String::Compare ( const unsigned char *  s) const

Definition at line 628 of file opennurbs_string.cpp.

int ON_String::CompareNoCase ( const char *  s) const

Definition at line 633 of file opennurbs_string.cpp.

int ON_String::CompareNoCase ( const unsigned char *  s) const

Definition at line 650 of file opennurbs_string.cpp.

void ON_String::CopyArray ( ) [protected]

Definition at line 124 of file opennurbs_string.cpp.

void ON_String::CopyToArray ( const ON_String s) [protected]

Definition at line 197 of file opennurbs_string.cpp.

void ON_String::CopyToArray ( int  size,
const char *  s 
) [protected]

Definition at line 202 of file opennurbs_string.cpp.

void ON_String::CopyToArray ( int  size,
const unsigned char *  s 
) [protected]

Definition at line 220 of file opennurbs_string.cpp.

void ON_String::CopyToArray ( int  w_count,
const wchar_t *  w 
) [protected]

Definition at line 134 of file opennurbs_wstring.cpp.

Definition at line 41 of file opennurbs_string.cpp.

void ON_String::CreateArray ( int  capacity) [protected]

Definition at line 110 of file opennurbs_string.cpp.

ON__UINT32 ON_String::DataCRC ( ON__UINT32  current_remainder) const

Definition at line 601 of file opennurbs_string.cpp.

Definition at line 46 of file opennurbs_string.cpp.

void ON_String::EmergencyDestroy ( void  )

Definition at line 84 of file opennurbs_string.cpp.

void ON_String::Empty ( )

Definition at line 57 of file opennurbs_string.cpp.

void ON_String::EnableReferenceCounting ( bool  bEnable)

Definition at line 89 of file opennurbs_string.cpp.

int ON_String::Find ( char  c) const

Definition at line 934 of file opennurbs_string.cpp.

int ON_String::Find ( unsigned char  c) const

Definition at line 943 of file opennurbs_string.cpp.

int ON_String::Find ( const char *  s) const

Definition at line 967 of file opennurbs_string.cpp.

int ON_String::Find ( const unsigned char *  s) const

Definition at line 981 of file opennurbs_string.cpp.

void ON_MSC_CDECL ON_String::Format ( const char *  sFormat,
  ... 
)

Definition at line 1158 of file opennurbs_string.cpp.

void ON_MSC_CDECL ON_String::Format ( const unsigned char *  sFormat,
  ... 
)

Definition at line 1183 of file opennurbs_string.cpp.

char ON_String::GetAt ( int  i) const

Definition at line 1101 of file opennurbs_string.cpp.

ON_aStringHeader * ON_String::Header ( ) const [read, protected]

Definition at line 100 of file opennurbs_string.cpp.

bool ON_String::IsEmpty ( ) const

Definition at line 406 of file opennurbs_string.cpp.

Definition at line 94 of file opennurbs_string.cpp.

ON_String ON_String::Left ( int  count) const

Definition at line 1136 of file opennurbs_string.cpp.

int ON_String::Length ( ) const

Definition at line 384 of file opennurbs_string.cpp.

int ON_String::Length ( const char *  s) [static, protected]

Definition at line 246 of file opennurbs_string.cpp.

int ON_String::Length ( const unsigned char *  s) [static, protected]

Definition at line 253 of file opennurbs_string.cpp.

Definition at line 994 of file opennurbs_string.cpp.

Definition at line 1002 of file opennurbs_string.cpp.

Definition at line 986 of file opennurbs_string.cpp.

ON_String ON_String::Mid ( int  i,
int  count 
) const

Definition at line 1120 of file opennurbs_string.cpp.

ON_String ON_String::Mid ( int  i) const

Definition at line 1131 of file opennurbs_string.cpp.

ON_String::operator const char * ( ) const

Definition at line 655 of file opennurbs_string.cpp.

bool ON_String::operator!= ( const ON_String s2) const

Definition at line 1220 of file opennurbs_string.cpp.

bool ON_String::operator!= ( const char *  s2) const

Definition at line 1225 of file opennurbs_string.cpp.

ON_String ON_String::operator+ ( const ON_String s2) const

Definition at line 480 of file opennurbs_string.cpp.

ON_String ON_String::operator+ ( char  s2) const

Definition at line 487 of file opennurbs_string.cpp.

ON_String ON_String::operator+ ( unsigned char  s2) const

Definition at line 494 of file opennurbs_string.cpp.

ON_String ON_String::operator+ ( const char *  s2) const

Definition at line 501 of file opennurbs_string.cpp.

ON_String ON_String::operator+ ( const unsigned char *  s2) const

Definition at line 508 of file opennurbs_string.cpp.

const ON_String & ON_String::operator+= ( const ON_String s)

Definition at line 534 of file opennurbs_string.cpp.

const ON_String & ON_String::operator+= ( char  s)

Definition at line 540 of file opennurbs_string.cpp.

const ON_String & ON_String::operator+= ( unsigned char  s)

Definition at line 546 of file opennurbs_string.cpp.

const ON_String & ON_String::operator+= ( const char *  s)

Definition at line 552 of file opennurbs_string.cpp.

const ON_String & ON_String::operator+= ( const unsigned char *  s)

Definition at line 558 of file opennurbs_string.cpp.

bool ON_String::operator< ( const ON_String s2) const

Definition at line 1230 of file opennurbs_string.cpp.

bool ON_String::operator< ( const char *  s2) const

Definition at line 1235 of file opennurbs_string.cpp.

bool ON_String::operator<= ( const ON_String s2) const

Definition at line 1250 of file opennurbs_string.cpp.

bool ON_String::operator<= ( const char *  s2) const

Definition at line 1255 of file opennurbs_string.cpp.

ON_String & ON_String::operator= ( const ON_String src)

Definition at line 411 of file opennurbs_string.cpp.

ON_String & ON_String::operator= ( char  c)

Definition at line 438 of file opennurbs_string.cpp.

ON_String & ON_String::operator= ( const char *  s)

Definition at line 444 of file opennurbs_string.cpp.

ON_String & ON_String::operator= ( unsigned char  c)

Definition at line 451 of file opennurbs_string.cpp.

ON_String & ON_String::operator= ( const unsigned char *  s)

Definition at line 457 of file opennurbs_string.cpp.

ON_String & ON_String::operator= ( const wchar_t *  src)

Definition at line 464 of file opennurbs_string.cpp.

ON_String & ON_String::operator= ( const ON_wString src)

Definition at line 473 of file opennurbs_string.cpp.

bool ON_String::operator== ( const ON_String s2) const

Definition at line 1210 of file opennurbs_string.cpp.

bool ON_String::operator== ( const char *  s2) const

Definition at line 1215 of file opennurbs_string.cpp.

bool ON_String::operator> ( const ON_String s2) const

Definition at line 1240 of file opennurbs_string.cpp.

bool ON_String::operator> ( const char *  s2) const

Definition at line 1245 of file opennurbs_string.cpp.

bool ON_String::operator>= ( const ON_String s2) const

Definition at line 1260 of file opennurbs_string.cpp.

bool ON_String::operator>= ( const char *  s2) const

Definition at line 1265 of file opennurbs_string.cpp.

char & ON_String::operator[] ( int  i)

Definition at line 395 of file opennurbs_string.cpp.

char ON_String::operator[] ( int  i) const

Definition at line 401 of file opennurbs_string.cpp.

int ON_String::Remove ( const char  chRemove)

Definition at line 1075 of file opennurbs_string.cpp.

int ON_String::Replace ( const char *  token1,
const char *  token2 
)

Definition at line 797 of file opennurbs_string.cpp.

int ON_String::Replace ( const unsigned char *  token1,
const unsigned char *  token2 
)

Definition at line 904 of file opennurbs_string.cpp.

int ON_String::Replace ( char  token1,
char  token2 
)

Definition at line 909 of file opennurbs_string.cpp.

int ON_String::Replace ( unsigned char  token1,
unsigned char  token2 
)

Definition at line 926 of file opennurbs_string.cpp.

void ON_String::ReserveArray ( size_t  array_capacity)

Definition at line 144 of file opennurbs_string.cpp.

int ON_String::ReverseFind ( char  c) const

Definition at line 948 of file opennurbs_string.cpp.

int ON_String::ReverseFind ( unsigned char  c) const

Definition at line 962 of file opennurbs_string.cpp.

ON_String ON_String::Right ( int  count) const

Definition at line 1147 of file opennurbs_string.cpp.

void ON_String::SetAt ( int  i,
char  c 
)

Definition at line 1107 of file opennurbs_string.cpp.

void ON_String::SetAt ( int  i,
unsigned char  c 
)

Definition at line 1115 of file opennurbs_string.cpp.

void ON_String::SetLength ( size_t  string_length)

Definition at line 564 of file opennurbs_string.cpp.

Definition at line 172 of file opennurbs_string.cpp.

unsigned int ON_String::SizeOf ( ) const

Definition at line 593 of file opennurbs_string.cpp.

void ON_String::SplitPath ( const char *  path,
ON_String drive,
ON_String dir,
ON_String fname,
ON_String ext 
) [static]

Definition at line 2008 of file opennurbs_wstring.cpp.

void ON_String::TrimLeft ( const char *  s = NULL)

Definition at line 1010 of file opennurbs_string.cpp.

void ON_String::TrimLeftAndRight ( const char *  s = NULL)

Definition at line 1069 of file opennurbs_string.cpp.

void ON_String::TrimRight ( const char *  s = NULL)

Definition at line 1042 of file opennurbs_string.cpp.

bool ON_String::WildCardMatch ( const char *  pattern) const

Definition at line 777 of file opennurbs_string.cpp.

bool ON_String::WildCardMatch ( const unsigned char *  pattern) const

Definition at line 782 of file opennurbs_string.cpp.

bool ON_String::WildCardMatchNoCase ( const char *  pattern) const

Definition at line 787 of file opennurbs_string.cpp.

bool ON_String::WildCardMatchNoCase ( const unsigned char *  pattern) const

Definition at line 792 of file opennurbs_string.cpp.


Member Data Documentation

char* ON_String::m_s [protected]

Definition at line 673 of file opennurbs_string.h.


The documentation for this class was generated from the following files:


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:52