bitmark-grammar
Version:
17 lines (13 loc) • 453 B
text/typescript
/*!
* Copyright 2016 The ANTLR Project. All rights reserved.
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
*/
export function isHighSurrogate(ch: number): boolean {
return ch >= 0xD800 && ch <= 0xDBFF;
}
export function isLowSurrogate(ch: number): boolean {
return ch >= 0xDC00 && ch <= 0xDFFF;
}
export function isSupplementaryCodePoint(ch: number): boolean {
return ch >= 0x10000;
}