#sms #unicode #gsm #splitter #split-sms

sms_splitter

An SMS message splitter and part calculator with support for GSM and Unicode

3 releases

0.1.9 Nov 3, 2022
0.1.8 Nov 3, 2022
0.1.7 Oct 15, 2022

#482 in Text processing

Download history 1/week @ 2024-02-14 9/week @ 2024-02-21 2/week @ 2024-02-28 15/week @ 2024-03-06 129/week @ 2024-03-13

156 downloads per month

MIT license

37KB
781 lines

SMS Splitter

Documentation Version License

An SMS message splitter with support for both GSM and Unicode written in Rust. GSM support is limited to GSM 03.38 with the extension table (see the Wikipedia article)

Installation

cargo add sms_splitter

Usage

use sms_splitter::SplitSms;

fn main(){
    let info = SplitSms::default().split("Hello World!".to_string());
    println!("{:#?}", info);
}
SplitSmsResult {
    character_set: "GSM",
    parts: [
        SplitterPart {
            content: "Hello World!",
            length: 12,
            bytes: 12,
        },
    ],
    bytes: 12,
    length: 12,
    remaining_in_part: 148,
}

Credits

A lot of the code in this package was based on Codesleuth split-sms.

No runtime deps