(s, lit)
| 359 | * @returns {boolean} true, if `s` equals `lit` ignoring ASCII case |
| 360 | */ |
| 361 | const equalsLowerCase = (s, lit) => { |
| 362 | if (s.length !== lit.length) return false; |
| 363 | for (let i = 0; i < lit.length; i++) { |
| 364 | let c = s.charCodeAt(i); |
| 365 | if (c >= CC_UPPER_A && c <= CC_UPPER_Z) c |= 0x20; |
| 366 | if (c !== lit.charCodeAt(i)) return false; |
| 367 | } |
| 368 | return true; |
| 369 | }; |
| 370 | |
| 371 | /** |
| 372 | * Consume an escaped code point. |
no outgoing calls
no test coverage detected