(ch)
| 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; |
no outgoing calls
no test coverage detected