Module tql_bin

Function Index

join/2Joins a list of binaries with a separator.
reverse/1Reverses the order of characters in a binary.
to_hex/1Encodes a binary in hexadecimal.
trim/1Trims a binary of all whitespace.
trim_left/1Trims a binary of all leading whitespace.
trim_right/1Trims a binary of all ending whitespace.

Function Details

join/2

join(Parts, Separator) -> binary()

Joins a list of binaries with a separator.

     V = tql_bin:join([<<"a">>, <<"b">>, <<"c">>], <<", ">>),
     V = <<"a, b, c">>.

reverse/1

reverse(Binary::binary()) -> binary()

Reverses the order of characters in a binary.

     V = tql_bin:reverse(<<"reverse">>),
     V = <<"esrever">>.

to_hex/1

to_hex(Bin::binary()) -> binary()

Encodes a binary in hexadecimal.

     R = tql_bin:to_hex(<<"foobar">>),
     R = <<"666f6f626172">>.

trim/1

trim(Binary::binary()) -> binary()

Trims a binary of all whitespace. Trimmed Characters: \s, \t, \n, \r

     V = tql_bin:trim(<<" test ">>),
     V = <<"test">>.

trim_left/1

trim_left(Binary::binary()) -> binary()

Trims a binary of all leading whitespace. Trimmed Characters: \s, \t, \n, \r

     V = tql_bin:trim_left(<<" test ">>),
     V = <<"test ">>.

trim_right/1

trim_right(Binary::binary()) -> binary()

Trims a binary of all ending whitespace. Trimmed Characters: \s, \t, \n, \r

     V = tql_bin:trim_right(<<" test ">>),
     V = <<" test">>.


Generated by EDoc