(ch: number)
| 158 | } |
| 159 | |
| 160 | export 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 | |
| 169 | export function isDigit(ch: number): boolean { |
| 170 | return ch >= CharacterCodes._0 && ch <= CharacterCodes._9; |
no outgoing calls
no test coverage detected