MCPcopy
hub / github.com/webpack/webpack / equalsLowerCase

Function equalsLowerCase

lib/css/syntax.js:361–369  ·  view source on GitHub ↗
(s, lit)

Source from the content-addressed store, hash-verified

359 * @returns {boolean} true, if `s` equals `lit` ignoring ASCII case
360 */
361const 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.

Callers 12

parseCssUrlsFunction · 0.85
consumeADeclarationFunction · 0.85
parseImportPreludeFunction · 0.85
walkSelectorListMethod · 0.85
urlActiveMethod · 0.85
parseMethod · 0.85
[NodeType.Ident]Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected