OpamStd.String
SourceLike Stdlib.String.compare
, but with lowercase/uppercase variants ordered next to each other (still considered not equal though)
is_prefix_of from full str
returns true if str
if a prefix of full
, with at least from
first characters
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"]