Ada 2.9.2
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
unicode-inl.h
Go to the documentation of this file.
1
5#ifndef ADA_UNICODE_INL_H
6#define ADA_UNICODE_INL_H
7#include <algorithm>
8#include "ada/unicode.h"
9
18namespace ada::unicode {
19ada_really_inline size_t percent_encode_index(const std::string_view input,
20 const uint8_t character_set[]) {
21 return std::distance(
22 input.begin(), std::ranges::find_if(input, [character_set](const char c) {
23 return character_sets::bit_at(character_set, c);
24 }));
25}
26} // namespace ada::unicode
27
28#endif // ADA_UNICODE_INL_H
#define ada_really_inline
Definition common_defs.h:84
Includes the declarations for unicode operations.
ada_really_inline size_t percent_encode_index(const std::string_view input, const uint8_t character_set[])
Definition unicode-inl.h:19
Definitions for all unicode specific functions.