diff options
author | Louis Pilfold <louis@lpil.uk> | 2019-06-25 22:48:07 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2019-06-25 22:48:07 +0100 |
commit | 2c2541750ca4b7b604070c75c18d84be833c97d5 (patch) | |
tree | f5e63d941a1c7e2c2d4dff1d81c43fa2766308ae /src/std/iodata.gleam | |
parent | 96c20b8ebf8420fbba75c97fa08eaeb34e8dc394 (diff) | |
download | gleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.tar.gz gleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.zip |
stdlib namespace std -> gleam
Diffstat (limited to 'src/std/iodata.gleam')
-rw-r--r-- | src/std/iodata.gleam | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/std/iodata.gleam b/src/std/iodata.gleam deleted file mode 100644 index 56efc65..0000000 --- a/src/std/iodata.gleam +++ /dev/null @@ -1,58 +0,0 @@ -pub external type Iodata; - -pub external fn prepend(Iodata, String) -> Iodata = - "gleam__stdlib" "iodata_prepend"; - -pub external fn append(Iodata, String) -> Iodata = - "gleam__stdlib" "iodata_append"; - -pub external fn prepend_iodata(Iodata, Iodata) -> Iodata = - "gleam__stdlib" "iodata_prepend"; - -pub external fn append_iodata(Iodata, Iodata) -> Iodata = - "gleam__stdlib" "iodata_append"; - -pub external fn from_strings(List(String)) -> Iodata = - "gleam__stdlib" "identity"; - -pub external fn concat(List(Iodata)) -> Iodata = - "gleam__stdlib" "identity"; - -pub external fn new(String) -> Iodata = - "gleam__stdlib" "identity"; - -pub external fn to_string(Iodata) -> String = - "erlang" "iolist_to_binary"; - -pub external fn byte_size(Iodata) -> Int = - "erlang" "iolist_size"; - -pub external fn from_float(Float) -> Iodata = - "io_lib_format" "fwrite_g"; - -pub external fn lowercase(Iodata) -> Iodata = "string" "lowercase" - -pub external fn uppercase(Iodata) -> Iodata = "string" "uppercase" - -pub external fn reverse(Iodata) -> Iodata = "string" "reverse" - -enum Direction = - | All - -external fn erl_split(Iodata, String, Direction) -> List(Iodata) = - "string" "split" - -pub fn split(iodata, on) { - erl_split(iodata, on, All) -} - -external fn erl_replace(Iodata, String, String, Direction) -> Iodata = - "string" "replace" - -pub fn replace(iodata, pattern, replacement) { - erl_replace(iodata, pattern, replacement, All) -} - -pub external fn is_equal(Iodata, Iodata) -> Bool = "string" "equal" - -pub external fn is_empty(Iodata) -> Bool = "string" "is_empty" |