Skip to content

GSM character strings encoding/decoding for Erlang

License

Notifications You must be signed in to change notification settings

silviucpp/gsm_coder

This branch is 10 commits ahead of RubberCthulhu/gsm_coder:master.

Repository files navigation

Build Status GitHub Hex.pm

A GSM 7/8 character strings encoder/decoder for Erlang based on the implementation from Android Open Source Project.

Getting started:

Integration

Add gsm_coder as a rebar3 dependency to your project:

{deps, [
  {gsm_coder, ".*", {git, "https://github.com/silviucpp/gsm_coder.git", "master"}},
}.
API
application:start(gsm_coder).
ok

gsm_coder:utf8_check_gsm7(<<"abcdef">>).
true

gsm_coder:sms_text_parts_number(<<"abcdef">>).
1

gsm_coder:utf8_to_gsm7(<<"abcdef">>).
<<97,241,152,92,54,3>>

gsm_coder:utf8_from_gsm7(<<97,241,152,92,54,3>>).
<<"abcdef">>

gsm_coder:utf8_to_gsm8(<<"abcdef">>).            
<<"abcdef">>

gsm_coder:utf8_from_gsm8(<<"abcdef">>).
<<"abcdef">>

Tests

In order to run the tests just use rebar3 eunit from project root.

About

GSM character strings encoding/decoding for Erlang

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 76.8%
  • C++ 10.0%
  • Erlang 6.7%
  • Makefile 6.5%