txtcode

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeUTF16BE

func EncodeUTF16BE(s string) []byte

EncodeUTF16BE 将字符串编码成utf16be的格式,用于cdma短信发送

func GbkToUtf8

func GbkToUtf8(s []byte) ([]byte, error)

GbkToUtf8 gbk编码转utf8

func SMSUnicode

func SMSUnicode(s string) []string

SMSUnicode 编码短信

func SplitStringWithLen

func SplitStringWithLen(s string, l int) []string

SplitStringWithLen 按指定长度分割字符串

s-原始字符串
l-切割长度

func String2Unicode

func String2Unicode(s string) string

String2Unicode 字符串转4位unicode编码

func Utf8ToGbk

func Utf8ToGbk(s []byte) ([]byte, error)

Utf8ToGbk utf8编码转gbk

Types

This section is empty.

Jump to

Keyboard shortcuts

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