MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / isDigit

Function isDigit

Extension/src/Utility/Text/characterCodes.ts:169–171  ·  view source on GitHub ↗
(ch: number)

Source from the content-addressed store, hash-verified

167}
168
169export function isDigit(ch: number): boolean {
170 return ch >= CharacterCodes._0 && ch <= CharacterCodes._9;
171}
172
173export function isHexDigit(ch: number): boolean {
174 return isDigit(ch) || ch >= CharacterCodes.A && ch <= CharacterCodes.F || ch >= CharacterCodes.a && ch <= CharacterCodes.f;

Callers 4

scanMethod · 0.90
scanDigitsMethod · 0.90
scanNumberMethod · 0.90
isHexDigitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected