package dune
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=317bec6de4429b5dee157e9864294e1534b722a2acfc50480bd16c804ab790ca
sha512=17450333156622d4612816f9ad5a224c741d62b247d63c1d77b5359d37517c1f9bc598dd11fa024f4e02ccf7eef474cd532eef1d9c34ed13439db6c781f9fa7a
doc/dune.configurator/Configurator/V1/Flags/index.html
Module V1.Flags
write_sexp fname s
writes the list of strings s
to the file fname
in an appropriate format so that it can used in jbuild files with (:include [fname])
.
write_lines fname s
writes the list of string s
to the file fname
with one line per string so that it can be used in Dune action rules with %{read-lines:<path>}
.
extract_comma_space_separated_words s
returns a list of words in s
that are separated by a newline, tab, space or comma character.
extract_blank_separated_words s
returns a list of words in s
that are separated by a tab or space character.
extract_words s ~is_word_char
will split the string s
into a list of words. A valid word character is defined by the is_word_char
predicate returning true and anything else is considered a separator. Any blank words are filtered out of the results.