lix/tests
Nicolas B. Pierron b8867a0239 Add builtins.string function.
The function 'builtins.split' takes a POSIX extended regular expression
and an arbitrary string. It returns a list of non-matching substring
interleaved by lists of matched groups of the regular expression.

```nix
with builtins;
assert split "(a)b" "abc"      == [ "" [ "a" ] "c" ];
assert split "([ac])" "abc"    == [ "" [ "a" ] "b" [ "c" ] "" ];
assert split "(a)|(c)" "abc"   == [ "" [ "a" null ] "b" [ null "c" ] "" ];
assert split "([[:upper:]]+)" "  FOO   "
                               == [ "  " [ "FOO" ] "   " ];
```
2017-08-15 20:04:11 +00:00
..
lang Add builtins.string function. 2017-08-15 20:04:11 +00:00
add.sh
binary-cache.sh
build-hook.hook.sh
build-hook.nix
build-hook.sh
build-remote.sh
case-hack.sh
case.nar
check-refs.nix
check-refs.sh
check-reqs.nix
check-reqs.sh
common.sh.in
config.nix
dependencies.builder0.sh
dependencies.builder1.sh
dependencies.builder2.sh
dependencies.nix
dependencies.sh
dump-db.sh
export-graph.nix
export-graph.sh
export.sh
fetchurl.sh Always use base-16 for hashed mirror lookups 2017-07-17 13:13:18 +02:00
filter-source.nix
filter-source.sh
fixed.builder1.sh
fixed.builder2.sh
fixed.nix
fixed.sh
gc-concurrent.builder.sh
gc-concurrent.nix
gc-concurrent.sh
gc-concurrent2.builder.sh
gc-runtime.nix
gc-runtime.sh
gc.sh
hash-check.nix
hash.sh
import-derivation.nix
import-derivation.sh
init.sh
install-darwin.sh
lang.sh
linux-sandbox.sh
local.mk
logging.sh
misc.sh
multiple-outputs.nix
multiple-outputs.sh
nar-index.nix
nar-index.sh
nix-build.sh
nix-channel.sh
nix-copy-closure.nix
nix-profile.sh
nix-shell.sh
optimise-store.sh
parallel.builder.sh
parallel.nix
parallel.sh
pass-as-file.sh
placeholders.sh
referrers.sh
remote-builds.nix
remote-store.sh
repair.sh
restricted.sh
secure-drv-outputs.nix
secure-drv-outputs.sh
setuid.nix
shell.nix
shell.shebang.sh
simple.builder.sh
simple.nix
simple.sh
tarball.sh
timeout.nix Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
timeout.sh Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
user-envs.builder.sh
user-envs.nix
user-envs.sh