Static ReadonlyALPHABET_Static ReadonlyEXTENDED_Static ReadonlylimitStatic ReadonlylimitStatic ReadonlylimitStaticasciiConverts an ASCII string to a Uint8Array.
The ASCII string to convert
A Uint8Array representing the ASCII string
StaticcharReturns the character represented by the specified Unicode code point.
The Unicode code point
A string containing the character represented by the code point
Staticdecode16Decodes a 16-bit encoded string into a human-readable text.
The 16-bit encoded hexadecimal string
The decoded text
Staticdecode7Decodes a 7-bit encoded string into a human-readable text.
The 7-bit encoded hexadecimal string
OptionalinLen: numberThe length of the input data in septets
OptionalalignBits: numberThe number of bits for alignment
The decoded text
Staticdecode8Decodes an 8-bit encoded string into a human-readable text.
The 8-bit encoded hexadecimal string
The decoded text
Staticencode16Encodes 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
Staticencode7Encodes 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
Staticencode8Encodes 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
StaticgetConverts 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
StatichexConverts a hex string to a Uint8Array.
The hex string to convert
A Uint8Array representing the hex string
StaticorderReturns the Unicode code point of the first character of the input string.
A single character string
The Unicode code point of the character
StatictoConverts 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
StaticucfirstCapitalizes 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.