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
18
namespace
ada::unicode
{
19
ada_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
ada_really_inline
#define ada_really_inline
Definition
common_defs.h:84
ada::unicode
Includes the declarations for unicode operations.
ada::unicode::percent_encode_index
ada_really_inline size_t percent_encode_index(const std::string_view input, const uint8_t character_set[])
Definition
unicode-inl.h:19
unicode.h
Definitions for all unicode specific functions.