Fclib.StringExtension of OCaml's Stdlib.String module.
include module type of Stdlib.Stringval to_seq : t -> char Stdlib.Seq.tval to_seqi : t -> (int * char) Stdlib.Seq.tval of_seq : char Stdlib.Seq.t -> tval get_utf_8_uchar : t -> int -> Stdlib.Uchar.utf_decodeval is_valid_utf_8 : t -> boolval get_utf_16be_uchar : t -> int -> Stdlib.Uchar.utf_decodeval is_valid_utf_16be : t -> boolval get_utf_16le_uchar : t -> int -> Stdlib.Uchar.utf_decodeval is_valid_utf_16le : t -> boolval hash : t -> intval seeded_hash : int -> t -> intCase-insensitive string comparison. Only ISO-8859-1 accents are handled.
remove_prefix ~strict prefix s returns None if prefix is not a prefix of s and Some s' iff s=prefix^s'.
remove_suffix ~strict suffix s returns None if suffix is not a suffix of s and Some s' iff s=s'^suffix.
Same as String.length but counts utf8 characters instead of bytes.
Same as String.escaped but for utf8 encoded strings. Unicode non ASCII characters are preserved unescaped.
remove underscores at the beginning and end of a string. If a string is composed solely of underscores, return the empty string
percent_encode s returns the string s encoded so that it can be used as a path component in a HTML URL. All characters not on the list of unreserved characters in RFC3986 are percent-encoded. For instance the space character is converted to %20.
Cf. https://datatracker.ietf.org/doc/html/rfc3986#section-2.3 for the list of unreserved characters.
Exactly Stdlib.find_first from OCaml 5.5
Exactly Stdlib.find_last from OCaml 5.5