Documentation

LeanUri.Parsers

Character Predicates (RFC 3986 Section 2) #

ALPHA = %x41-5A / %x61-7A (A-Z / a-z)

Equations
Instances For

    HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"

    Equations
    Instances For

      unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"

      Equations
      Instances For

        gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"

        Equations
        Instances For

          sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="

          Equations
          Instances For

            Basic Parsers (RFC 3986 Section 2) #

            Parse zero or more with a parser and accumulate the results into a string

            Parse a percent-encoded octet: pct-encoded = "%" HEXDIG HEXDIG

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="

              Equations
              Instances For

                Component-specific allowed character predicates (RFC 3986) #

                Allowed in a path segment: unreserved, sub-delims, ':', '@' -

                Equations
                Instances For

                  Allowed in a query or fragment: unreserved, sub-delims, ':', '@', '/', '?' -

                  Equations
                  Instances For

                    Allowed in userinfo: unreserved, sub-delims, ':' -

                    Equations
                    Instances For

                      Allowed in reg-name (host): unreserved, sub-delims -

                      Equations
                      Instances For

                        Allowed in port: digit -

                        Equations
                        Instances For

                          Percent Decoding Chars #

                          Convert a hexadecimal character to its numeric value. Assumes input is a valid HEXDIG (produced by the parser).

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                @[specialize #[]]
                                partial def LeanUri.Internal.manyAppendCore {α ι elem idx : Type} [DecidableEq idx] [DecidableEq elem] [Std.Internal.Parsec.Input ι elem idx] [Append α] (p : Std.Internal.Parsec ι α) (acc : α) :
                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  Equations
                                  Instances For

                                    Decode percent encoded string into ordinary string.

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      def LeanUri.pctEncode (allowed : CharBool) (s : String) :

                                      Encode all allowed chars in a string to percent encoded bytes

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For