6 #ifndef _INC_cArraySortString_H
7 #define _INC_cArraySortString_H
20 template<
typename _TYPE_CH = TCHAR >
29 typedef typename SUPER_t::REF_t
REF_t;
30 typedef typename SUPER_t::KEY_t
KEY_t;
39 return StrT::CmpI<_TYPE_CH>(pszID1, sID2);
43 return StrT::CmpI<_TYPE_CH>(sID1, sID2);
48 return this->Add(
STR_t(pszStr));
64 STR_t sCur = this->GetAt(i);
65 COMPARE_t iCompare = StrT::CmpIN<_TYPE_CH>(pszRoot, sCur, iStrLen);
92 STR_t sCur = this->GetAt(i);
#define GRAYCORE_LINK
Definition: GrayCore.h:47
#define ASSERT(exp)
Definition: cDebugAssert.h:87
#define UNITTEST2_PREDEF(x)
Definition: cUnitTestDecl.h:19
#define UNITTEST_FRIEND(n)
Define this in the class body to be unit tested. Allow the unit test to access private/protected stuf...
Definition: cUnitTestDecl.h:17
StrLen_t GetLength() const noexcept
Definition: cString.h:183
Definition: cArraySortString.h:22
SUPER_t::KEY_t KEY_t
Definition: cArraySortString.h:30
virtual ~cArraySortString()
Definition: cArraySortString.h:33
cStringT< _TYPE_CH > STR_t
Definition: cArraySortString.h:28
ITERATE_t FindKeyRoot(const _TYPE_CH *pszRoot)
Definition: cArraySortString.h:51
SUPER_t::REF_t REF_t
Definition: cArraySortString.h:29
virtual COMPARE_t CompareData(REF_t sID1, REF_t sID2) const noexcept override
Definition: cArraySortString.h:41
ITERATE_t FindKeyDerived(const _TYPE_CH *pszDerived)
Definition: cArraySortString.h:80
cArraySorted< cStringT< _TYPE_CH >, cStringT< _TYPE_CH >, const _TYPE_CH * > SUPER_t
Definition: cArraySortString.h:27
virtual COMPARE_t CompareKey(KEY_t pszID1, REF_t sID2) const override
Definition: cArraySortString.h:36
ITERATE_t AddStr(const _TYPE_CH *pszStr)
Definition: cArraySortString.h:46
Definition: cArraySort.h:24
ARG_TYPE REF_t
How to refer to this? value or ref or pointer?
Definition: cArray.h:449
Definition: cString.h:381
< The main namespace for all Core functions.
Definition: GrayCore.cpp:14
int COMPARE_t
result of compare. 0=same, 1=a>b, -1=a<b
Definition: cValT.h:17
int StrLen_t
the length of a string in chars (bytes for UTF8, wchar_t for UNICODE). or offset in characters....
Definition: StrConst.h:32
int ITERATE_t
like size_t but signed
Definition: Index.h:28
const ITERATE_t k_ITERATE_BAD
Definition: Index.h:30
cArraySortString< char > cArraySortStringA
Definition: cArraySortString.h:111
@ COMPARE_Equal
VARCMP_EQ.
Definition: cValT.h:23
cArraySortString< wchar_t > cArraySortStringW
Definition: cArraySortString.h:112
static StrLen_t Len(const TYPE *pszStr) noexcept