fs/ut/fsStrUt.cpp File Reference

#include <fs/ut/fsStrUt.h>
#include <fs/sys/fsAssert.h>
#include <string>
#include <vector>
#include <map>
#include <algorithm>

Include dependency graph for fsStrUt.cpp:

Go to the source code of this file.

Defines

#define FS_VERIFY_RETURN(exp)   if(!(exp)) { FS_ASSERT_MSG(0, #exp "<return>"); return; }
#define FS_VERIFY_RETURN_VAL(exp, ret)   if(!(exp)) { FS_ASSERT_MSG(0, #exp "<returns:>" #ret); return (ret); }

Typedefs

typedef std::vector< std::string > TToks
typedef std::pair< std::string,
int > 
TKey2ValPair
typedef std::map< std::string,
int > 
TKey2ValMap

Functions

char * fs::ut::str::Int2Str (int nVal, char *pszStr)
 Converts an int value to a string.
void fs::ut::str::WStr2Str (const wchar_t *pwszWStr, char *pszStr)
 Converts a wide-character string to a single-byte-character string.
void fs::ut::str::Str2WStr (const char *pszStr, wchar_t *pwszWStr)
 Converts a single-byte-character string to a wide-character string.

Variables

const char * m_pszText
const char * m_pszSprs
const char m_chQuote
const size_t m_uLen
size_t m_uOff
std::vector< char > m_Tok
TToks m_Toks
TKey2ValMap m_Key2ValMap
 Maps: string key => token index.


Define Documentation

#define FS_VERIFY_RETURN ( exp   )     if(!(exp)) { FS_ASSERT_MSG(0, #exp "<return>"); return; }

Definition at line 40 of file fsStrUt.cpp.

#define FS_VERIFY_RETURN_VAL ( exp,
ret   )     if(!(exp)) { FS_ASSERT_MSG(0, #exp "<returns:>" #ret); return (ret); }

Definition at line 44 of file fsStrUt.cpp.


Typedef Documentation

typedef std::map<std::string, int> TKey2ValMap

Definition at line 304 of file fsStrUt.cpp.

typedef std::pair<std::string, int> TKey2ValPair

Definition at line 303 of file fsStrUt.cpp.

typedef std::vector<std::string> TToks

Definition at line 300 of file fsStrUt.cpp.


Variable Documentation

const char m_chQuote

Definition at line 181 of file fsStrUt.cpp.

TKey2ValMap m_Key2ValMap

Maps: string key => token index.

Definition at line 305 of file fsStrUt.cpp.

const char* m_pszSprs

Definition at line 180 of file fsStrUt.cpp.

const char* m_pszText

Definition at line 179 of file fsStrUt.cpp.

std::vector<char> m_Tok

Definition at line 184 of file fsStrUt.cpp.

TToks m_Toks

Definition at line 301 of file fsStrUt.cpp.

const size_t m_uLen

Definition at line 182 of file fsStrUt.cpp.

size_t m_uOff

Definition at line 183 of file fsStrUt.cpp.


FipS' Code (Thu Feb 15 22:43:44 2007) - (c) Filip STOKLAS (FipS) - [ www ] [ Guest Book ]