Proud::AnsiStrTraits Class Reference

Public Types

typedef char CharType
 

Static Public Member Functions

static PROUD_API int SafeStringLen (const CharType *str)
 
static PROUD_API void CopyString (CharType *dest, int destNumOfElements, const CharType *src, int length)
 
static PROUD_API int StringCompare (const CharType *a, const CharType *b)
 
static PROUD_API int StringCompareNoCase (const CharType *a, const CharType *b)
 
static PROUD_API int GetFormattedLength (const char *pszFormat, va_list args)
 
static PROUD_API int __cdecl Format (char *pszBuffer, size_t nlength, const char *pszFormat, va_list args) throw ()
 
static PROUD_API char * StringUppercase (char *psz, size_t size) throw ()
 
static PROUD_API char * StringLowercase (char *psz, size_t size) throw ()
 
static PROUD_API const char
*__cdecl 
StringFindString (const char *pszBlock, const char *pszMatch) throw ()
 
static PROUD_API char *__cdecl StringFindString (char *pszBlock, const char *pszMatch) throw ()
 
static PROUD_API const char
*__cdecl 
StringFindChar (const char *pszBlock, char chMatch) throw ()
 
static PROUD_API int __cdecl StringSpanIncluding (const char *pszBlock, const char *pszSet) throw ()
 
static PROUD_API int __cdecl StringSpanExcluding (const char *pszBlock, const char *pszSet) throw ()
 
static PROUD_API char *__cdecl CharNext (const char *p) throw ()
 
static PROUD_API int __cdecl IsDigit (char ch) throw ()
 
static PROUD_API int __cdecl IsSpace (char ch) throw ()
 
template<typename PNSTRING >
static void ToStdString (const PNSTRING &src, std::string &dest)
 
template<typename PNSTRING >
static void ToStdWString (const PNSTRING &src, std::wstring &dest)
 
template<typename PNSTRING >
static void FromStdString (const std::string &src, PNSTRING &dest)
 
template<typename PNSTRING >
static void FromStdWString (const std::wstring &src, PNSTRING &dest)