Static
Readonly
ALPHABET_Static
Readonly
EXTENDED_Static
Readonly
limitStatic
Readonly
limitStatic
Readonly
limitStatic
asciiConverts an ASCII string to a Uint8Array.
The ASCII string to convert
A Uint8Array representing the ASCII string
Static
charReturns the character represented by the specified Unicode code point.
The Unicode code point
A string containing the character represented by the code point
Static
decode16Decodes a 16-bit encoded string into a human-readable text.
The 16-bit encoded hexadecimal string
The decoded text
Static
decode7Decodes a 7-bit encoded string into a human-readable text.
The 7-bit encoded hexadecimal string
Optional
inLen: numberThe length of the input data in septets
Optional
alignBits: numberThe number of bits for alignment
The decoded text
Static
decode8Decodes an 8-bit encoded string into a human-readable text.
The 8-bit encoded hexadecimal string
The decoded text
Static
encode16Encodes a text string into 16-bit hexadecimal PDU format.
The text to encode
An object containing the length of the encoded text in septets and the result as a hexadecimal string
Static
encode7Encodes a text string into 7-bit hexadecimal PDU format.
The text to encode
The number of bits for alignment, if needed
An object containing the length of the encoded text in septets and the result as a hexadecimal string
Static
encode8Encodes a text string into 8-bit hexadecimal PDU format.
The text to encode
An object containing the length of the encoded text and the result as a hexadecimal string
Static
getConverts the first two characters of a hexadecimal string to a number.
The hexadecimal string to convert
The number represented by the first two characters of the hexadecimal string
Static
hexConverts a hex string to a Uint8Array.
The hex string to convert
A Uint8Array representing the hex string
Static
orderReturns the Unicode code point of the first character of the input string.
A single character string
The Unicode code point of the character
Static
toConverts a number to a hexadecimal string with optional zero padding.
The number to convert
The minimum length of the resulting string, padded with zeros if necessary
The number as a hexadecimal string
Static
ucfirstCapitalizes the first character of the input string.
The string to capitalize
The input string with its first character capitalized
A utility class providing static methods for encoding and decoding SMS messages.
This class contains methods for converting text into various encoding formats used in SMS, such as GSM 7-bit, 8-bit, and UCS-2 (16-bit). It also includes utility methods for handling characters and converting values to hexadecimal strings.