Skip to content

Commit 99fe6d0

Browse files
committed
feat: URLPattern
1 parent 3201e12 commit 99fe6d0

File tree

8 files changed

+1612
-610
lines changed

8 files changed

+1612
-610
lines changed

NativeScript/ada/ada.cpp

+18-19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on 2025-01-30 18:48:55 -0500. Do not edit! */
1+
/* auto-generated on 2025-02-11 09:47:50 -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.
6565
static 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

8685
ada_really_inline constexpr uint8_t path_signature(
8786
std::string_view input) noexcept {

NativeScript/ada/ada.h

+722-591
Large diffs are not rendered by default.

NativeScript/runtime/Runtime.mm

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "ModuleBinding.hpp"
2626
#include "URLImpl.h"
2727
#include "URLSearchParamsImpl.h"
28+
#include "URLPatternImpl.h"
2829

2930
#define STRINGIZE(x) #x
3031
#define STRINGIZE_VALUE_OF(x) STRINGIZE(x)

0 commit comments

Comments
 (0)