true, if c forms a valid code point.bool isValidCodepoint(Char)(Char c) if (isSomeChar!Char)Checks if a single character forms a valid code point.
When standing alone, some characters are invalid code points. For example the wchar 0xD800 is a so called high surrogate, which can only be interpreted together with a low surrogate following it. As a standalone character it is considered invalid.
See Unicode Standard, D90, D91 and D92 for more details.
c | character to test |
Char | character type of c |
true, if c forms a valid code point.