stringutils2

package
v0.3.10-0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(a, b SSortedStrings) bool

func Equals

func Equals(a, b SSortedStrings) bool

func EscapeEchoString

func EscapeEchoString(str string) (string, error)

func EscapeString

func EscapeString(str string, pairs [][]string) string

func FilterEmpty

func FilterEmpty(input []string) []string

func GenerateRoleName

func GenerateRoleName(roleName string) string

Qcloud: 1-128个英文字母、数字和+=,.@_- Aws: 请使用字母数字和‘+=,.@-_’字符。 最长 64 个字符 Common: 1-64个字符, 数字字母或 +=,.@-_

func GetCharTypeCount

func GetCharTypeCount(str string) int

func GetMD5Hash

func GetMD5Hash(text string) string

func HasPrefixIgnoreCase

func HasPrefixIgnoreCase(str string, prefix string) bool

func HasSuffixIgnoreCase

func HasSuffixIgnoreCase(str string, suffix string) bool

func IsPrintableAscii

func IsPrintableAscii(b byte) bool

func IsPrintableAsciiString

func IsPrintableAsciiString(str string) bool

func IsUtf8

func IsUtf8(str string) bool

func ParseNamePattern2

func ParseNamePattern2(name string) (string, string, int, int)

name## name##9#

func PrettyFloat

func PrettyFloat(f float64, precision int) string

func RemoveUtf8Strings

func RemoveUtf8Strings(idOrNames []string) []string

func Split

func Split(a, b SSortedStrings) (aNoB SSortedStrings, aAndB SSortedStrings, bNoA SSortedStrings)

func SplitByQuotation

func SplitByQuotation(line string) ([]string, error)

func UTF82GB18030

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

Types

type SSortedStrings

type SSortedStrings []string

func Append

func Append(ss SSortedStrings, ele ...string) SSortedStrings

func Intersect

func Intersect(a, b SSortedStrings) SSortedStrings

func Merge

func Merge(a, b SSortedStrings) SSortedStrings

func NewSortedStrings

func NewSortedStrings(strs []string) SSortedStrings

func (SSortedStrings) Append

func (ss SSortedStrings) Append(ele ...string) SSortedStrings

func (SSortedStrings) Contains

func (ss SSortedStrings) Contains(needle string) bool

func (SSortedStrings) ContainsAll

func (ss SSortedStrings) ContainsAll(needles ...string) bool

func (SSortedStrings) ContainsAny

func (ss SSortedStrings) ContainsAny(needles ...string) bool

func (SSortedStrings) Index

func (ss SSortedStrings) Index(needle string) (int, bool)

func (SSortedStrings) Remove

func (ss SSortedStrings) Remove(ele ...string) SSortedStrings

Jump to

Keyboard shortcuts

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