• Home
  • Raw
  • Download

Lines Matching refs:iValueLen

27                     int32_t iValueLen,  in ParseCSSNumber()  argument
30 ASSERT(pszValue && iValueLen > 0); in ParseCSSNumber()
32 fValue = FXSYS_wcstof(pszValue, iValueLen, &iUsedLen); in ParseCSSNumber()
36 iValueLen -= iUsedLen; in ParseCSSNumber()
39 if (iValueLen >= 1 && *pszValue == '%') { in ParseCSSNumber()
41 } else if (iValueLen == 2) { in ParseCSSNumber()
54 int32_t iValueLen, in ParseCSSString() argument
57 ASSERT(pszValue && iValueLen > 0); in ParseCSSString()
59 *iLength = iValueLen; in ParseCSSString()
60 if (iValueLen >= 2) { in ParseCSSString()
61 FX_WCHAR first = pszValue[0], last = pszValue[iValueLen - 1]; in ParseCSSString()
67 return iValueLen > 0; in ParseCSSString()
72 int32_t iValueLen, in ParseCSSColor() argument
74 ASSERT(pszValue && iValueLen > 0); in ParseCSSColor()
78 switch (iValueLen) { in ParseCSSColor()
98 if (iValueLen >= 10) { in ParseCSSColor()
99 if (pszValue[iValueLen - 1] != ')' || FXSYS_wcsnicmp(L"rgb(", pszValue, 4)) in ParseCSSColor()
105 CFDE_CSSValueListParser list(pszValue + 4, iValueLen - 5, ','); in ParseCSSColor()
107 if (!list.NextValue(eType, pszValue, iValueLen)) in ParseCSSColor()
112 if (!ParseCSSNumber(pszValue, iValueLen, fValue, eNumType)) in ParseCSSColor()
124 FDE_GetCSSColorByName(CFX_WideStringC(pszValue, iValueLen)); in ParseCSSColor()
163 int32_t iValueLen = value.GetLength(); in AddProperty() local
166 if (iValueLen >= 10 && pszValue[iValueLen - 10] == '!' && in AddProperty()
167 FXSYS_wcsnicmp(L"important", pszValue + iValueLen - 9, 9) == 0) { in AddProperty()
168 if ((iValueLen -= 10) == 0) in AddProperty()
190 pCSSValue = ParseNumber(pszValue, iValueLen); in AddProperty()
193 pCSSValue = ParseEnum(pszValue, iValueLen); in AddProperty()
196 pCSSValue = ParseColor(pszValue, iValueLen); in AddProperty()
199 pCSSValue = ParseString(pszValue, iValueLen); in AddProperty()
217 ParseFontProperty(pszValue, iValueLen, bImportant); in AddProperty()
220 if (ParseBorderProperty(pszValue, iValueLen, pWidth)) { in AddProperty()
233 if (ParseBorderProperty(pszValue, iValueLen, pWidth)) { in AddProperty()
240 if (ParseBorderProperty(pszValue, iValueLen, pWidth)) { in AddProperty()
247 if (ParseBorderProperty(pszValue, iValueLen, pWidth)) { in AddProperty()
254 if (ParseBorderProperty(pszValue, iValueLen, pWidth)) { in AddProperty()
265 ParseValueListProperty(pTable, pszValue, iValueLen, bImportant); in AddProperty()
281 int32_t iValueLen) { in ParseNumber() argument
284 if (!ParseCSSNumber(pszValue, iValueLen, fValue, eUnit)) in ParseNumber()
291 int32_t iValueLen) { in ParseEnum() argument
293 FDE_GetCSSPropertyValueByName(CFX_WideStringC(pszValue, iValueLen)); in ParseEnum()
300 int32_t iValueLen) { in ParseColor() argument
302 if (!ParseCSSColor(pszValue, iValueLen, &dwColor)) in ParseColor()
309 int32_t iValueLen) { in ParseString() argument
311 if (!ParseCSSString(pszValue, iValueLen, &iOffset, &iValueLen)) in ParseString()
314 if (iValueLen <= 0) in ParseString()
318 CFX_WideString(pszValue + iOffset, iValueLen)); in ParseString()
324 int32_t iValueLen, in ParseValueListProperty() argument
328 CFDE_CSSValueListParser parser(pszValue, iValueLen, separator); in ParseValueListProperty()
333 while (parser.NextValue(eType, pszValue, iValueLen)) { in ParseValueListProperty()
339 if (ParseCSSNumber(pszValue, iValueLen, fValue, eNumType)) in ParseValueListProperty()
347 if (ParseCSSColor(pszValue, iValueLen, &dwColor)) { in ParseValueListProperty()
355 CFX_WideStringC(pszValue, iValueLen)); in ParseValueListProperty()
364 CFX_WideString(pszValue, iValueLen))); in ParseValueListProperty()
370 if (ParseCSSColor(pszValue, iValueLen, &dwColor)) { in ParseValueListProperty()
448 int32_t iValueLen, in ParseBorderProperty() argument
452 CFDE_CSSValueListParser parser(pszValue, iValueLen, ' '); in ParseBorderProperty()
454 while (parser.NextValue(eType, pszValue, iValueLen)) { in ParseBorderProperty()
462 if (ParseCSSNumber(pszValue, iValueLen, fValue, eNumType)) in ParseBorderProperty()
468 FDE_GetCSSColorByName(CFX_WideStringC(pszValue, iValueLen)); in ParseBorderProperty()
473 FDE_GetCSSPropertyValueByName(CFX_WideStringC(pszValue, iValueLen)); in ParseBorderProperty()
501 int32_t iValueLen, in ParseFontProperty() argument
503 CFDE_CSSValueListParser parser(pszValue, iValueLen, '/'); in ParseFontProperty()
511 while (parser.NextValue(eType, pszValue, iValueLen)) { in ParseFontProperty()
515 FDE_GetCSSPropertyValueByName(CFX_WideStringC(pszValue, iValueLen)); in ParseFontProperty()
566 CFX_WideString(pszValue, iValueLen))); in ParseFontProperty()
574 if (!ParseCSSNumber(pszValue, iValueLen, fValue, eNumType)) in ParseFontProperty()