Frama_c_kernel.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 -> boolCase-insensitive string comparison. Only ISO-8859-1 accents are handled.
Same as String.hash but made available here until the minimal supported version of OCaml is 5.0.
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.