module Decoder: sig
.. end
type
result = [ `Clean of string | `Dirty of string | `Wrong_padding ]
val is_b64 : char -> bool
is_b64 chr
returns true
iff the character is a Base64 character.
val decode : unit Parser.t -> unit Parser.t -> result Parser.t
decode boundary rollback
decodes a Base64 input and stops at the
boundary
and, iff the decoder recognizes the boundary, it rollbacks -
that means the input contains the boundary although it recognized.
val inline : unit -> result Parser.t
inline ()
decodes an inline encoded string. It stops when it
recognizes the "?"
character and it does not consume him.