Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snapchat/Valdi
/ isHighSurrogate
Function
isHighSurrogate
valdi_core/src/valdi_core/cpp/Text/UTF16Utils.cpp:28–30 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
// instead of creating a new string everytime.
27
28
static inline bool isHighSurrogate(char16_t c) {
29
return (c >= 0xD800) && (c < 0xDC00);
30
}
31
static inline bool isLowSurrogate(char16_t c) {
32
return (c >= 0xDC00) && (c < 0xE000);
33
}
Callers
1
utf16DecodeCheck
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected