Module OpamStd.StringSource
Collections
Set of string sets
Map of string sets
Checks
Like Stdlib.String.compare, but with lowercase/uppercase variants ordered next to each other (still considered not equal though)
Manipulation
is_prefix_of from full str returns true if str if a prefix of full, with at least from first characters
Transformations
Cut a string at the first occurrence of the given char
Same as cut_at, but starts from the right
Split a string at occurrences of a given characters. Empty strings are skipped.
The same as split, but keep empty strings (leading, trailing or between contiguous delimiters)
Splits a variable at the given character, but allowing double-quote characters to protect the delimiter.
split_quoted "foo\";\"bar;baz" ';' = ["foo;bar"; "baz"]