MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ is_text_input_codepoint()

constexpr bool MayaFlux::Core::is_text_input_codepoint ( uint32_t  codepoint)
inlineconstexprnoexcept

Check if a Unicode codepoint is valid for text input.

Parameters
codepointUnicode codepoint to check
Returns
true if valid, false otherwise

Valid codepoints are:

  • >= 0x20 (space) and <= 0x10FFFF (max Unicode)
  • Not 0x7F (DEL)
  • Not in the surrogate range 0xD800-0xDFFF

Definition at line 217 of file Window.hpp.

219{
220 return codepoint >= 0x20
221 && codepoint != 0x7F
222 && (codepoint < 0xD800 || codepoint > 0xDFFF)
223 && codepoint <= 0x10FFFF;
224}