Lines Matching refs:pStr
70 int32_t ParseTimeZone(const wchar_t* pStr, int32_t iLen, FX_TIMEZONE* tz) { in ParseTimeZone() argument
79 tz->tzHour = tz->tzHour * 10 + FXSYS_DecimalCharToInt(pStr[iStart++]); in ParseTimeZone()
81 if (iStart < iLen && pStr[iStart] == ':') in ParseTimeZone()
86 tz->tzMinute = tz->tzMinute * 10 + FXSYS_DecimalCharToInt(pStr[iStart++]); in ParseTimeZone()
88 if (pStr[0] == '-') in ParseTimeZone()
181 const wchar_t* pStr = wsNum.c_str(); in GetNumericDotIndex() local
184 if (pStr[ccf] == '\'') { in GetNumericDotIndex()
185 GetLiteralText(pStr, &ccf, iLenf); in GetNumericDotIndex()
187 !wcsncmp(pStr + ccf, wsDotSymbol.c_str(), iLenDot)) { in GetNumericDotIndex()
843 const wchar_t* pStr = wsFormatString.c_str(); in SplitFormatString() local
844 const wchar_t* pToken = pStr; in SplitFormatString()
845 const wchar_t* pEnd = pStr + iStrLen; in SplitFormatString()
848 if (pStr >= pEnd) { in SplitFormatString()
849 wsPatterns->push_back(WideString(pToken, pStr - pToken)); in SplitFormatString()
852 if (*pStr == '\'') { in SplitFormatString()
854 } else if (*pStr == L'|' && !iQuote) { in SplitFormatString()
855 wsPatterns->push_back(WideString(pToken, pStr - pToken)); in SplitFormatString()
856 pToken = pStr + 1; in SplitFormatString()
858 pStr++; in SplitFormatString()
866 const wchar_t* pStr = wsPattern.c_str(); in GetCategory() local
870 if (pStr[ccf] == '\'') { in GetCategory()
871 GetLiteralText(pStr, &ccf, iLenf); in GetCategory()
872 } else if (!bBraceOpen && !wsConstChars.Contains(pStr[ccf])) { in GetCategory()
873 WideString wsCategory(pStr[ccf]); in GetCategory()
878 if (pStr[ccf] == '.' || pStr[ccf] == '(') in GetCategory()
880 if (pStr[ccf] == '{') { in GetCategory()
884 wsCategory += pStr[ccf]; in GetCategory()
908 } else if (pStr[ccf] == '}') { in GetCategory()
920 const wchar_t* pStr = wsPattern.c_str(); in GetTextFormat() local
925 if (pStr[ccf] == '\'') { in GetTextFormat()
927 GetLiteralText(pStr, &ccf, iLenf); in GetTextFormat()
928 wsPurgePattern += WideStringView(pStr + iCurChar, ccf - iCurChar + 1); in GetTextFormat()
929 } else if (!bBrackOpen && !wsConstChars.Contains(pStr[ccf])) { in GetTextFormat()
930 WideString wsSearchCategory(pStr[ccf]); in GetTextFormat()
932 while (ccf < iLenf && pStr[ccf] != '{' && pStr[ccf] != '.' && in GetTextFormat()
933 pStr[ccf] != '(') { in GetTextFormat()
934 wsSearchCategory += pStr[ccf]; in GetTextFormat()
941 if (pStr[ccf] == '(') { in GetTextFormat()
944 while (ccf < iLenf && pStr[ccf] != ')') in GetTextFormat()
946 } else if (pStr[ccf] == '{') { in GetTextFormat()
952 } else if (pStr[ccf] != '}') { in GetTextFormat()
953 wsPurgePattern += pStr[ccf]; in GetTextFormat()
971 const wchar_t* pStr = wsPattern.c_str(); in GetNumericFormat() local
976 if (pStr[ccf] == '\'') { in GetNumericFormat()
978 GetLiteralText(pStr, &ccf, iLenf); in GetNumericFormat()
979 *wsPurgePattern += WideStringView(pStr + iCurChar, ccf - iCurChar + 1); in GetNumericFormat()
980 } else if (!bBrackOpen && !wsConstChars.Contains(pStr[ccf])) { in GetNumericFormat()
981 WideString wsCategory(pStr[ccf]); in GetNumericFormat()
983 while (ccf < iLenf && pStr[ccf] != '{' && pStr[ccf] != '.' && in GetNumericFormat()
984 pStr[ccf] != '(') { in GetNumericFormat()
985 wsCategory += pStr[ccf]; in GetNumericFormat()
994 if (pStr[ccf] == '{') { in GetNumericFormat()
998 if (pStr[ccf] == '(') { in GetNumericFormat()
1001 while (ccf < iLenf && pStr[ccf] != ')') in GetNumericFormat()
1002 wsLCID += pStr[ccf++]; in GetNumericFormat()
1005 } else if (pStr[ccf] == '.') { in GetNumericFormat()
1008 while (ccf < iLenf && pStr[ccf] != '(' && pStr[ccf] != '{') in GetNumericFormat()
1009 wsSubCategory += pStr[ccf++]; in GetNumericFormat()
1041 } else if (pStr[ccf] == 'E') { in GetNumericFormat()
1043 *wsPurgePattern += pStr[ccf]; in GetNumericFormat()
1044 } else if (pStr[ccf] == '%') { in GetNumericFormat()
1046 *wsPurgePattern += pStr[ccf]; in GetNumericFormat()
1047 } else if (pStr[ccf] != '}') { in GetNumericFormat()
1048 *wsPurgePattern += pStr[ccf]; in GetNumericFormat()
1051 if (pStr[ccf] == '.' || pStr[ccf] == 'V' || pStr[ccf] == 'v') { in GetNumericFormat()
1556 const wchar_t* pStr = wsPattern.c_str(); in GetDateTimeFormat() local
1561 if (pStr[ccf] == '\'') { in GetDateTimeFormat()
1563 GetLiteralText(pStr, &ccf, iLenf); in GetDateTimeFormat()
1564 wsTempPattern += WideStringView(pStr + iCurChar, ccf - iCurChar + 1); in GetDateTimeFormat()
1566 !wsConstChars.Contains(pStr[ccf])) { in GetDateTimeFormat()
1567 WideString wsCategory(pStr[ccf]); in GetDateTimeFormat()
1569 while (ccf < iLenf && pStr[ccf] != '{' && pStr[ccf] != '.' && in GetDateTimeFormat()
1570 pStr[ccf] != '(') { in GetDateTimeFormat()
1571 if (pStr[ccf] == 'T') { in GetDateTimeFormat()
1580 wsCategory += pStr[ccf]; in GetDateTimeFormat()
1598 if (pStr[ccf] == '{') { in GetDateTimeFormat()
1602 if (pStr[ccf] == '(') { in GetDateTimeFormat()
1605 while (ccf < iLenf && pStr[ccf] != ')') in GetDateTimeFormat()
1606 wsLCID += pStr[ccf++]; in GetDateTimeFormat()
1609 } else if (pStr[ccf] == '.') { in GetDateTimeFormat()
1612 while (ccf < iLenf && pStr[ccf] != '(' && pStr[ccf] != '{') in GetDateTimeFormat()
1613 wsSubCategory += pStr[ccf++]; in GetDateTimeFormat()
1653 } else if (pStr[ccf] == '}') { in GetDateTimeFormat()
1664 wsTempPattern += pStr[ccf]; in GetDateTimeFormat()