GSM (gsm v0.1.2)

View Source

Documentation for GSM.

Summary

Functions

Checks if the given character is a 2-byte GSM-7 character

Returns the number of characters required to send the given text via SMS

Convert the given binary from UTF-8 to GSM-7

Convert the given binary from GSM-7 to UTF-8

Checks if the given UTF-8 string can be converted to GSM-7

Functions

double?(arg1)

@spec double?(binary()) :: boolean()

Checks if the given character is a 2-byte GSM-7 character

size(text, arg2 \\ :gsm)

@spec size(binary(), atom()) :: integer()

Returns the number of characters required to send the given text via SMS

to_gsm(unicode)

@spec to_gsm(binary()) :: binary()

Convert the given binary from UTF-8 to GSM-7

to_utf8(gsm)

@spec to_utf8(binary()) :: binary()

Convert the given binary from GSM-7 to UTF-8

valid?(unicode)

@spec valid?(binary()) :: boolean()

Checks if the given UTF-8 string can be converted to GSM-7

version()

@spec version() :: binary()