is_in

Defined in header: <orcus/parser_global.hpp>

bool orcus::is_in(char c, std::string_view allowed)

Check if the characater is one of allowed characters. Note that you can only specify up to 16 allowed characters.

Parameters:
  • c – character to check.

  • allowed – string containing all allowed characters.

Returns:

true if the character is one of the allowed characters, false otherwise.