-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Encoding scheme to encode any Unicode string with only [0-9a-zA-Z_] -- -- Double-X-Encoding is an encoding scheme to encode any Unicode string -- with only characters from [0-9a-zA-Z_]. Therefore it's quite similar -- to URL percent-encoding. It's especially useful for GraphQL ID -- generation, as it includes support for encoding leading digits and -- double underscores. @package double-x-encoding @version 1.1.1 -- | Implementation of Double-X-Encoding encoder and decoder in Haskell -- -- Main functions: -- --
-- >>> doubleXEncode "id-with.special$chars!" -- "idXXDwithXXEspecialXX4charsXX1" --doubleXEncode :: Text -> Text -- | Default options for GraphQL encoding. Leading digits or double -- underscores are not allowed for field names. gqlOptions :: EncodeOptions -- | Encode a text using the Double-X-Encoding algorithm with GraphQL -- options. -- --
-- >>> doubleXEncodeGql "1FileFormat__" -- "XXZ1FileFormatXXRXXR" --doubleXEncodeGql :: Text -> Text -- | Decode a Double-X-Encoding encoded text. -- --
-- >>> doubleXDecode "idXXDwithXXEspecialXX4charsXX1" -- "id-with.special$chars!" --doubleXDecode :: Text -> Text