@@ -44,7 +44,7 @@ pub const HEX: &[u8; 1023] = b"%00\0%01\0%02\0%03\0%04\0%05\0%06\0%07\0\
4444// Character set: C0 control percent-encode
4545// Encodes: U+0000–U+001F, U+007F, and U+0080–U+FFFF
4646// ---------------------------------------------------------------------------
47- pub const C0_CONTROL_PERCENT_ENCODE : [ u8 ; 32 ] = [
47+ pub static C0_CONTROL_PERCENT_ENCODE : [ u8 ; 32 ] = [
4848 0xFF , 0xFF , 0xFF , 0xFF , // 0x00–0x1F
4949 0x00 , 0x00 , 0x00 , 0x00 , // 0x20–0x3F
5050 0x00 , 0x00 , 0x00 , 0x00 , // 0x40–0x5F
@@ -60,7 +60,7 @@ pub const C0_CONTROL_PERCENT_ENCODE: [u8; 32] = [
6060// Encodes C0-control, space (0x20), " (0x22), < (0x3C), > (0x3E),
6161// ` (0x60), and everything >= 0x7F
6262// ---------------------------------------------------------------------------
63- pub const FRAGMENT_PERCENT_ENCODE : [ u8 ; 32 ] = [
63+ pub static FRAGMENT_PERCENT_ENCODE : [ u8 ; 32 ] = [
6464 0xFF , 0xFF , 0xFF , 0xFF , // 0x00–0x1F
6565 0x05 , 0x00 , 0x00 , 0x50 , // 0x20–0x3F: 0x05=space+", 0x50=<+>
6666 0x00 , 0x00 , 0x00 , 0x00 , // 0x40–0x5F
@@ -76,7 +76,7 @@ pub const FRAGMENT_PERCENT_ENCODE: [u8; 32] = [
7676// Encodes C0-control, space, ", #, <, >, and everything >= 0x7F
7777// NOTE: backtick (0x60) is NOT encoded here (only in fragment and path sets).
7878// ---------------------------------------------------------------------------
79- pub const QUERY_PERCENT_ENCODE : [ u8 ; 32 ] = [
79+ pub static QUERY_PERCENT_ENCODE : [ u8 ; 32 ] = [
8080 0xFF , 0xFF , 0xFF , 0xFF , // 0x00–0x1F
8181 0x0D , 0x00 , 0x00 , 0x50 , // 0x20–0x3F: 0x0D=space+"+#, 0x50=<+>
8282 0x00 , 0x00 , 0x00 , 0x00 , // 0x40–0x5F
@@ -91,7 +91,7 @@ pub const QUERY_PERCENT_ENCODE: [u8; 32] = [
9191// Character set: special-query percent-encode
9292// Same as query but also encodes ' (0x27)
9393// ---------------------------------------------------------------------------
94- pub const SPECIAL_QUERY_PERCENT_ENCODE : [ u8 ; 32 ] = [
94+ pub static SPECIAL_QUERY_PERCENT_ENCODE : [ u8 ; 32 ] = [
9595 0xFF , 0xFF , 0xFF , 0xFF , // 0x00–0x1F
9696 0x8D , 0x00 , 0x00 , 0x50 , // 0x20–0x3F: 0x8D=space+"+#+', 0x50=<+>
9797 0x00 , 0x00 , 0x00 , 0x00 , // 0x40–0x5F
@@ -106,7 +106,7 @@ pub const SPECIAL_QUERY_PERCENT_ENCODE: [u8; 32] = [
106106// Character set: path percent-encode
107107// Encodes C0-control, space, ", #, <, >, ?, ^, `, {, |, }, DEL, >= 0x80
108108// ---------------------------------------------------------------------------
109- pub const PATH_PERCENT_ENCODE : [ u8 ; 32 ] = [
109+ pub static PATH_PERCENT_ENCODE : [ u8 ; 32 ] = [
110110 0xFF , 0xFF , 0xFF , 0xFF , // 0x00–0x1F
111111 0x0D , 0x00 , 0x00 , 0xD0 , // 0x20–0x3F: space+"+# and <+>+?
112112 0x00 , 0x00 , 0x00 , 0x40 , // 0x40–0x5F: ^ (0x5E)
@@ -122,7 +122,7 @@ pub const PATH_PERCENT_ENCODE: [u8; 32] = [
122122// Encodes C0-control, space, ", #, /, :, ;, <, =, >, ?, @, [, \, ], ^,
123123// `, {, |, }, DEL, and >= 0x80
124124// ---------------------------------------------------------------------------
125- pub const USERINFO_PERCENT_ENCODE : [ u8 ; 32 ] = [
125+ pub static USERINFO_PERCENT_ENCODE : [ u8 ; 32 ] = [
126126 0xFF , 0xFF , 0xFF , 0xFF , // 0x00–0x1F
127127 0x0D , 0x80 , 0x00 , 0xFC , // 0x20–0x3F: space+"+#+ / and :;<=>?
128128 0x01 , 0x00 , 0x00 , 0x78 , // 0x40–0x5F: @ and [,\,],^
@@ -137,7 +137,7 @@ pub const USERINFO_PERCENT_ENCODE: [u8; 32] = [
137137// Character set: application/x-www-form-urlencoded percent-encode
138138// Like userinfo but space is NOT encoded (it becomes '+' separately)
139139// ---------------------------------------------------------------------------
140- pub const WWW_FORM_URLENCODED_PERCENT_ENCODE : [ u8 ; 32 ] = [
140+ pub static WWW_FORM_URLENCODED_PERCENT_ENCODE : [ u8 ; 32 ] = [
141141 0xFF , 0xFF , 0xFF , 0xFF , // 0x00–0x1F
142142 0xFE , 0x9B , 0x00 , 0xFC , // 0x20–0x3F: (not space) !"#$%&' ()+,/ :;<=>?
143143 0x01 , 0x00 , 0x00 , 0x78 , // 0x40–0x5F: @ and [,\,],^
0 commit comments