Common/CCTChar.h File Reference

This file contains Unicode/MultiByte competability functions and a generic string class (tstring). More...

#include <string>
Include dependency graph for CCTChar.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define tstring   string
 tstring for MultiByte complications: string

Functions

std::string MakeAnsiString (const std::tstring &sString)
 Returns a MultiByte string from a generic string object.
std::string MakeAnsiString (LPCTSTR pString)
 Returns a MultiByrte string from a generic NULL-terminated buffer.
std::wstring MakeWideString (const std::tstring &sString)
 Returns a Unicode string from a generic string object.
std::wstring MakeWideString (LPCTSTR pString)
 Returns a Unicode string from a generic NULL-terminated buffer.
std::tstring MakeTString (const std::string &sString)
 Returns a generic string object from a MultiByte string.
std::tstring MakeTString (const std::wstring &sString)
 Returns a generic string object from a Unicode string.

Detailed Description

This file contains Unicode/MultiByte competability functions and a generic string class (tstring).

Definition in file CCTChar.h.


Function Documentation

std::string MakeAnsiString ( LPCTSTR  pString  ) 

Returns a MultiByrte string from a generic NULL-terminated buffer.

Parameters:
pString Generic NULL-terminated buffer to translate
Returns:
A MultiByte string object similar to the received buffer

Definition at line 54 of file CCTChar.cpp.

std::string MakeAnsiString ( const std::tstring &  sString  ) 

Returns a MultiByte string from a generic string object.

Parameters:
sString Generic string object to translate
Returns:
A MultiByte string object similar to the received one

Definition at line 34 of file CCTChar.cpp.

Referenced by SQLite::RealStatement::BindParameter(), DoLicensePage(), SQLite::RealDB::Execute(), SQLite::RealStatement::HasParameter(), OEMSendPage(), OEMStartDoc(), SQLite::RealDB::Open(), SQLite::RealStatement::ParameterIndex(), SQLite::Realset::Realset(), SQLite::RealStatement::RealStatement(), and LicenseInfoLoader::RequestLicense().

std::tstring MakeTString ( const std::wstring &  sString  ) 

Returns a generic string object from a Unicode string.

Parameters:
sString Unicode string object to translate
Returns:
A generic string object (Unicode in Unicode compilations, MultiByte in non-Unicode ones)

Definition at line 134 of file CCTChar.cpp.

std::tstring MakeTString ( const std::string &  sString  ) 

Returns a generic string object from a MultiByte string.

Parameters:
sString MultiByte string object to translate
Returns:
A generic string object (Unicode in Unicode compilations, MultiByte in non-Unicode ones)

Definition at line 114 of file CCTChar.cpp.

Referenced by FileINI::CheckLineForSection(), FileINI::DoInitLine(), DoLicensePage(), SQLite::RealDB::Execute(), FileINI::GetAllSections(), SQLite::RealDB::GetLastError(), FileINI::GetLines(), LicenseInfoLoader::LoadInternalLicenseInfo(), SQLite::RealRecord::RealRecord(), SQLite::Realset::Realset(), LicenseInfoLoader::RequestLicense(), and Trim().

std::wstring MakeWideString ( LPCTSTR  pString  ) 

Returns a Unicode string from a generic NULL-terminated buffer.

Parameters:
pString Generic NULL-terminated buffer to translate
Returns:
A Unicode string object similar to the received buffer

Definition at line 94 of file CCTChar.cpp.

std::wstring MakeWideString ( const std::tstring &  sString  ) 

Returns a Unicode string from a generic string object.

Parameters:
sString Generic string object to translate
Returns:
A Unicode string object similar to the received one

Definition at line 74 of file CCTChar.cpp.

Referenced by PrinterInstall::DoAddPort(), and PrinterInstall::DoDeletePort().


Generated on Mon Jun 18 12:40:24 2012 for CC PDF Converter by doxygen 1.6.1