(text: string, startIndex: number, endIndex: number)
| 207 | * @returns Index after last style key character. |
| 208 | */ |
| 209 | export function consumeStyleKey(text: string, startIndex: number, endIndex: number): number { |
| 210 | let ch: number; |
| 211 | while ( |
| 212 | startIndex < endIndex && |
| 213 | ((ch = text.charCodeAt(startIndex)) === CharCode.DASH || |
| 214 | ch === CharCode.UNDERSCORE || |
| 215 | ((ch & CharCode.UPPER_CASE) >= CharCode.A && (ch & CharCode.UPPER_CASE) <= CharCode.Z) || |
| 216 | (ch >= CharCode.ZERO && ch <= CharCode.NINE)) |
| 217 | ) { |
| 218 | startIndex++; |
| 219 | } |
| 220 | return startIndex; |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Consumes all whitespace and the separator `:` after the style key. |
no outgoing calls
no test coverage detected
searching dependent graphs…