diff options
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" |