Module binstr

Some functions for working with binary strings.

Description

Some functions for working with binary strings.

Function Index

all/2
chomp/1
join/2
reverse/1
reverse_str_to_bin/1
split/2
split/3
strchr/2
strip/1
strip/2
strip/3
strpos/2
strrchr/2
strrpos/2
substr/2
substr/3
to_lower/1
to_upper/1

Function Details

all/2

all(Fun::function(), Binary::binary()) -> boolean()

chomp/1

chomp(Bin::binary()) -> binary()

join/2

join(Binaries::[binary() | list()], Glue::binary() | list()) -> binary()

reverse/1

reverse(Bin::binary()) -> binary()

reverse_str_to_bin/1

reverse_str_to_bin(String::string()) -> binary()

split/2

split(Bin::binary(), Separator::binary()) -> [binary()]

split/3

split(Bin::binary(), Separator::binary(), SplitCount::pos_integer()) -> [binary()]

strchr/2

strchr(Bin::binary(), C::char()) -> non_neg_integer()

strip/1

strip(Bin::binary()) -> binary()

strip/2

strip(Bin::binary(), Dir::left | right | both) -> binary()

strip/3

strip(Bin::binary(), Dir::left | right | both, C::non_neg_integer()) -> binary()

strpos/2

strpos(Bin::binary(), C::binary() | list()) -> non_neg_integer()

strrchr/2

strrchr(Bin::binary(), C::char()) -> non_neg_integer()

strrpos/2

strrpos(Bin::binary(), C::binary() | list()) -> non_neg_integer()

substr/2

substr(Bin::binary(), Start::pos_integer() | neg_integer()) -> binary()

substr/3

substr(Bin::binary(), Start::pos_integer() | neg_integer(), Length::pos_integer()) -> binary()

to_lower/1

to_lower(Bin::binary()) -> binary()

to_upper/1

to_upper(Bin::binary()) -> binary()


Generated by EDoc