7#include "core/fxcrt/css/cfx_cssvaluelistparser.h"
9#include "core/fxcrt/check.h"
10#include "core/fxcrt/check_op.h"
11#include "core/fxcrt/compiler_specific.h"
12#include "core/fxcrt/fx_extension.h"
13#include "core/fxcrt/fx_system.h"
25 while (CharsRemain() &&
26 (CurrentChar() <=
' ' || CurrentChar() == m_Separator)) {
35 wchar_t wch = CurrentChar();
37 nLength = SkipToChar(
' ');
38 if (nLength == 4 || nLength == 7) {
43 while (CharsRemain() &&
44 (CurrentChar() >
' ' && CurrentChar() != m_Separator)) {
49 }
else if (wch ==
'\"' || wch ==
'\'') {
50 start = start.Substr(1);
52 nLength = SkipToChar(wch);
55 }
else if (m_Cur.First(4).EqualsASCIINoCase(
57 nLength = SkipToChar(
')') + 1;
61 nLength = SkipToCharMatchingParens(m_Separator);
67 return Result{eType, start.First(nLength)};
72 while (CharsRemain() && CurrentChar() != wch) {
81 int64_t bracketCount = 0;
82 while (CharsRemain() && CurrentChar() != wch) {
83 if (CurrentChar() <=
' ') {
86 if (CurrentChar() ==
'(') {
88 }
else if (CurrentChar() ==
')') {
94 while (bracketCount > 0 && CharsRemain()) {
95 if (CurrentChar() ==
')') {
~CFX_CSSValueListParser()
CFX_CSSValueListParser(WideStringView list, wchar_t separator)
std::optional< Result > NextValue()
bool FXSYS_IsDecimalDigit(wchar_t c)
fxcrt::WideStringView WideStringView