stringx

package
v0.0.0-...-8845ca5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllControl

func AllControl(s string) bool

func AllDigit

func AllDigit(s string) bool

func AllGraphic

func AllGraphic(s string) bool

func AllLetter

func AllLetter(s string) bool

func AllLetterOrDigit

func AllLetterOrDigit(s string) bool

func AllLower

func AllLower(s string) bool

func AllMark

func AllMark(s string) bool

func AllPrint

func AllPrint(s string) bool

func AllPunct

func AllPunct(s string) bool

func AllSpace

func AllSpace(s string) bool

func AllSymbol

func AllSymbol(s string) bool

func AllTitle

func AllTitle(s string) bool

func AllUpper

func AllUpper(s string) bool

func Camel2Snake

func Camel2Snake(s string) string

Camel2Snake 驼峰转蛇形

func HasControl

func HasControl(s string) bool

func HasDigit

func HasDigit(s string) bool

func HasGraphic

func HasGraphic(s string) bool

func HasLetter

func HasLetter(s string) bool

func HasLetterOrDigit

func HasLetterOrDigit(s string) bool

func HasLower

func HasLower(s string) bool

func HasMark

func HasMark(s string) bool

func HasPrint

func HasPrint(s string) bool

func HasPunct

func HasPunct(s string) bool

func HasSpace

func HasSpace(s string) bool

func HasSymbol

func HasSymbol(s string) bool

func HasTitle

func HasTitle(s string) bool

func HasUpper

func HasUpper(s string) bool

func RandLetterNumbers

func RandLetterNumbers(n int) string

func RandLetters

func RandLetters(n int) string

func RandLowerLetterNumbers

func RandLowerLetterNumbers(n int) string

func RandLowerLetters

func RandLowerLetters(n int) string

func RandNumbers

func RandNumbers(n int) string

func RandStringWithSeed

func RandStringWithSeed(n int, seed []rune) string

func RandUpperLetterNumbers

func RandUpperLetterNumbers(n int) string

func RandUpperLetters

func RandUpperLetters(n int) string

func Shorten

func Shorten(s string, max int) string

Shorten 缩短字符串

func Snake2Camel

func Snake2Camel(s string) string

Snake2Camel 蛇形转驼峰

func SplitLen

func SplitLen(s string, max int) []string

SplitLen 按长度分割字符串

func ToBytes

func ToBytes(s string) []byte

func ToString

func ToString(b []byte) string

func Utf16Len

func Utf16Len[M string | []rune | []byte](str M) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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