tstring.hpp File Reference

Build independent string definitions. More...

#include <streambuf>
#include <string>

Namespaces

namespace  Core
namespace  std

Defines

#define TXT(x)   L ## x
 Build agnostic string literal. Maps to "" or L"".
#define tstrlen   wcslen
#define tstrlwr   _wcslwr
#define tstrupr   _wcsupr
#define tstrcmp   wcscmp
#define tstricmp   _wcsicmp
#define tstrncmp   wcsncmp
#define tstrnicmp   _wcsnicmp
#define tstrcpy   wcscpy
#define tstrncpy   wcsncpy
#define tstrcat   wcscat
#define tstrtok   wcstok
#define tstrchr   wcschr
#define tstrrchr   wcsrchr
#define tstrstr   wcsstr
#define tstrtol   wcstol
#define tstrtoul   wcstoul
#define tstrtod   wcstod
#define tcin   wcin
#define tcout   wcout
#define tcerr   wcerr

Typedefs

typedef wchar_t tchar
 Build agnostic character type. Maps to char or wchat_t.
typedef std::wstring std::tstring
 Build agnostic string type.
typedef std::wostream std::tostream
 Build agnostic output stream type.
typedef std::wistream std::tistream
 Build agnostic input stream type.

Functions

template<typename CharT>
size_t Core::NumBytes (size_t nChars)
 Calculate the number of bytes required to represent a string of the given number of characters.
size_t Core::NumBytes (const char *psz)
 Calculate the number of bytes required to represent the string.
size_t Core::NumBytes (const wchar_t *psz)
 Calculate the number of bytes required to represent the string.


Detailed Description

Build independent string definitions.

Author:
Chris Oldwood

Define Documentation

#define TXT (  )     L ## x

Build agnostic string literal. Maps to "" or L"".

#define tstrlen   wcslen

#define tstrlwr   _wcslwr

#define tstrupr   _wcsupr

#define tstrcmp   wcscmp

#define tstricmp   _wcsicmp

#define tstrncmp   wcsncmp

#define tstrnicmp   _wcsnicmp

#define tstrcpy   wcscpy

#define tstrncpy   wcsncpy

#define tstrcat   wcscat

#define tstrtok   wcstok

#define tstrchr   wcschr

#define tstrrchr   wcsrchr

#define tstrstr   wcsstr

#define tstrtol   wcstol

#define tstrtoul   wcstoul

#define tstrtod   wcstod

#define tcin   wcin

#define tcout   wcout

#define tcerr   wcerr


Typedef Documentation

typedef wchar_t tchar

Build agnostic character type. Maps to char or wchat_t.


Generated on Wed Feb 13 22:53:28 2008 for Core Library by  doxygen 1.5.2