message_segment_calculator library
The SMS Segment Calculator package.
This package provides tools to calculate the number of SMS segments required for messages, supporting both GSM-7 and UCS-2 encoding standards.
Classes
- SegmentedMessage
- ============================================================================= CLASS: SegmentedMessage PURPOSE: Manages the segmentation and encoding of SMS messages based on specified encoding formats. It supports encoding into GSM-7 and UCS-2 character sets and can handle different line break styles.
Enums
- LineBreakStyle
- ============================================================================= ENUM: LineBreakStyle PURPOSE: Defines different styles for line breaks in text messages.
- SmsEncoding
- ============================================================================= ENUM: SmsEncoding PURPOSE: Specifies the encoding types that can be used for SMS messages.
- ValidEncodingValues
- Valid encoding values for SMS messages.
Constants
-
smartEncodingMap
→ const Map<
String, String> -
unicodeToGsm
→ const Map<
int, List< int> > - A mapping of Unicode characters to their GSM-7 equivalents.