Lines Matching refs:code
90 // controls and all code points greater than U+007E (~).
260 // should start a new code point.
2807 // For each code point in the domain_name string, look up the status
2811 // * disallowed: Leave the code point unchanged in the string, and
2813 // * ignored: Remove the code point from the string. This is
2814 // equivalent to mapping the code point to an empty string.
2815 // * mapped: Replace the code point in the string by the value for
2818 // * valid: Leave the code point unchanged in the string.
2825 uint8_t code = uint8_t(descriptor);
2826 switch (code) {
9310 // Each code point in the label must only have certain status values
9390 auto is_l_or_d = [](uint32_t code) {
9391 return std::binary_search(std::begin(L), std::end(L), code) ||
9392 std::binary_search(std::begin(D), std::end(D), code);
9394 auto is_r_or_d = [](uint32_t code) {
9395 return std::binary_search(std::begin(R), std::end(R), code) ||
9396 std::binary_search(std::begin(D), std::end(D), code);
9928 // A forbidden host code point is U+0000 NULL, U+0009 TAB, U+000A LF, U+000D CR,
10107 // The above code might be a bit better than the code below. Compilers
10145 // Optimization opportunity: if the following code gets
10933 // has no notion of std::string_view::npos, so the code does not
10954 // has no notion of std::string_view::npos, so the code does not
11118 // Windows drive letter, then replace the second code point in
11346 // While c is not the EOF code point:
11403 // While c is not the EOF code point:
11487 // If c is the EOF code point, validation error, return failure.
11490 "parse_ipv6 If c is the EOF code point, validation error, return "
11495 // Otherwise, if c is not the EOF code point, validation error, return
11499 "parse_ipv6 Otherwise, if c is not the EOF code point, validation "
12232 // If after a run pointer points to the EOF code point, go to the next step.
12312 // string, state to no scheme state, and start over (from the first code
12459 // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
12578 // Otherwise, if c is not the EOF code point:
12717 // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
12808 // Otherwise, if c is not the EOF code point:
12869 // If the code point substring from pointer to the end of input does
12992 // Otherwise, if c is not the EOF code point:
12996 // If the code point substring from pointer to the end of input does
13623 // Often, the input does not contain any forbidden code points, and no upper
13634 // the code would be more complex.
13646 // We have encountered at least one forbidden code point or the input contains
13856 // the code below works even if there isn't.
13874 // the code below works even if there isn't.
14156 // While c is not the EOF code point:
14213 // While c is not the EOF code point:
14296 // If c is the EOF code point, validation error, return failure.
14299 "parse_ipv6 If c is the EOF code point, validation error, return "
14304 // Otherwise, if c is not the EOF code point, validation error, return
14308 "parse_ipv6 Otherwise, if c is not the EOF code point, validation "
14725 * This is largely duplicated code from helpers::parse_prepared_path, which is
14872 // Windows drive letter, then replace the second code point in