StringHelper Class Reference

#include <StringHelper.h>

List of all members.

Public Member Functions

 StringHelper (void)
 ~StringHelper (void)

Static Public Member Functions

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'.
string charToHexString (unsigned char inChar)
 Takes an unsigned char 0-255 and returns a hex string of length 2.
string numToString (LOOG_UINT64 inNum)
 Takes an unsigned int64 and returns a string representation.
LOOG_UINT64 stringToNum (string inString)
 Takes a string and returns an unsigned int64.
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.
wstring toWStr (string inString)
 Converts a narrow string to a wide (2 byte) string.
string toNarrowStr (wstring inString)
 Converts a wide (2 byte) string to a narrow 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 142 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 134 of file StringHelper.cpp.

References A_BASE.

Referenced by charToHexString().

string StringHelper::numToString LOOG_UINT64  inNum  )  [static]
 

Takes an unsigned int64 and returns a string representation.

Definition at line 70 of file StringHelper.cpp.

Referenced by 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 89 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 113 of file StringHelper.cpp.

References LOOG_UINT64.

Referenced by 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 56 of file StringHelper.cpp.

Referenced by CMMLRawSourcePin::deliverTag(), CMMLTagUtils::getClipsFrom(), CMMLParser::parseClipTag(), CMMLParser::parseCMMLRootTag(), CMMLParser::parseHeadTag(), and CMMLRecomposer::recomposeStreamFrom().

wstring StringHelper::toWStr string  inString  )  [static]
 

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

Definition at line 43 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 Tue Feb 15 15:05:00 2005 for oggdsf by  doxygen 1.3.9