17 #if !defined(ON_STRING_INC_)
18 #define ON_STRING_INC_
20 #include <pcl/pcl_exports.h>
48 ON::sort_algorithm method,
52 std::size_t sizeof_element,
53 int (*compare)(
const void*,
const void*)
87 ON::sort_algorithm method,
91 std::size_t sizeof_element,
92 int (*compare)(
const void*,
const void*,
void*),
131 std::size_t sizeof_element,
132 int (*compare)(
const void*,
const void*)
139 std::size_t sizeof_element,
140 int (*compare)(
const void*,
const void*)
147 std::size_t sizeof_element,
148 int (*compare)(
void*,
const void*,
const void*),
156 std::size_t sizeof_element,
157 int (*compare)(
void*,
const void*,
const void*),
177 void ON_SortDoubleArray(
178 ON::sort_algorithm sort_algorithm,
198 void ON_SortIntArray(
199 ON::sort_algorithm sort_algorithm,
219 void ON_SortUnsignedIntArray(
220 ON::sort_algorithm sort_algorithm,
240 void ON_SortStringArray(
241 ON::sort_algorithm sort_algorithm,
247 const int* ON_BinarySearchIntArray(
254 const unsigned int* ON_BinarySearchUnsignedIntArray(
256 const unsigned int* base,
261 const double* ON_BinarySearchDoubleArray(
332 const wchar_t* filename
361 bool bSkipTimeCheck =
false
375 const wchar_t* filename,
376 bool bSkipTimeCheck =
false
426 #if defined(ON_OS_WINDOWS)
428 bool LoadResourceString( HINSTANCE, UINT);
467 operator const char*()
const;
501 void Append(
const unsigned char*,
int );
553 int Replace(
const char* token1,
const char* token2 );
554 int Replace(
const unsigned char* token1,
const unsigned char* token2 );
556 int Replace(
unsigned char token1,
unsigned char token2 );
594 int Find(
const unsigned char*)
const;
597 void ON_MSC_CDECL
Format(
const char*, ...);
598 void ON_MSC_CDECL
Format(
const unsigned char*, ...);
615 ON__UINT32
DataCRC(ON__UINT32 current_remainder)
const;
722 #if defined(ON_OS_WINDOWS)
724 bool LoadResourceString(HINSTANCE, UINT);
763 operator const wchar_t*()
const;
777 void Append(
const unsigned char* sUTF8,
int );
817 int Compare(
const unsigned char* sUTF8 )
const;
857 int Replace(
const wchar_t* token1,
const wchar_t* token2 );
858 int Replace(
wchar_t token1,
wchar_t token2 );
947 int Find(
const unsigned char*)
const;
948 int Find(
const wchar_t*)
const;
952 void ON_MSC_CDECL
Format(
const char*, ...);
953 void ON_MSC_CDECL
Format(
const unsigned char*, ...);
954 void ON_MSC_CDECL
Format(
const wchar_t*, ...);
975 ON__UINT32
DataCRC(ON__UINT32 current_remainder)
const;
1037 const wchar_t* path,
bool SetFileCheckSum(FILE *fp)
bool Write(class ON_BinaryArchive &) const
bool CheckFile(FILE *fp, bool bSkipTimeCheck=false) const
bool CheckBuffer(std::size_t size, const void *buffer) const
bool Read(class ON_BinaryArchive &)
bool SetBufferCheckSum(std::size_t size, const void *buffer, time_t time)
void Dump(class ON_TextLog &) const
bool CheckFile(const wchar_t *filename, bool bSkipTimeCheck=false) const
static const ON_CheckSum UnsetCheckSum
bool SetFileCheckSum(const wchar_t *filename)
ON_String operator+(const unsigned char *) const
bool operator!=(const char *) const
int Replace(const unsigned char *token1, const unsigned char *token2)
bool operator<=(const ON_String &) const
ON_String & operator=(unsigned char)
ON__UINT32 DataCRC(ON__UINT32 current_remainder) const
ON_String & operator=(const char *)
ON_String operator+(unsigned char) const
int Find(const unsigned char *) const
ON_String Right(int) const
struct ON_aStringHeader * Header() const
const ON_String & operator+=(char)
bool WildCardMatchNoCase(const char *) const
int ReverseFind(char) const
ON_String(const wchar_t *src, int length)
const ON_String & operator+=(const ON_String &)
void ON_MSC_CDECL Format(const char *,...)
ON_String & operator=(const ON_wString &src)
void ON_MSC_CDECL Format(const unsigned char *,...)
ON_String operator+(const char *) const
int CompareNoCase(const char *) const
void Append(const char *, int)
void EnableReferenceCounting(bool bEnable)
const ON_String & operator+=(unsigned char)
char operator[](int) const
ON_String(const char *, int)
void SetAt(int, unsigned char)
ON_String & operator=(const ON_String &)
bool operator<(const char *) const
ON_String & operator=(char)
bool operator<=(const char *) const
ON_String operator+(const ON_String &) const
void AppendToArray(int, const unsigned char *)
unsigned int SizeOf() const
void CopyToArray(int, const wchar_t *)
int CompareNoCase(const unsigned char *) const
void AppendToArray(const ON_String &)
bool operator>(const ON_String &) const
bool operator>=(const ON_String &) const
void TrimLeft(const char *=NULL)
static void SplitPath(const char *path, ON_String *drive, ON_String *dir, ON_String *fname, ON_String *ext)
bool operator>=(const char *) const
bool operator<(const ON_String &) const
bool IsReferenceCounted() const
int Replace(const char *token1, const char *token2)
void Append(const unsigned char *, int)
static int Length(const unsigned char *)
ON_String & operator=(const unsigned char *)
void TrimLeftAndRight(const char *=NULL)
int ReverseFind(unsigned char) const
ON_String(const unsigned char *, int)
bool operator!=(const ON_String &) const
void SetLength(std::size_t)
ON_String operator+(char) const
ON_String(unsigned char, int=1)
int Compare(const char *) const
ON_String(const ON_String &)
static int Length(const char *)
const char * Array() const
void CopyToArray(const ON_String &)
bool WildCardMatchNoCase(const unsigned char *) const
bool operator==(const ON_String &) const
void CopyToArray(int, const char *)
ON_String(const unsigned char *)
void AppendToArray(int, const char *)
void TrimRight(const char *=NULL)
ON_String(const wchar_t *src)
int Replace(unsigned char token1, unsigned char token2)
bool WildCardMatch(const unsigned char *) const
const ON_String & operator+=(const unsigned char *)
bool WildCardMatch(const char *) const
ON_String(const ON_wString &src)
int Remove(const char chRemove)
bool operator==(const char *) const
int Find(const char *) const
int Replace(char token1, char token2)
const ON_String & operator+=(const char *)
int Find(unsigned char) const
bool operator>(const char *) const
void ReserveArray(std::size_t)
void CopyToArray(int, const unsigned char *)
ON_String Left(int) const
int Compare(const unsigned char *) const
ON_String Mid(int, int) const
ON_String & operator=(const wchar_t *src)
bool Read(class ON_BinaryArchive &)
void Dump(class ON_TextLog &) const
bool Write(class ON_BinaryArchive &) const
bool operator==(const ON_UnitSystem &)
double m_custom_unit_scale
ON_UnitSystem(ON::unit_system)
ON::unit_system m_unit_system
bool operator!=(const ON_UnitSystem &)
ON_wString m_custom_unit_name
ON_UnitSystem & operator=(ON::unit_system)
ON_wString Mid(int) const
const ON_wString & operator=(wchar_t)
const ON_wString & operator=(const unsigned char *src)
int CompareNoCase(const unsigned char *sUTF8) const
void AppendToArray(int, const wchar_t *)
void Append(const wchar_t *, int)
ON_wString Left(int) const
int ReverseFind(unsigned char) const
const ON_wString & operator+=(unsigned char)
bool operator<(const wchar_t *) const
void Append(const unsigned char *sUTF8, int)
bool operator==(const ON_wString &) const
void TrimRight(const wchar_t *=NULL)
int CompareNoCase(const char *sUTF8) const
ON_wString operator+(const ON_wString &) const
bool operator<=(const ON_wString &) const
const ON_wString & operator+=(const ON_wString &)
void CopyToArray(int, const unsigned char *)
int Find(const unsigned char *) const
const ON_wString & operator+=(wchar_t)
const ON_wString & operator=(unsigned char)
int ReverseFind(wchar_t) const
const ON_wString & operator+=(const ON_String &sUTF8)
const ON_wString & operator+=(const wchar_t *)
unsigned int SizeOf() const
ON_wString(const ON_wString &)
int Compare(const unsigned char *sUTF8) const
void TrimLeftAndRight(const wchar_t *=NULL)
void Append(const char *sUTF8, int)
int CompareNoCase(const wchar_t *) const
ON_wString operator+(char) const
const ON_wString & operator+=(const char *sUTF8)
static void SplitPath(const char *path, ON_wString *drive, ON_wString *dir, ON_wString *fname, ON_wString *ext)
void SetLength(std::size_t)
ON_wString operator+(const ON_String &sUTF8) const
bool operator<(const ON_wString &) const
void AppendToArray(int, const char *)
ON_wString(const unsigned char *src, int)
void SetAt(int, unsigned char)
bool operator>=(const wchar_t *) const
int ReverseFind(char) const
int Find(const wchar_t *) const
int Compare(const char *sUTF8) const
bool operator==(const wchar_t *) const
ON__UINT32 DataCRCLower(ON__UINT32 current_remainder) const
ON_wString operator+(unsigned char) const
struct ON_wStringHeader * Header() const
ON_wString Mid(int, int) const
ON_wString Right(int) const
static int Length(const char *)
void ON_MSC_CDECL Format(const wchar_t *,...)
int Find(unsigned char) const
int ReplaceWhiteSpace(wchar_t token, const wchar_t *whitespace=0)
bool WildCardMatchNoCase(const wchar_t *) const
void AppendToArray(int, const unsigned char *)
const ON_wString & operator+=(char)
const ON_wString & operator+=(const unsigned char *sUTF8)
int Replace(wchar_t token1, wchar_t token2)
ON_wString(const wchar_t *)
void EnableReferenceCounting(bool bEnable)
bool IsReferenceCounted() const
void CopyToArray(int, const wchar_t *)
const ON_wString & operator=(const char *src)
void CopyToArray(int, const char *)
ON_wString(const unsigned char *src)
static int Length(const wchar_t *)
int RemoveWhiteSpace(const wchar_t *whitespace=0)
ON_wString(const wchar_t *, int)
void CopyToArray(const ON_wString &)
static void SplitPath(const wchar_t *path, ON_wString *drive, ON_wString *dir, ON_wString *fname, ON_wString *ext)
void ON_MSC_CDECL Format(const unsigned char *,...)
bool WildCardMatch(const wchar_t *) const
const ON_wString & operator=(const wchar_t *)
wchar_t & operator[](int)
ON_wString operator+(const char *sUTF8) const
wchar_t operator[](int) const
const wchar_t * Array() const
bool operator>=(const ON_wString &) const
int Replace(const wchar_t *token1, const wchar_t *token2)
void TrimLeft(const wchar_t *=NULL)
static int Length(const unsigned char *)
bool operator<=(const wchar_t *) const
ON_wString(const char *src, int)
void ReserveArray(std::size_t)
ON_wString operator+(const wchar_t *) const
bool operator>(const ON_wString &) const
bool operator!=(const ON_wString &) const
ON_wString(const ON_String &src)
ON_wString(const char *src)
ON_wString(unsigned char, int=1)
ON_wString operator+(wchar_t) const
ON_wString(wchar_t, int=1)
int Compare(const wchar_t *) const
ON_wString operator+(const unsigned char *sUTF8) const
const ON_wString & operator=(char)
ON__UINT32 DataCRC(ON__UINT32 current_remainder) const
void AppendToArray(const ON_wString &)
int Find(const char *) const
void ON_MSC_CDECL Format(const char *,...)
const ON_wString & operator=(const ON_String &src)
const ON_wString & operator=(const ON_wString &)
bool operator!=(const wchar_t *) const
bool operator>(const wchar_t *) const