split_option() = undefined | trim_all
binary_join/2 | Joins a list of binaries with separator into a single binary. |
chomp/1 | Removes all trailing \n and \r characters from binary. |
numeric_prefix/1 | Returns new binary DigitsOnlyBinary which consists of digits [0-9] wich are at the beginning in the given binary Binary. |
random_binary_from_chars/2 | Generates and returns a binary of size Length which consists of the given characters Chars. |
random_latin_binary/2 | Returns a random binary of size Length consisting of latins [a-zA-Z] and digits [0-9]. |
repeat/2 | Returns binary Binary2 consisting of Binary1 repeated N times. |
replace/3 | Replaces chars Chars with other chars OtherChars in binary Binary1 and returns another binary Binary2. |
replace_chars/3 | Replaces chars inluded in list ListOfCharsToReplace with other chars OtherChars in binary Binary1 and returns another binary Binary2. |
reverse/1 | Returns a binary in reverse byte order. |
reverse_utf8/1 | Returns a binary in reverse character order. |
split/2 | Splits binary Binary with splitter Splitter into a list of binaries. |
split/3 | Splits binary Binary with splitter Splitter into a list of binaries. |
strip_both/2 | Removes leading and trailing Chars from binary Bin and returns new binary. |
strip_left/2 | Removes leading Chars from binary Bin and returns new binary. |
strip_right/2 | Removes trailing Chars from binary Bin and returns new binary. |
binary_join(ListOfBinaries::[binary()], Separator::binary()) -> binary()
Joins a list of binaries with separator into a single binary. Returns binary.
chomp(Bin::binary()) -> binary()
Removes all trailing \n and \r characters from binary.
numeric_prefix(Binary::binary()) -> DigitsOnlyOrEmptyBinary::binary()
Returns new binary DigitsOnlyBinary which consists of digits [0-9] wich are at the beginning in the given binary Binary.
If Binary does not begin with digit, this function returns empty binary (<<>>)
.
random_binary_from_chars(Length::pos_integer(), Chars::binary()) -> binary()
Generates and returns a binary of size Length which consists of the given characters Chars.
random_latin_binary(Length::pos_integer(), CaseFlag::lower | upper | any) -> binary()
Returns a random binary of size Length consisting of latins [a-zA-Z] and digits [0-9]. The second argument CaseFlag corresponds to a letter case, an atom 'lower', 'upper' or 'any'.
repeat(Binary1::binary(), N::pos_integer()) -> Binary2::binary()
Returns binary Binary2 consisting of Binary1 repeated N times.
replace(Binary1::binary(), Chars::binary(), OtherChars::binary()) -> Binary2::binary()
Replaces chars Chars with other chars OtherChars in binary Binary1 and returns another binary Binary2. Works as binary:replace/3 but more permormant and can be used in simple cases.
replace_chars(Binary1::binary(), ListOfCharsToReplace::[binary()], OtherChars::binary()) -> Binary2::binary()
Replaces chars inluded in list ListOfCharsToReplace with other chars OtherChars in binary Binary1 and returns another binary Binary2.
reverse(B::binary()) -> binary()
Returns a binary in reverse byte order.
reverse_utf8(UTF8_Binary1::binary()) -> UTF8_Binary2::binary()
Returns a binary in reverse character order. Intended to work with UTF-8 binary strings.
split(Binary::binary(), Splitter::binary()) -> ListOfBinaries::[binary()]
Splits binary Binary with splitter Splitter into a list of binaries. Works as binary:split/2 but is more performant in simple cases.
split(Binary::binary(), Splitter::binary(), SplitOption::split_option()) -> ListOfBinaries::[binary()]
Splits binary Binary with splitter Splitter into a list of binaries.
Works as uef_bin:split/2 but removes all epmty (<<>>)
chunks.
It can be used in simple cases instead of binary:split/3 for the reason that it's more performant.
strip_both(Bin::binary(), Chars::binary() | integer()) -> binary()
Removes leading and trailing Chars from binary Bin and returns new binary.
strip_left(Bin::binary(), Chars::binary() | integer()) -> binary()
Removes leading Chars from binary Bin and returns new binary.
strip_right(Bin::binary(), Chars::binary() | integer()) -> binary()
Removes trailing Chars from binary Bin and returns new binary.
Generated by EDoc