| 1 | //! Byte pattern tables from RFC 3986 and RFC 3987. |
| 2 | //! |
| 3 | //! The predefined table constants in this module are documented with |
| 4 | //! the ABNF notation of [RFC 5234]. |
| 5 | //! |
| 6 | //! [RFC 5234]: https://datatracker.ietf.org/doc/html/rfc5234 |
| 7 | |
| 8 | use craterust-analyzer cargo fluent-uri 0.4.1 crate/::utf8rust-analyzer cargo fluent-uri 0.4.1 utf8/; |
| 9 | |
| 10 | const TABLE_LENrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/TABLE_LEN.: usize = 256 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().3; |
| 11 | const INDEX_PCT_ENCODEDrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/INDEX_PCT_ENCODED.: usize = 256; |
| 12 | const INDEX_UCSCHARrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/INDEX_UCSCHAR.: usize = 256 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().1; |
| 13 | const INDEX_IPRIVATErust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/INDEX_IPRIVATE.: usize = 256 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().2; |
| 14 | |
| 15 | const fn is_ucscharrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/is_ucschar().(x: u32) -> bool { |
| 16 | matchesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/matches!!(x, 0xa0..=0xd7ff | 0xf900..=0xfdcf | 0xfdf0..=0xffef) |
| 17 | || (x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]ge().>=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]ge(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]ge().0x10000 && x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().<=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().0xdffff && (x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().0xffff) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().<=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().0xfffd) |
| 18 | || (x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]ge().>=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]ge(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]ge().0xe1000 && x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().<=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().0xefffd) |
| 19 | } |
| 20 | |
| 21 | const fn is_iprivaterust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/is_iprivate().(x: u32) -> bool { |
| 22 | (x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]ge().>=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]ge(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]ge().0xe000 && x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().<=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().0xf8ff) || (x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]ge().>=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]ge(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]ge().0xf0000 && (x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().0xffff) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().<=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().0xfffd) |
| 23 | } |
| 24 | |
| 25 | /// A table specifying the byte patterns allowed in a string. |
| 26 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 27 | pub struct Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# { |
| 28 | tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.: [bool; TABLE_LENrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/TABLE_LEN.], |
| 29 | } |
| 30 | |
| 31 | impl Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# { |
| 32 | /// Creates a table that only allows the given unencoded bytes. |
| 33 | /// |
| 34 | /// # Panics |
| 35 | /// |
| 36 | /// Panics if any of the bytes is not ASCII or equals `b'%'`. |
| 37 | #[must_use] |
| 38 | pub const fn newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]new().(mut bytes: &[u8]) -> Selfrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table] { |
| 39 | let mut table = [false; TABLE_LENrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/TABLE_LEN.]; |
| 40 | while let [cur, rem @ ..] = bytes { |
| 41 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!( |
| 42 | cur.is_asciirust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u8]is_ascii().() && *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().cur != b'%', |
| 43 | "cannot allow non-ASCII byte or %" |
| 44 | ); |
| 45 | table[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().cur as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = true; |
| 46 | bytes = rem; |
| 47 | } |
| 48 | Selfrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table] { tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table. } |
| 49 | } |
| 50 | |
| 51 | /// Combines two tables into one. |
| 52 | /// |
| 53 | /// Returns a new table that allows all the byte patterns allowed |
| 54 | /// by `self` or by `other`. |
| 55 | #[must_use] |
| 56 | pub const fn orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(mut self, other: &Selfrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]) -> Selfrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table] { |
| 57 | let mut i = 0; |
| 58 | while i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt().TABLE_LENrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/TABLE_LEN. { |
| 59 | self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().i]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitOrAssign<Self>`]bitor_assign().other.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().i]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().; |
| 60 | i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().1; |
| 61 | } |
| 62 | self |
| 63 | } |
| 64 | |
| 65 | /// Marks this table as allowing percent-encoded octets. |
| 66 | #[must_use] |
| 67 | pub const fn or_pct_encodedrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_pct_encoded().(mut self) -> Selfrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table] { |
| 68 | self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().INDEX_PCT_ENCODEDrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/INDEX_PCT_ENCODED.]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = true; |
| 69 | self |
| 70 | } |
| 71 | |
| 72 | /// Marks this table as allowing characters matching the [`ucschar`] |
| 73 | /// ABNF rule from RFC 3987. |
| 74 | /// |
| 75 | /// [`ucschar`]: https://datatracker.ietf.org/doc/html/rfc3987#section-2.2 |
| 76 | #[must_use] |
| 77 | pub const fn or_ucscharrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_ucschar().(mut self) -> Selfrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table] { |
| 78 | self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().INDEX_UCSCHARrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/INDEX_UCSCHAR.]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = true; |
| 79 | self |
| 80 | } |
| 81 | |
| 82 | /// Marks this table as allowing characters matching the [`iprivate`] |
| 83 | /// ABNF rule from RFC 3987. |
| 84 | /// |
| 85 | /// [`iprivate`]: https://datatracker.ietf.org/doc/html/rfc3987#section-2.2 |
| 86 | #[must_use] |
| 87 | pub const fn or_iprivaterust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_iprivate().(mut self) -> Selfrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table] { |
| 88 | self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().INDEX_IPRIVATErust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/INDEX_IPRIVATE.]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = true; |
| 89 | self |
| 90 | } |
| 91 | |
| 92 | /// Subtracts from this table. |
| 93 | /// |
| 94 | /// Returns a new table that allows all the byte patterns allowed |
| 95 | /// by `self` but not allowed by `other`. |
| 96 | #[must_use] |
| 97 | pub const fn subrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]sub().(mut self, other: &Selfrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]) -> Selfrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table] { |
| 98 | let mut i = 0; |
| 99 | while i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt().TABLE_LENrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/TABLE_LEN. { |
| 100 | self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().i]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitAndAssign<Self>`]bitand_assign().&=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitAndAssign<Self>`]bitand_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitAndAssign<Self>`]bitand_assign().!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().other.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().i]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().; |
| 101 | i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().1; |
| 102 | } |
| 103 | self |
| 104 | } |
| 105 | |
| 106 | /// Checks whether the table is a subset of another, i.e., `other` |
| 107 | /// allows at least all the byte patterns allowed by `self`. |
| 108 | #[must_use] |
| 109 | pub const fn is_subsetrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]is_subset().(&self, other: &Selfrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]) -> bool { |
| 110 | let mut i = 0; |
| 111 | while i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt().TABLE_LENrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/TABLE_LEN. { |
| 112 | if self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().i]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitAnd<Self>`]bitand().!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().other.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().i]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index(). { |
| 113 | return false; |
| 114 | } |
| 115 | i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().1; |
| 116 | } |
| 117 | true |
| 118 | } |
| 119 | |
| 120 | #[inline] |
| 121 | pub(craterust-analyzer cargo fluent-uri 0.4.1 crate/) const fn allows_asciirust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]allows_ascii().(&self, x: u8) -> bool { |
| 122 | self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().x as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index(). |
| 123 | } |
| 124 | |
| 125 | #[inline] |
| 126 | pub(craterust-analyzer cargo fluent-uri 0.4.1 crate/) const fn allows_non_asciirust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]allows_non_ascii().(&self) -> bool { |
| 127 | self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().INDEX_UCSCHARrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/INDEX_UCSCHAR.]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitOr<Self>`]bitor().|rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitOr<Self>`]bitor().self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().INDEX_IPRIVATErust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/INDEX_IPRIVATE.]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index(). |
| 128 | } |
| 129 | |
| 130 | pub(craterust-analyzer cargo fluent-uri 0.4.1 crate/) const fn allows_code_pointrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]allows_code_point().(&self, x: u32) -> bool { |
| 131 | if x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]lt().128 { |
| 132 | self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().x as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index(). |
| 133 | } else { |
| 134 | (self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().INDEX_UCSCHARrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/INDEX_UCSCHAR.]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index(). && is_ucscharrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/is_ucschar().(x)) |
| 135 | || (self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().INDEX_IPRIVATErust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/INDEX_IPRIVATE.]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index(). && is_iprivaterust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/is_iprivate().(x)) |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | /// Checks whether the given unencoded character is allowed by the table. |
| 140 | #[inline] |
| 141 | #[must_use] |
| 142 | pub const fn allowsrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]allows().(&self, ch: char) -> bool { |
| 143 | self.allows_code_pointrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]allows_code_point().(ch as u32) |
| 144 | } |
| 145 | |
| 146 | /// Checks whether percent-encoded octets are allowed by the table. |
| 147 | #[inline] |
| 148 | #[must_use] |
| 149 | pub const fn allows_pct_encodedrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]allows_pct_encoded().(&self) -> bool { |
| 150 | self.tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#table.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().INDEX_PCT_ENCODEDrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/INDEX_PCT_ENCODED.]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index(). |
| 151 | } |
| 152 | |
| 153 | /// Validates the given string with the table. |
| 154 | pub(craterust-analyzer cargo fluent-uri 0.4.1 crate/) const fn validaterust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]validate().(&self, s: &[u8]) -> bool { |
| 155 | let mut i = 0; |
| 156 | let allow_pct_encoded = self.allows_pct_encodedrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]allows_pct_encoded().(); |
| 157 | let allow_non_ascii = self.allows_non_asciirust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]allows_non_ascii().(); |
| 158 | |
| 159 | while i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt().s.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() { |
| 160 | let x = s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().i]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().; |
| 161 | if allow_pct_encoded && x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq().b'%' { |
| 162 | if i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().2 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]ge().>=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]ge(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]ge().s.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() { |
| 163 | return false; |
| 164 | } |
| 165 | let (hi, lo) = (s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().); |
| 166 | |
| 167 | if !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().(HEXDIGrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/HEXDIG..allows_asciirust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]allows_ascii().(hi) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][`BitAnd<Self>`]bitand().HEXDIGrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/HEXDIG..allows_asciirust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]allows_ascii().(lo)) { |
| 168 | return false; |
| 169 | } |
| 170 | i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().3; |
| 171 | } else if allow_non_ascii { |
| 172 | let (x, len) = utf8rust-analyzer cargo fluent-uri 0.4.1 utf8/::next_code_pointrust-analyzer cargo fluent-uri 0.4.1 utf8/next_code_point().(s, i); |
| 173 | if !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().self.allows_code_pointrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]allows_code_point().(x) { |
| 174 | return false; |
| 175 | } |
| 176 | i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().len; |
| 177 | } else { |
| 178 | if !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().self.allows_asciirust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]allows_ascii().(x) { |
| 179 | return false; |
| 180 | } |
| 181 | i rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().1; |
| 182 | } |
| 183 | } |
| 184 | true |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | const fn newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(bytes: &[u8]) -> Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# { |
| 189 | Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table#::newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]new().(bytes) |
| 190 | } |
| 191 | |
| 192 | // Rules from RFC 3986: |
| 193 | |
| 194 | /// `ALPHA = %x41-5A / %x61-7A` |
| 195 | pub const ALPHArust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/ALPHA.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"); |
| 196 | |
| 197 | /// `DIGIT = %x30-39` |
| 198 | pub const DIGITrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/DIGIT.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b"0123456789"); |
| 199 | |
| 200 | /// `HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"` |
| 201 | pub const HEXDIGrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/HEXDIG.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &DIGITrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/DIGIT..orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(&newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b"ABCDEFabcdef")); |
| 202 | |
| 203 | /// `scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )` |
| 204 | pub const SCHEMErust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/SCHEME.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &ALPHArust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/ALPHA..orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(DIGITrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/DIGIT.).orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(&newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b"+-.")); |
| 205 | |
| 206 | /// `userinfo = *( unreserved / pct-encoded / sub-delims / ":" )` |
| 207 | pub const USERINFOrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/USERINFO.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &UNRESERVEDrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/UNRESERVED..orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(SUB_DELIMSrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/SUB_DELIMS.).orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(&newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b":")).or_pct_encodedrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_pct_encoded().(); |
| 208 | |
| 209 | /// `IPvFuture = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )` |
| 210 | pub const IPV_FUTURErust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/IPV_FUTURE.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &UNRESERVEDrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/UNRESERVED..orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(SUB_DELIMSrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/SUB_DELIMS.).orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(&newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b":")); |
| 211 | |
| 212 | /// `reg-name = *( unreserved / pct-encoded / sub-delims )` |
| 213 | pub const REG_NAMErust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/REG_NAME.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &UNRESERVEDrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/UNRESERVED..orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(SUB_DELIMSrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/SUB_DELIMS.).or_pct_encodedrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_pct_encoded().(); |
| 214 | |
| 215 | /// `path = *( pchar / "/" )` |
| 216 | pub const PATHrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/PATH.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &PCHARrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/PCHAR..orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(&newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b"/")); |
| 217 | |
| 218 | /// `segment-nz-nc = 1*( unreserved / pct-encoded / sub-delims / "@" )` |
| 219 | pub const SEGMENT_NZ_NCrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/SEGMENT_NZ_NC.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &UNRESERVEDrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/UNRESERVED..orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(SUB_DELIMSrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/SUB_DELIMS.).orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(&newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b"@")).or_pct_encodedrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_pct_encoded().(); |
| 220 | |
| 221 | /// `pchar = unreserved / pct-encoded / sub-delims / ":" / "@"` |
| 222 | pub const PCHARrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/PCHAR.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &UNRESERVEDrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/UNRESERVED..orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(SUB_DELIMSrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/SUB_DELIMS.).orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(&newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b":@")).or_pct_encodedrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_pct_encoded().(); |
| 223 | |
| 224 | /// `query = *( pchar / "/" / "?" )` |
| 225 | pub const QUERYrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/QUERY.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &PCHARrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/PCHAR..orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(&newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b"/?")); |
| 226 | |
| 227 | /// `fragment = *( pchar / "/" / "?" )` |
| 228 | pub const FRAGMENTrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/FRAGMENT.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = QUERYrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/QUERY.; |
| 229 | |
| 230 | /// `unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"` |
| 231 | pub const UNRESERVEDrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/UNRESERVED.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &ALPHArust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/ALPHA..orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(DIGITrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/DIGIT.).orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(&newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b"-._~")); |
| 232 | |
| 233 | /// `reserved = gen-delims / sub-delims` |
| 234 | pub const RESERVEDrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/RESERVED.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &GEN_DELIMSrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/GEN_DELIMS..orrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or().(SUB_DELIMSrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/SUB_DELIMS.); |
| 235 | |
| 236 | /// `gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"` |
| 237 | pub const GEN_DELIMSrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/GEN_DELIMS.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b":/?#[]@"); |
| 238 | |
| 239 | /// `sub-delims = "!" / "$" / "&" / "'" / "(" / ")" |
| 240 | /// / "*" / "+" / "," / ";" / "="` |
| 241 | pub const SUB_DELIMSrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/SUB_DELIMS.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &newrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/new().(b"!$&'()*+,;="); |
| 242 | |
| 243 | // Rules from RFC 3987: |
| 244 | |
| 245 | pub const IUSERINFOrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/IUSERINFO.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &USERINFOrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/USERINFO..or_ucscharrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_ucschar().(); |
| 246 | pub const IREG_NAMErust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/IREG_NAME.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = ®_NAMErust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/REG_NAME..or_ucscharrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_ucschar().(); |
| 247 | pub const IPATHrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/IPATH.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &PATHrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/PATH..or_ucscharrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_ucschar().(); |
| 248 | pub const ISEGMENT_NZ_NCrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/ISEGMENT_NZ_NC.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &SEGMENT_NZ_NCrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/SEGMENT_NZ_NC..or_ucscharrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_ucschar().(); |
| 249 | pub const IQUERYrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/IQUERY.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &QUERYrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/QUERY..or_ucscharrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_ucschar().().or_iprivaterust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_iprivate().(); |
| 250 | pub const IFRAGMENTrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/IFRAGMENT.: &Tablerust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/Table# = &FRAGMENTrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/FRAGMENT..or_ucscharrust-analyzer cargo fluent-uri 0.4.1 pct_enc/table/impl#[Table]or_ucschar().(); |