Ada 2.7.8
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(),
23 std::find_if(input.begin(), input.end(), [character_set](const char c) {
24 return character_sets::bit_at(character_set, c);
25 }));
26}
27} // namespace ada::unicode
28
29#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
ada_warn_unused ada::result< result_type > parse(std::string_view input, const result_type *base_url=nullptr)
Definitions for all unicode specific functions.