You.i Engine
YiStringUtilities.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_STRING_UTILITIES_H_
3 #define _YI_STRING_UTILITIES_H_
4 
5 #include "utility/YiString.h"
6 
12 wchar_t *WStrDup(const wchar_t *pStr);
13 char *YI_STRDUP(const char *pStr);
14 
15 wchar_t *WCSNCPY(wchar_t *pDest, const wchar_t *pSrc, int32_t nCount);
16 wchar_t *WCSCPY(wchar_t *pDest, const wchar_t *pSrc);
17 int16_t WCSNCMP(const wchar_t *pDest, const wchar_t *pSrc, int32_t nCount);
18 int16_t WCSCMP(const wchar_t *pStr1, const wchar_t *pStr2);
19 int16_t WCSNICMP(const wchar_t *pDest, const wchar_t *pSrc, int32_t nCount);
20 int16_t WCSICMP(const wchar_t *pStr1, const wchar_t *pStr2);
21 int16_t STRICMP(const char *pStr1, const char *pStr2);
22 int16_t STRNICMP(const char *pDest, const char *pSrc, int32_t nCount);
23 wchar_t *WCSCAT(wchar_t *pDest, const wchar_t *pSrc);
24 wchar_t *WCSNCAT(wchar_t *pDest, const wchar_t *pSrc, int32_t nCount);
25 wchar_t *WCSSTR(wchar_t *pData, wchar_t *pString);
26 wchar_t *WCSCHR(wchar_t *pData, wchar_t iSymbol);
27 uint32_t WCSLEN(const wchar_t *str);
28 wchar_t *WCSREV(wchar_t *pSrc);
29 char *STRREV(char *pSrc);
30 
36 {
37 public:
38  bool operator()(const CYIString &lhs, const CYIString &rhs) const;
39 };
40 
46 {
47 public:
51  CYICaseInsensitiveEqualsPredicate(const CYIString *const pSource);
52 
53  bool operator()(const CYIString &other) const;
54 
55 private:
56  const CYIString *const m_pSource;
57 };
58 
61 #endif // _YI_STRING_UTILITIES_H_
int16_t WCSCMP(const wchar_t *pStr1, const wchar_t *pStr2)
int16_t WCSNCMP(const wchar_t *pDest, const wchar_t *pSrc, int32_t nCount)
wchar_t * WCSNCPY(wchar_t *pDest, const wchar_t *pSrc, int32_t nCount)
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
Definition: YiStringUtilities.h:35
wchar_t * WStrDup(const wchar_t *pStr)
wchar_t * WCSCHR(wchar_t *pData, wchar_t iSymbol)
wchar_t * WCSREV(wchar_t *pSrc)
wchar_t * WCSSTR(wchar_t *pData, wchar_t *pString)
char * YI_STRDUP(const char *pStr)
int16_t STRICMP(const char *pStr1, const char *pStr2)
wchar_t * WCSNCAT(wchar_t *pDest, const wchar_t *pSrc, int32_t nCount)
int16_t STRNICMP(const char *pDest, const char *pSrc, int32_t nCount)
uint32_t WCSLEN(const wchar_t *str)
char * STRREV(char *pSrc)
wchar_t * WCSCPY(wchar_t *pDest, const wchar_t *pSrc)
Definition: YiStringUtilities.h:45
int16_t WCSICMP(const wchar_t *pStr1, const wchar_t *pStr2)
int16_t WCSNICMP(const wchar_t *pDest, const wchar_t *pSrc, int32_t nCount)
bool operator()(const CYIString &lhs, const CYIString &rhs) const
wchar_t * WCSCAT(wchar_t *pDest, const wchar_t *pSrc)