Lines Matching refs:characters
36 static inline bool isCSSTokenizerIdentifier(const CharacterType* characters, unsigned length)
38 const CharacterType* end = characters + length;
41 if (characters != end && characters[0] == '-')
42 ++characters;
45 if (characters == end || !(characters[0] == '_' || characters[0] >= 128 || isASCIIAlpha(characters[0])))
47 ++characters;
50 for (; characters != end; ++characters) {
51 if (!(characters[0] == '_' || characters[0] == '-' || characters[0] >= 128 || isASCIIAlphanumeric(characters[0])))
72 static inline bool isCSSTokenizerURL(const CharacterType* characters, unsigned length)
74 const CharacterType* end = characters + length;
76 for (; characters != end; ++characters) {
77 CharacterType c = characters[0];
112 static inline String quoteCSSStringInternal(const CharacterType* characters, unsigned length)
119 CharacterType ch = characters[i];
137 CharacterType ch = characters[i];
142 } else if (ch < 0x20 || ch == 0x7F) { // Control characters.
147 // Space character may be required to separate backslash-escape sequence and normal characters.
163 // This function expands each character to at most 3 characters ('\u0010' -> '\' '1' '0') as well as adds
164 // 2 quote characters (before and after). Make sure the resulting size (3 * length + 2) will not overflow unsigned.