#include <StringHelper.h>
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 |
|
Definition at line 35 of file StringHelper.cpp. |
|
Definition at line 39 of file StringHelper.cpp. |
|
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:
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
Definition at line 45 of file StringHelper.h. Referenced by digitToHex(). |
|
Definition at line 46 of file StringHelper.h. |