Ada
4.1.1
Fast spec-compliant URL parser
Toggle main menu visibility
Loading...
Searching...
No Matches
identifier.h
Go to the documentation of this file.
1
#ifndef ADA_IDNA_IDENTIFIER_H
2
#define ADA_IDNA_IDENTIFIER_H
3
4
#include <string>
5
#include <string_view>
6
7
namespace
ada::idna
{
8
9
// Verify if it is valid name code point given a Unicode code point and a
10
// boolean first: If first is true return the result of checking if code point
11
// is contained in the IdentifierStart set of code points. Otherwise return the
12
// result of checking if code point is contained in the IdentifierPart set of
13
// code points. Returns false if the input is empty or the code point is not
14
// valid. There is minimal Unicode error handling: the input should be valid
15
// UTF-8. https://urlpattern.spec.whatwg.org/#is-a-valid-name-code-point
16
bool
valid_name_code_point
(
char32_t
code_point,
bool
first);
17
18
}
// namespace ada::idna
19
20
#endif
ada::idna
Definition
identifier.h:7
ada::idna::valid_name_code_point
bool valid_name_code_point(char32_t code_point, bool first)
Definition
ada_idna.cpp:6972