gsm7

package
v1.2.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2018 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode added in v1.1.23

func Decode(gsm7 []byte) (str string)

Decode decodes the passed in bytes as GSM7 encodings. Each byte is expected to be a single 7 bit GSM7 character.

func Encode added in v1.1.23

func Encode(str string) []byte

Encode encodes the given UTF-8 text into a string composed of GSM7 bytes. Each 7 bit GSM7 char is encoded in a single byte

func IsValid added in v1.1.23

func IsValid(text string) bool

IsValid returns whether the passed in string is made up of entirely GSM7 characters

func ReplaceSubstitutions added in v1.1.23

func ReplaceSubstitutions(text string) string

ReplaceSubstitutions replaces all the non-GSM7 characters that have valid substitutions with their GSM7 versions

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL