bitmark-grammar
Version:
14 lines (13 loc) • 408 B
JavaScript
/*!
* 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) {
return ch >= 0xD800 && ch <= 0xDBFF;
}
export function isLowSurrogate(ch) {
return ch >= 0xDC00 && ch <= 0xDFFF;
}
export function isSupplementaryCodePoint(ch) {
return ch >= 0x10000;
}