stringUtil

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MAX_STRINGLEN = 1024
View Source
var MAX_STRSIZE = 2048

Functions

func BoomSpit

func BoomSpit(src []byte) (data []byte, strtype string)

boom split EF BB BF UTF-8 FE FF UTF-16 (big-endian) FF FE UTF-16 (little-endian) 00 00 FE FF UTF-32 (big-endian) FF FE 00 00 UTF-32 (little-endian)

func ConverUtf16beToStr

func ConverUtf16beToStr(src string) string

func ConverUtf16leToStr

func ConverUtf16leToStr(src string) string

func ConvertToString

func ConvertToString(src string, srcCode string, tagCode string) string

func GetContentStringSet

func GetContentStringSet(content string) []string

string 字符串提取

func InterfaceToJson added in v1.1.6

func InterfaceToJson(data interface{}) string
func Str_Link(str ...string) string

字符串拼接

func Str_LinkBySpecialChar

func Str_LinkBySpecialChar(joinstr rune, str ...string) string

func ValidUTF8

func ValidUTF8(buf []byte) bool

Types

type StringSet

type StringSet struct {
	// filetype string //可能有普通文件 与压缩文件如zip文件以及office文件
	Content []string
}

Jump to

Keyboard shortcuts

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