alma / elm-sms-length / SmsLength

SmsLength

Utilities arround SMS messages and their length with regards to the necessary encoding.

How many chars are used, how much chars do I have by SMS?

charsUsed : String -> Basics.Int

Tell the number of chars in a string

A SMS is allowed for 140 bytes, multipart SMS needs a 7 bytes header to be linked to each other's.

charsInSms : String -> Basics.Int

Tell the number of chars per SMS with regards to the mandatory message encoding

A SMS is allowed for 140 bytes, multipart SMS needs a 7 bytes header to be linked to each other's.

How many SMS do I need?

numberOfSms : String -> Basics.Int

Tell the number of SMS messages mandatory with regards to the current message string and encoding