Skip to content

GSM character strings encoding/decoding for Erlang

License

Notifications You must be signed in to change notification settings

silviucpp/gsm_coder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

The application is compatible with both rebar or rebar3. Add gsm_coder as a rebar 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 ct from project root.

About

GSM character strings encoding/decoding for Erlang

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • C 75.0%
  • C++ 9.7%
  • Erlang 8.9%
  • Makefile 6.3%
  • Python 0.1%