File tree 2 files changed +642
-617
lines changed
test-app/runtime/src/main/cpp/ada
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! */
2
2
/* begin file src/ada.cpp */
3
3
#include "ada.h"
4
4
/* begin file src/checkers.cpp */
@@ -64,24 +64,23 @@ ada_really_inline constexpr bool is_ipv4(std::string_view view) noexcept {
64
64
// encoding.
65
65
static constexpr std::array<uint8_t, 256> path_signature_table =
66
66
[]() 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
+ }();
85
84
86
85
ada_really_inline constexpr uint8_t path_signature(
87
86
std::string_view input) noexcept {
You can’t perform that action at this time.
0 commit comments