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

Function isLineBreak

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

Source from the content-addressed store, hash-verified

158}
159
160export function isLineBreak(ch: number): boolean {
161 // Other new line or line
162 // breaking characters are treated as white space but not as line terminators.
163 return ch === CharacterCodes.lineFeed ||
164 ch === CharacterCodes.carriageReturn ||
165 ch === CharacterCodes.lineSeparator ||
166 ch === CharacterCodes.paragraphSeparator;
167}
168
169export function isDigit(ch: number): boolean {
170 return ch >= CharacterCodes._0 && ch <= CharacterCodes._9;

Callers 2

isConflictMarkerMethod · 0.90
scanUntilMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected