Lines Matching refs:CHART

462 template <class CHART> class CBackrefElxT : public ElxInterface
476 CBufferT <CHART> m_szNamed;
482 template <class CHART> CBackrefElxT <CHART> :: CBackrefElxT(int nnumber, int brightleft, int bignor… in CBackrefElxT()
489 template <class CHART> int CBackrefElxT <CHART> :: Match(CContext * pContext) const in Match()
508 const CHART * pcsz = (const CHART *)pContext->m_pMatchString; in Match()
514 CBufferRefT <CHART> refstr(pcsz + lpos, slen); in Match()
552 template <class CHART> int CBackrefElxT <CHART> :: MatchNext(CContext * pContext) const in MatchNext()
564 #define RCHART(ch) ((CHART)ch)
582 template <class CHART> class CBoundaryElxT : public ElxInterface
592 static int IsWordChar(CHART ch);
602 template <class CHART> CBoundaryElxT <CHART> :: CBoundaryElxT(int ntype, int byes) in CBoundaryElxT()
608 template <class CHART> int CBoundaryElxT <CHART> :: Match(CContext * pContext) const in Match()
610 const CHART * pcsz = (const CHART *)pContext->m_pMatchString; in Match()
614 CHART chL = npos > 0 ? pcsz[npos - 1] : 0; in Match()
615 CHART chR = npos < tlen ? pcsz[npos ] : 0; in Match()
653 template <class CHART> int CBoundaryElxT <CHART> :: MatchNext(CContext *) const in MatchNext()
658 template <class CHART> inline int CBoundaryElxT <CHART> :: IsWordChar(CHART ch) in IsWordChar()
666 template <class CHART> class CBracketElxT : public ElxInterface
679 CBufferT <CHART> m_szNamed;
682 template <class CHART> CBracketElxT <CHART> :: CBracketElxT(int nnumber, int bright) in CBracketElxT()
688 template <class CHART> int CBracketElxT <CHART> :: Match(CContext * pContext) const in Match()
732 template <class CHART> int CBracketElxT <CHART> :: MatchNext(CContext * pContext) const in MatchNext()
771 template <class CHART> class CDelegateElxT : public ElxInterface
785 CBufferT <CHART> m_szNamed;
788 template <class CHART> CDelegateElxT <CHART> :: CDelegateElxT(int ndata) in CDelegateElxT()
794 template <class CHART> int CDelegateElxT <CHART> :: Match(CContext * pContext) const in Match()
802 template <class CHART> int CDelegateElxT <CHART> :: MatchNext(CContext * pContext) const in MatchNext()
925 template <class CHART> class CPosixElxT : public ElxInterface
946 template <class CHART> CPosixElxT <CHART> :: CPosixElxT(const char * posix, int brightleft) in CPosixElxT()
977 template <class CHART> int CPosixElxT <CHART> :: misblank(int c) in misblank()
982 template <class CHART> int CPosixElxT <CHART> :: Match(CContext * pContext) const in Match()
994 CHART ch = ((const CHART *)pContext->m_pMatchString)[at]; in Match()
1007 template <class CHART> int CPosixElxT <CHART> :: MatchNext(CContext * pContext) const in MatchNext()
1031 template <class CHART> class CRangeElxT : public ElxInterface
1041 CBufferT <CHART> m_ranges;
1042 CBufferT <CHART> m_chars;
1053 template <class CHART> CRangeElxT <CHART> :: CRangeElxT(int brightleft, int byes) in CRangeElxT()
1059 template <class CHART> int CRangeElxT <CHART> :: Match(CContext * pContext) const in Match()
1069 CHART ch = ((const CHART *)pContext->m_pMatchString)[at]; in Match()
1101 template <class CHART> int CRangeElxT <CHART> :: MatchNext(CContext * pContext) const in MatchNext()
1132 template <class CHART> class CStringElxT : public ElxInterface
1139 CStringElxT(const CHART * fixed, int nlength, int brightleft, int bignorecase);
1142 CBufferT <CHART> m_szPattern;
1150 template <class CHART> CStringElxT <CHART> :: CStringElxT(const CHART * fixed, int nlength, int bri… in CStringElxT()
1156 template <class CHART> int CStringElxT <CHART> :: Match(CContext * pContext) const in Match()
1158 const CHART * pcsz = (const CHART *)pContext->m_pMatchString; in Match()
1195 template <class CHART> int CStringElxT <CHART> :: MatchNext(CContext * pContext) const in MatchNext()
1210 template <class CHART> class CConditionElxT : public ElxInterface
1222 CBufferT <CHART> m_szNamed;
1231 template <class CHART> CConditionElxT <CHART> :: CConditionElxT() in CConditionElxT()
1236 template <class CHART> int CConditionElxT <CHART> :: Match(CContext * pContext) const in Match()
1292 template <class CHART> int CConditionElxT <CHART> :: MatchNext(CContext * pContext) const in MatchNext()
1404 template <class CHART> class CBuilderT
1407 typedef CDelegateElxT <CHART> CDelegateElx;
1408 typedef CBracketElxT <CHART> CBracketElx;
1409 typedef CBackrefElxT <CHART> CBackrefElx;
1410 typedef CConditionElxT <CHART> CConditionElx;
1414 ElxInterface * Build(const CBufferRefT <CHART> & pattern, int flags);
1415 int GetNamedNumber(const CBufferRefT <CHART> & named) const;
1442 CHART ch;
1448 CHART_INFO(CHART c, int t, int p = 0, int l = 0) { ch = c; type = t; pos = p; len = l; }
1454 static unsigned int Hex2Int(const CHART * pcsz, int length, int & used);
1473 CBufferRefT <CHART> m_pattern;
1486 template <class CHART> CBuilderT <CHART> :: CBuilderT() : m_pattern(0, 0), prev(0, 0), curr(0, 0), … in CBuilderT()
1491 template <class CHART> CBuilderT <CHART> :: ~CBuilderT() in ~CBuilderT()
1496 template <class CHART> int CBuilderT <CHART> :: GetNamedNumber(const CBufferRefT <CHART> & named) c… in GetNamedNumber()
1507 template <class CHART> ElxInterface * CBuilderT <CHART> :: Build(const CBufferRefT <CHART> & patter… in Build()
1605 template <class CHART> void CBuilderT <CHART> :: Clear() in Clear()
1621 template <class CHART> unsigned int CBuilderT <CHART> :: Hex2Int(const CHART * pcsz, int length, in… in Hex2Int()
1641 template <class CHART> inline ElxInterface * CBuilderT <CHART> :: Keep(ElxInterface * pelx) in Keep()
1647 template <class CHART> void CBuilderT <CHART> :: MoveNext() in MoveNext()
1658 template <class CHART> int CBuilderT <CHART> :: GetNext2() in GetNext2()
1668 CHART ch = m_pattern[m_nNextPos]; in GetNext2()
1685 nex2 = CHART_INFO((CHART)(*m_quote_fun)((int)ch), 0, m_nNextPos, delta); in GetNext2()
1699 CHART ch1 = m_pattern[m_nNextPos+1]; in GetNext2()
1871 CHART ch1 = m_pattern[m_nNextPos+1]; in GetNext2()
1872 CHART ch2 = m_pattern[m_nNextPos+2]; in GetNext2()
1994 template <class CHART> ElxInterface * CBuilderT <CHART> :: GetStockElx(int nStockId) in GetStockElx()
2013 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (0, 1)); in GetStockElx()
2026 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (0, 0)); in GetStockElx()
2038 pStockElxs[nStockId] = Keep(new CRangeElxT <CHART> (0, 0)); in GetStockElx()
2043 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (0, 0)); in GetStockElx()
2053 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (0, 1)); in GetStockElx()
2066 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (0, 0)); in GetStockElx()
2079 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (0, 1)); in GetStockElx()
2089 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (0, 0)); in GetStockElx()
2099 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (1, 1)); in GetStockElx()
2112 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (1, 0)); in GetStockElx()
2124 pStockElxs[nStockId] = Keep(new CRangeElxT <CHART> (1, 0)); in GetStockElx()
2129 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (1, 0)); in GetStockElx()
2139 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (1, 1)); in GetStockElx()
2154 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (1, 0)); in GetStockElx()
2169 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (1, 1)); in GetStockElx()
2179 CRangeElxT <CHART> * pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (1, 0)); in GetStockElx()
2193 template <class CHART> ElxInterface * CBuilderT <CHART> :: BuildAlternative(int vaflags) in BuildAlternative()
2226 template <class CHART> ElxInterface * CBuilderT <CHART> :: BuildList(int & flags) in BuildList()
2253 template <class CHART> ElxInterface * CBuilderT <CHART> :: BuildRepeat(int & flags) in BuildRepeat()
2278 re.Append(((curr.ch & (CHART)0xff) == curr.ch) ? (char)curr.ch : 0, 1); in BuildRepeat()
2375 template <class CHART> ElxInterface * CBuilderT <CHART> :: BuildSimple(int & flags) in BuildSimple()
2377 CBufferT <CHART> fixed; in BuildSimple()
2401 CHART vch = curr.ch; in BuildSimple()
2446 …return Keep(new CStringElxT <CHART> (fixed.GetBuffer(), fixed.GetSize(), flags & RIGHTTOLEFT, flag… in BuildSimple()
2451 template <class CHART> ElxInterface * CBuilderT <CHART> :: BuildCharset(int & flags) in BuildCharset()
2454 CHART ch = curr.ch; in BuildCharset()
2488 CRangeElxT <CHART> * pRange; in BuildCharset()
2496 posix.Append(((curr.ch & (CHART)0xff) == curr.ch) ? (char)curr.ch : 0, 1); in BuildCharset()
2504 return Keep(new CPosixElxT <CHART> (posix.GetBuffer(), flags & RIGHTTOLEFT)); in BuildCharset()
2509 pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (flags & RIGHTTOLEFT, 0)); in BuildCharset()
2513 pRange = (CRangeElxT <CHART> *)Keep(new CRangeElxT <CHART> (flags & RIGHTTOLEFT, 1)); in BuildCharset()
2556 template <class CHART> ElxInterface * CBuilderT <CHART> :: BuildRecursive(int & flags) in BuildRecursive()
2569 CHART named_end = RCHART('>'); in BuildRecursive()
2619 CBufferT <CHART> & name = pleft->m_szNamed; in BuildRecursive()
2625 num .Append(((curr.ch & (CHART)0xff) == curr.ch) ? (char)curr.ch : 0, 1); in BuildRecursive()
2674 CBufferT <CHART> & name = pDelegate->m_szNamed; in BuildRecursive()
2680 num .Append(((curr.ch & (CHART)0xff) == curr.ch) ? (char)curr.ch : 0, 1); in BuildRecursive()
2703 rto.Append(((curr.ch & (CHART)0xff) == curr.ch) ? (char)curr.ch : 0, 1); in BuildRecursive()
2744 CHART ch = m_pattern[pos0]; in BuildRecursive()
2745 numstr.Append(((ch & (CHART)0xff) == ch) ? (char)ch : 0, 1); in BuildRecursive()
2797 rto.Append(((curr.ch & (CHART)0xff) == curr.ch) ? (char)curr.ch : 0, 1); in BuildRecursive()
2898 template <class CHART> ElxInterface * CBuilderT <CHART> :: BuildBoundary(int & flags) in BuildBoundary()
2901 CHART ch = curr.ch; in BuildBoundary()
2909 …return Keep(new CBoundaryElxT <CHART> ((flags & MULTILINE) ? BOUNDARY_LINE_BEGIN : BOUNDARY_FILE_B… in BuildBoundary()
2912 …return Keep(new CBoundaryElxT <CHART> ((flags & MULTILINE) ? BOUNDARY_LINE_END : BOUNDARY_FILE_END… in BuildBoundary()
2915 return Keep(new CBoundaryElxT <CHART> (BOUNDARY_WORD_EDGE)); in BuildBoundary()
2918 return Keep(new CBoundaryElxT <CHART> (BOUNDARY_WORD_EDGE, 0)); in BuildBoundary()
2921 return Keep(new CBoundaryElxT <CHART> (BOUNDARY_FILE_BEGIN)); in BuildBoundary()
2924 return Keep(new CBoundaryElxT <CHART> (BOUNDARY_FILE_END)); in BuildBoundary()
2937 template <class CHART> ElxInterface * CBuilderT <CHART> :: BuildBackref(int & flags) in BuildBackref()
2944 CHART named_end = curr.ch == RCHART('<') ? RCHART('>') : RCHART('\''); in BuildBackref()
2945 …CBackrefElxT <CHART> * pbackref = (CBackrefElxT <CHART> *)Keep(new CBackrefElxT <CHART> (-1, flags… in BuildBackref()
2950 CBufferT <CHART> & name = pbackref->m_szNamed; in BuildBackref()
2956 num .Append(((curr.ch & (CHART)0xff) == curr.ch) ? (char)curr.ch : 0, 1); in BuildBackref()
2991 return Keep(new CBackrefElxT <CHART> (nbackref, flags & RIGHTTOLEFT, flags & IGNORECASE)); in BuildBackref()
2995 template <class CHART> int CBuilderT <CHART> :: ReadDec(char * & str, unsigned int & dec) in ReadDec()
3005 for(i = s; i<sizeof(CHART)*3 + s; i++) in ReadDec()
3022 template <class CHART> class CRegexpT
3025 CRegexpT(const CHART * pattern = 0, int flags = 0);
3026 CRegexpT(const CHART * pattern, int length, int flags);
3027 void Compile(const CHART * pattern, int flags = 0);
3028 void Compile(const CHART * pattern, int length, int flags);
3031 MatchResult MatchExact(const CHART * tstring, CContext * pContext = 0) const;
3032 MatchResult MatchExact(const CHART * tstring, int length, CContext * pContext = 0) const;
3033 MatchResult Match(const CHART * tstring, int start = -1, CContext * pContext = 0) const;
3034 MatchResult Match(const CHART * tstring, int length, int start, CContext * pContext = 0) const;
3036 CContext * PrepareMatch(const CHART * tstring, int start = -1, CContext * pContext = 0) const;
3037 …CContext * PrepareMatch(const CHART * tstring, int length, int start, CContext * pContext = 0) con…
3038CHART * Replace(const CHART * tstring, const CHART * replaceto, int start = -1, int ntimes = -1, M…
3039CHART * Replace(const CHART * tstring, int string_length, const CHART * replaceto, int to_length, …
3040 int GetNamedGroupNumber(const CHART * group_name) const;
3043 static void ReleaseString (CHART * tstring );
3047 CBuilderT <CHART> m_builder;
3053 template <class CHART> CRegexpT <CHART> :: CRegexpT(const CHART * pattern, int flags) in CRegexpT()
3055 Compile(pattern, CBufferRefT<CHART>(pattern).GetSize(), flags); in CRegexpT()
3058 template <class CHART> CRegexpT <CHART> :: CRegexpT(const CHART * pattern, int length, int flags) in CRegexpT()
3063 template <class CHART> inline void CRegexpT <CHART> :: Compile(const CHART * pattern, int flags) in Compile()
3065 Compile(pattern, CBufferRefT<CHART>(pattern).GetSize(), flags); in Compile()
3068 template <class CHART> void CRegexpT <CHART> :: Compile(const CHART * pattern, int length, int flag… in Compile()
3071 if(pattern != 0) m_builder.Build(CBufferRefT<CHART>(pattern, length), flags); in Compile()
3074 template <class CHART> inline MatchResult CRegexpT <CHART> :: MatchExact(const CHART * tstring, CCo… in MatchExact()
3076 return MatchExact(tstring, CBufferRefT<CHART>(tstring).GetSize(), pContext); in MatchExact()
3079 template <class CHART> MatchResult CRegexpT <CHART> :: MatchExact(const CHART * tstring, int length… in MatchExact()
3144 template <class CHART> MatchResult CRegexpT <CHART> :: Match(const CHART * tstring, int start, CCon… in Match()
3146 return Match(tstring, CBufferRefT<CHART>(tstring).GetSize(), start, pContext); in Match()
3149 template <class CHART> MatchResult CRegexpT <CHART> :: Match(const CHART * tstring, int length, int… in Match()
3184 template <class CHART> MatchResult CRegexpT <CHART> :: Match(CContext * pContext) const in Match()
3241 template <class CHART> inline CContext * CRegexpT <CHART> :: PrepareMatch(const CHART * tstring, in… in PrepareMatch()
3243 return PrepareMatch(tstring, CBufferRefT<CHART>(tstring).GetSize(), start, pContext); in PrepareMatch()
3246 template <class CHART> CContext * CRegexpT <CHART> :: PrepareMatch(const CHART * tstring, int lengt… in PrepareMatch()
3280 template <class CHART> inline int CRegexpT <CHART> :: GetNamedGroupNumber(const CHART * group_name)… in GetNamedGroupNumber()
3285 template <class CHART> CHART * CRegexpT <CHART> :: Replace(const CHART * tstring, const CHART * rep… in Replace()
3288 …return Replace(tstring, CBufferRefT<CHART>(tstring).GetSize(), replaceto, CBufferRefT<CHART>(repla… in Replace()
3291 template <class CHART> CHART * CRegexpT <CHART> :: Replace(const CHART * tstring, int string_length… in Replace()
3293 typedef CBufferRefT <CHART> StringRef; in Replace()
3310 …static const CHART rtoptn[] = { RCHART('\\'), RCHART('$' ), RCHART('('), RCHART('?'), RCHART(':'),… in Replace()
3312 static CRegexpT <CHART> rtoreg(rtoptn, rtoptnlen, 0); in Replace()
3416 CHART ch = replaceto[lastI + delta]; in Replace()
3489 CBufferT <CHART> result_string; in Replace()
3519 template <class CHART> inline void CRegexpT <CHART> :: ReleaseString(CHART * tstring) in ReleaseString()
3524 template <class CHART> inline void CRegexpT <CHART> :: ReleaseContext(CContext * pContext) in ReleaseContext()