StringHelper Class Reference

#include <StringHelper.h>

List of all members.

Public Member Functions

 StringHelper (void)
 ~StringHelper (void)

Static Public Member Functions

string charToHexString (unsigned char inChar)
 Takes an unsigned char 0-255 and returns a hex string of length 2.
unsigned char digitToHex (unsigned char inChar)
 Takes an unsigned char in the range 0-15 and returns a char between '0'-'9' or 'A'-'F'.
wstring fromUTF8Str (string inString)
 DLB. 10/9/2005. Converts a UTF-8 narrow string to a wide (2 byte) string.
string numToString (LOOG_UINT64 inNum)
 Takes an unsigned int64 and returns a string representation.
LOOG_UINT64 stringToFractNum (string inString)
 Takes a string and Returns a value between 0 and 9 999 999 to represent a fraction / 10 000 000.
LOOG_UINT64 stringToNum (string inString)
 Takes a string and returns an unsigned int64.
string toNarrowStr (wstring inString)
 Converts a wide (2 byte) string to a narrow string.
string toUTF8Str (wstring inString)
 DLB. 10/9/2005. Converts a wide (2 byte) string to a UTF-8 narrow string.
wstring toWStr (string inString)
 Converts a narrow string to a wide (2 byte) string.

Static Public Attributes

const unsigned char A_BASE = 65
const unsigned char ZERO_BASE = 48


Constructor & Destructor Documentation

StringHelper::StringHelper void   ) 
 

Definition at line 35 of file StringHelper.cpp.

StringHelper::~StringHelper void   ) 
 

Definition at line 39 of file StringHelper.cpp.


Member Function Documentation

string StringHelper::charToHexString unsigned char  inChar  )  [static]
 

Takes an unsigned char 0-255 and returns a hex string of length 2.

Definition at line 238 of file StringHelper.cpp.

References digitToHex().

Here is the call graph for this function:

unsigned char StringHelper::digitToHex unsigned char  inChar  )  [static]
 

Takes an unsigned char in the range 0-15 and returns a char between '0'-'9' or 'A'-'F'.

Definition at line 230 of file StringHelper.cpp.

References A_BASE.

Referenced by charToHexString().

wstring StringHelper::fromUTF8Str string  inString  )  [static]
 

DLB. 10/9/2005. Converts a UTF-8 narrow string to a wide (2 byte) string.

Definition at line 103 of file StringHelper.cpp.

string StringHelper::numToString LOOG_UINT64  inNum  )  [static]
 

Takes an unsigned int64 and returns a string representation.

Definition at line 166 of file StringHelper.cpp.

Referenced by HTTPSocket::assembleRequest(), DSStringer::GUID2String(), HTTPFileSource::open(), CachedHTTPFileSource::open(), OggPaginatorSettings::toString(), and OggPageHeader::toString().

LOOG_UINT64 StringHelper::stringToFractNum string  inString  )  [static]
 

Takes a string and Returns a value between 0 and 9 999 999 to represent a fraction / 10 000 000.

Definition at line 185 of file StringHelper.cpp.

References LOOG_UINT64.

Referenced by C_TimeStamp::parseNPT(), and C_TimeStamp::parseSecsOnly().

LOOG_UINT64 StringHelper::stringToNum string  inString  )  [static]
 

Takes a string and returns an unsigned int64.

Definition at line 209 of file StringHelper.cpp.

References LOOG_UINT64.

Referenced by HTTPStreamingFileSource::DataProcessLoop(), HTTPStreamingFileSource::getHTTPResponseCode(), HTTPFileSource::getHTTPResponseCode(), main(), C_TimeStamp::parseSecsOnly(), C_TimeStamp::parseSMPT(), and C_TimeStamp::parseThreePartTime().

string StringHelper::toNarrowStr wstring  inString  )  [static]
 

Converts a wide (2 byte) string to a narrow string.

Definition at line 152 of file StringHelper.cpp.

Referenced by CMMLRawSourcePin::deliverTag(), CMMLTagUtils::getClipsFrom(), OggDemuxSourceFilter::Load(), and CMMLRecomposer::recomposeStreamFrom().

string StringHelper::toUTF8Str wstring  inString  )  [static]
 

DLB. 10/9/2005. Converts a wide (2 byte) string to a UTF-8 narrow string.

Definition at line 55 of file StringHelper.cpp.

Referenced by CMMLParser::parseClipTag(), CMMLParser::parseCMMLRootTag(), and CMMLParser::parseHeadTag().

wstring StringHelper::toWStr string  inString  )  [static]
 

Converts a narrow string to a wide (2 byte) string.

Definition at line 44 of file StringHelper.cpp.

Referenced by OggDataBufferProcessor::acceptOggPage(), FFDShowVideoStream::InitCodec(), and CMMLParser::parseDocFromFile().


Member Data Documentation

const unsigned char StringHelper::A_BASE = 65 [static]
 

Definition at line 45 of file StringHelper.h.

Referenced by digitToHex().

const unsigned char StringHelper::ZERO_BASE = 48 [static]
 

Definition at line 46 of file StringHelper.h.


The documentation for this class was generated from the following files:
Generated on Fri Feb 17 00:02:32 2006 for oggdsf by  doxygen 1.3.9