File tree Expand file tree Collapse file tree 2 files changed +642
-617
lines changed
test-app/runtime/src/main/cpp/ada Expand file tree Collapse file tree 2 files changed +642
-617
lines changed Original file line number Diff line number Diff line change 1- /* auto-generated on 2025-02-23 20:08:55 -0500. Do not edit! */
1+ /* auto-generated on 2025-02-26 20:29:12 -0500. Do not edit! */
22/* begin file src/ada.cpp */
33#include "ada.h"
44/* begin file src/checkers.cpp */
@@ -64,24 +64,23 @@ ada_really_inline constexpr bool is_ipv4(std::string_view view) noexcept {
6464// encoding.
6565static constexpr std::array<uint8_t, 256> path_signature_table =
6666 []() consteval {
67- std::array<uint8_t, 256> result{};
68- for (size_t i = 0; i < 256; i++) {
69- if (i <= 0x20 || i == 0x22 || i == 0x23 || i == 0x3c || i == 0x3e ||
70- i == 0x3f || i == 0x60 || i == 0x7b || i == 0x7d || i > 0x7e) {
71- result[i] = 1;
72- } else if (i == 0x25) {
73- result[i] = 8;
74- } else if (i == 0x2e) {
75- result[i] = 4;
76- } else if (i == 0x5c) {
77- result[i] = 2;
78- } else {
79- result[i] = 0;
80- }
81- }
82- return result;
83- }
84- ();
67+ std::array<uint8_t, 256> result{};
68+ for (size_t i = 0; i < 256; i++) {
69+ if (i <= 0x20 || i == 0x22 || i == 0x23 || i == 0x3c || i == 0x3e ||
70+ i == 0x3f || i == 0x60 || i == 0x7b || i == 0x7d || i > 0x7e) {
71+ result[i] = 1;
72+ } else if (i == 0x25) {
73+ result[i] = 8;
74+ } else if (i == 0x2e) {
75+ result[i] = 4;
76+ } else if (i == 0x5c) {
77+ result[i] = 2;
78+ } else {
79+ result[i] = 0;
80+ }
81+ }
82+ return result;
83+ }();
8584
8685ada_really_inline constexpr uint8_t path_signature(
8786 std::string_view input) noexcept {
You can’t perform that action at this time.
0 commit comments