added: to convert/text
wchar_t ToLower(wchar_t c) wchar_t ToUpper(wchar_t c) void ToLower(std::wstring & s) void ToUpper(std::wstring & s) template<class StringType1, class StringType2> bool EqualNoCase(const StringType1 * str1, const StringType2 * str2) template<class StringType1, class StringType2> bool EqualNoCase(const StringType1 & str1, const StringType2 & str2) template<class StringType1, class StringType2> bool EqualNoCase(const StringType1 * str1_begin, const StringType1 * str1_end, const StringType2 * str2) added: to space: Value * GetValueNoCase(const wchar_t * name); Value * GetValueNoCase(const std::wstring & name); const Value * GetValueNoCase(const wchar_t * name) const; const Value * GetValueNoCase(const std::wstring & name) const; git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@1111 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -214,11 +214,18 @@ public:
|
||||
*/
|
||||
Value * GetValue(const wchar_t * name);
|
||||
Value * GetValue(const std::wstring & name);
|
||||
|
||||
const Value * GetValue(const wchar_t * name) const;
|
||||
const Value * GetValue(const std::wstring & name) const;
|
||||
|
||||
|
||||
|
||||
// O(n) complexity
|
||||
Value * GetValueNoCase(const wchar_t * name);
|
||||
Value * GetValueNoCase(const std::wstring & name);
|
||||
const Value * GetValueNoCase(const wchar_t * name) const;
|
||||
const Value * GetValueNoCase(const std::wstring & name) const;
|
||||
|
||||
|
||||
// they can return a null pointer if there is not such a 'name'
|
||||
std::wstring * GetFirstValue(const wchar_t * name);
|
||||
std::wstring * GetFirstValue(const std::wstring & name);
|
||||
@@ -406,11 +413,8 @@ private:
|
||||
static size_t ToSize(const std::wstring & value);
|
||||
static bool ToBool(const std::wstring & value);
|
||||
|
||||
static wchar_t ToSmall(wchar_t c);
|
||||
static bool EqualNoCase(const wchar_t * str1, const wchar_t * str2);
|
||||
static bool EqualNoCase(const wchar_t * str1_begin, const wchar_t * str1_end, const wchar_t * str2);
|
||||
static bool IsWhite(int c);
|
||||
static bool HasWhite(const std::wstring & str);
|
||||
static bool IsWhite(int c);
|
||||
static bool HasWhite(const std::wstring & str);
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user