View Source binstr (gen_smtp v1.2.0)

Some functions for working with binary strings.

Link to this section Summary

Link to this section Functions

Specs

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

Specs

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

Specs

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

Specs

reverse(Bin :: binary()) -> binary().
Link to this function

reverse_str_to_bin(String)

View Source

Specs

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

Specs

split(Bin :: binary(), Separator :: binary()) -> [binary()].
Link to this function

split(Bin, Separator, SplitCount)

View Source

Specs

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

Specs

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

Specs

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

Specs

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

Specs

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

Specs

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

Specs

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

Specs

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

Specs

substr(Bin :: binary(), Start :: pos_integer() | neg_integer()) -> binary().
Link to this function

substr(Bin, Start, Length)

View Source

Specs

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

Specs

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

Specs

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