MCPcopy Index your code
hub / github.com/nodejs/node / isLowerCaseLetter

Function isLowerCaseLetter

test/fixtures/snapshot/typescript.js:142655–142667  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

142653 return str === str.toUpperCase();
142654 }
142655 function isLowerCaseLetter(ch) {
142656 // Fast check for the ascii range.
142657 if (ch >= 97 /* CharacterCodes.a */ && ch <= 122 /* CharacterCodes.z */) {
142658 return true;
142659 }
142660 if (ch < 127 /* CharacterCodes.maxAsciiCharacter */ || !ts.isUnicodeIdentifierStart(ch, 99 /* ScriptTarget.Latest */)) {
142661 return false;
142662 }
142663 // TODO: find a way to determine this for any unicode characters in a
142664 // non-allocating manner.
142665 var str = String.fromCharCode(ch);
142666 return str === str.toLowerCase();
142667 }
142668 // Assumes 'value' is already lowercase.
142669 function indexOfIgnoringCase(str, value) {
142670 var n = str.length - value.length;

Callers 2

isWordCharFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected