Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Segments ¶
Segments calculates the number of SMS segments it will take to send the passed in text. This automatically figures out if the text is GSM7 or UCS2 and then calculates how many segments it will break up into.
UCS2 messages can be 70 characters per segnment max, if more, each segment is 67 GSM7 messages can be 160 characters per segmend max, if more, each segment is 153
TODO: likely some optimizations could be made here by comparing ranges instead of map lookups
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.