sms_splitter

Crates.iosms_splitter
lib.rssms_splitter
version0.1.9
sourcesrc
created_at2022-10-13 14:09:24.174985
updated_at2022-11-03 16:08:38.593702
descriptionAn SMS message splitter and part calculator with support for GSM and Unicode
homepage
repositoryhttps://github.com/Aitthi/sms-splitter
max_upload_size
id687206
size38,399
Aitthi Arsa (Aitthi)

documentation

README

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.

Commit count: 22

cargo fmt