MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Utf16IsLeadSurrogate

Function Utf16IsLeadSurrogate

src/string_func.h:65–68  ·  view source on GitHub ↗

* Is the given character a lead surrogate code point? * @param c The character to test. * @return True if the character is a lead surrogate code point. */

Source from the content-addressed store, hash-verified

63 * @return True if the character is a lead surrogate code point.
64 */
65inline bool Utf16IsLeadSurrogate(uint c)
66{
67 return c >= 0xD800 && c <= 0xDBFF;
68}
69
70/**
71 * Is the given character a lead surrogate code point?

Callers 3

Utf16DecodeCharFunction · 0.85
HandleCharMsgFunction · 0.85
HandleIMECompositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected