#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 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 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.
const char m_chQuote |
Definition at line 181 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.
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.