strongStringGo

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const (
	COMMAND_PREFIX1 = "!"
	COMMAND_PREFIX2 = "/"
	SUDO_PREFIX1    = ">"
	FLAG_PREFIX     = "--"
)

the prefix values for commands.

View Source
const (
	JA_Flag       = "〰\u200d;〰"
	JA_Str        = "❞\u200d;" // start character (") for string in japanese.
	JA_Equality   = "=\u200d;" // equal character (=) in japanese.
	JA_Ddot       = ":\u200d;" // ddot character (:) in japanese.
	JA_Cama       = "、\u200d;" // cama character (,) in japanese.
	JA_RealStr    = "\uff4e"   // the real str
	JA_BrOpen     = "「\u200d;" // the real str
	JA_BrClose    = "」\u200d;" // the real str
	BACK_Str      = `\"`
	BACK_Flag     = `\--`
	BACK_Equality = `\=`
	BACK_Ddot     = `\:`
	BACK_Cama     = `\,`
	BACK_BrOpen   = `\[`
	BACK_BrClose  = `\]`
)
View Source
const (
	BaseIndex      = 0  // number 0
	BaseOneIndex   = 1  // number 1
	BaseTwoIndex   = 2  // number 2
	BaseThreeIndex = 3  // number 2
	Base4Bit       = 4  // number 8
	Base8Bit       = 8  // number 8
	Base16Bit      = 16 // number 16
	Base32Bit      = 32 // number 32
	Base64Bit      = 64 // number 64
	BaseTimeOut    = 40 // 40 seconds
	BaseTen        = 10 // 10 seconds
)

the base constant values.

View Source
const (
	BaseIndexStr    = "0" // number 0
	BaseOneIndexStr = "1" // number 1
	DotStr          = "." // dot : .
	LineStr         = "-" // line : -
	EMPTY           = ""  //an empty string.
	UNDER           = "_" // an underscope : _
	STR_SIGN        = `"` // the string sign : "
	CHAR_STR        = '"' // the string sign : '"'
)

additional constants which are not actually used in this package, but may be useful in another packages.

View Source
const (
	APP_PORT        = "PORT"
	GET_SLASH       = "/"
	HTTP_ADDRESS    = ":"
	FORMAT_VALUE    = "%v"
	SPACE_VALUE     = " "
	LineEscape      = "\n"
	R_ESCAPE        = "\r"
	SEMICOLON       = ";"
	CAMA            = ","
	ParaOpen        = "("
	ParaClose       = ")"
	NullStr         = "null"
	DoubleQ         = "\""
	SingleQ         = "'"
	DoubleQJ        = "”"
	BracketOpen     = "["
	Bracketclose    = "]"
	Star            = "*"
	BackSlash       = "\\"
	DoubleBackSlash = "\\\\"
	Point           = "."
	AutoStr         = "auto"
	AtSign          = "@"
	EqualStr        = "="
	DdotSign        = ":"
	Yes             = "Yes"
	No              = "No"
	TrueStr         = "True"
	FalseStr        = "False"
	OnStr           = "On"
	OffStr          = "Off"
	LowerYes        = "yes"
	LowerNo         = "no"
	LowerTrueStr    = "true"
	LowerFalseStr   = "false"
	LowerOnStr      = "on"
	LowerOffStr     = "off"
	OrRegexp        = "|" // the or string sign: "|"
)

router config values

View Source
const (
	LineChar         = '-' // line : '-'
	EqualChar        = '=' // equal: '='
	SpaceChar        = ' ' // space: ' '
	DPointChar       = ':' // double point: ':'
	BracketOpenChar  = '[' // bracket open: '['
	BracketcloseChar = ']' // bracket close: ']'
	CamaChar         = ',' // cama: ','
)
View Source
const (
	JA_FLAG       = "〰〰"
	JA_STR        = "❞" // start character (") for string in japanese.
	JA_EQUALITY   = "=" // equal character (=) for string in japanese.
	JA_DDOT       = ":" // equal character (=) for string in japanese.
	BACK_STR      = "\\\""
	BACK_FLAG     = "\\--"
	BACK_EQUALITY = "\\="
	BACK_DDOT     = "\\:"
)
View Source
const (
	LIST_INDEX_NOTFOUND = -1
)

Variables

This section is empty.

Functions

func AreEqual added in v1.0.4

func AreEqual(s1, s2 *string) bool

AreEqual will check if two string ptr are equal to each other or not.

func FixSplit

func FixSplit(myStrings []string) []string

FixSplit will fix the bullshit bug in the Split function (which is not ignoring the spaces between strings).

func FixSplitWhite added in v1.0.4

func FixSplitWhite(myStrings []string) []string

FixSplit will fix the bullshit bug in the Split function (which is not ignoring the spaces between strings).

func IsAllLower added in v1.0.12

func IsAllLower(value string) bool

func IsAllNumber added in v1.0.4

func IsAllNumber(str string) bool

func IsAllNumbers added in v1.0.4

func IsAllNumbers(str ...string) bool

func IsAllUpper added in v1.0.12

func IsAllUpper(value string) bool

func IsEmpty

func IsEmpty(s *string) bool

IsEmpty function will check if the passed-by string value is empty or not.

func IsMixedCase added in v1.0.12

func IsMixedCase(value string) bool

func IsRuneNumber added in v1.0.4

func IsRuneNumber(r rune) bool

func ParseConfig added in v1.0.7

func ParseConfig(value interface{}, filename string) error

func Split

func Split(s string, separator ...string) []string

func SplitN

func SplitN(s string, n int, separator ...string) []string

func SplitSlice

func SplitSlice(s string, separator []string) []string

func SplitSliceN

func SplitSliceN(s string, separator []string, n int) []string

func SplitSliceNWhite added in v1.0.4

func SplitSliceNWhite(s string, separator []string, n int) []string

func SplitWhite added in v1.0.4

func SplitWhite(s string, separator ...string) []string

SplitWhite splits the string with the given separator and will remove the white spaces slices from the results

func ToArray added in v1.0.4

func ToArray(strs ...string) []string

func ToBase10 added in v1.0.10

func ToBase10(value int64) string

func ToBase16 added in v1.0.10

func ToBase16(value int64) string

func ToBase18 added in v1.0.10

func ToBase18(value int64) string

func ToBase20 added in v1.0.10

func ToBase20(value int64) string

func ToBase28 added in v1.0.10

func ToBase28(value int64) string

func ToBase30 added in v1.0.10

func ToBase30(value int64) string

func ToBase32 added in v1.0.10

func ToBase32(value int64) string

func ToBool added in v1.0.5

func ToBool(str string) bool

func ToInt16 added in v1.0.10

func ToInt16(value string) int16

func ToInt32 added in v1.0.10

func ToInt32(value string) int32

func ToInt64 added in v1.0.10

func ToInt64(value string) int64

func ToInt8 added in v1.0.10

func ToInt8(value string) int8

func ToStrSlice

func ToStrSlice(qs []QString) []string

func ToValidIntegerString added in v1.0.10

func ToValidIntegerString(value string) string

func YesOrNo

func YesOrNo(v bool) string

YesOrNo returns yes if v is true, otherwise no.

Types

type BasicObject added in v1.0.13

type BasicObject interface {
	IsEmpty() bool
	Length() int
}

type BitsBlocks added in v1.0.12

type BitsBlocks interface {
	GetBitsSize() int
}

type BytesObject added in v1.0.12

type BytesObject interface {
	ToBytes() ([]byte, error)
	Length() int
}

type ExpiringValue added in v1.0.15

type ExpiringValue[T any] struct {
	// contains filtered or unexported fields
}

func NewEValue added in v1.0.15

func NewEValue[T any](value T) *ExpiringValue[T]

func (*ExpiringValue[T]) GetTime added in v1.0.15

func (e *ExpiringValue[T]) GetTime() time.Time

func (*ExpiringValue[T]) GetValue added in v1.0.15

func (e *ExpiringValue[T]) GetValue() T

func (*ExpiringValue[T]) IsExpired added in v1.0.15

func (e *ExpiringValue[T]) IsExpired(duration time.Duration) bool

func (*ExpiringValue[T]) Reset added in v1.0.15

func (e *ExpiringValue[T]) Reset()

func (*ExpiringValue[T]) SetTime added in v1.0.15

func (e *ExpiringValue[T]) SetTime(t time.Time)

func (*ExpiringValue[T]) SetValue added in v1.0.15

func (e *ExpiringValue[T]) SetValue(value T)

type GenericList added in v1.0.13

type GenericList[T comparable] interface {
	BasicObject
	Validator

	Find(element T) int
	Count(element T) int
	Counts(element ...T) int
	Contains(element T) bool
	ContainsAll(elements ...T) bool
	ContainsOne(elements ...T) bool
	Change(index int, element T)
	Exists(element T) bool
	Append(elements ...T)
	Add(elements ...T)
	RemoveAt(index int)
	RemoveOnce(element T)
	RemoveAll(element ...T)
	Remove(element T)
	AsArray() []T
	ToArray() []T
	Clear()
	Get(index int) T
}

func GetEmptyList added in v1.0.13

func GetEmptyList[T comparable]() GenericList[T]

func GetListFromArray added in v1.0.13

func GetListFromArray[T comparable](array []T) GenericList[T]

type IntegerRepresent added in v1.0.12

type IntegerRepresent interface {
	ToInt64() int64
	ToUInt64() uint64
	ToInt32() int32
	ToUInt32() uint32
}

type ListW added in v1.0.13

type ListW[T comparable] struct {
	// contains filtered or unexported fields
}

func (*ListW[T]) Add added in v1.0.13

func (l *ListW[T]) Add(elements ...T)

func (*ListW[T]) Append added in v1.0.13

func (l *ListW[T]) Append(elements ...T)

func (*ListW[T]) AsArray added in v1.0.13

func (l *ListW[T]) AsArray() []T

AsArray returns a copy of the value of this list as an array. please do notice that if you make changes to the underlying values of that array, change won't be applied to the list.

func (*ListW[T]) Change added in v1.0.13

func (l *ListW[T]) Change(index int, element T)

func (*ListW[T]) Clear added in v1.0.13

func (l *ListW[T]) Clear()

Clear method clears the whole list.

func (*ListW[T]) Contains added in v1.0.13

func (l *ListW[T]) Contains(element T) bool

func (*ListW[T]) ContainsAll added in v1.0.13

func (l *ListW[T]) ContainsAll(elements ...T) bool

func (*ListW[T]) ContainsOne added in v1.0.13

func (l *ListW[T]) ContainsOne(elements ...T) bool

func (*ListW[T]) Count added in v1.0.13

func (l *ListW[T]) Count(element T) int

func (*ListW[T]) Counts added in v1.0.13

func (l *ListW[T]) Counts(element ...T) int

func (*ListW[T]) Exists added in v1.0.13

func (l *ListW[T]) Exists(element T) bool

func (*ListW[T]) Find added in v1.0.13

func (l *ListW[T]) Find(element T) int

func (*ListW[T]) Get added in v1.0.13

func (l *ListW[T]) Get(index int) T

func (*ListW[T]) IsEmpty added in v1.0.13

func (l *ListW[T]) IsEmpty() bool

func (*ListW[T]) IsThreadSafe added in v1.0.13

func (l *ListW[T]) IsThreadSafe() bool

func (*ListW[T]) IsValid added in v1.0.13

func (l *ListW[T]) IsValid() bool

func (*ListW[T]) Length added in v1.0.13

func (l *ListW[T]) Length() int

func (*ListW[T]) Remove added in v1.0.13

func (l *ListW[T]) Remove(element T)

func (*ListW[T]) RemoveAll added in v1.0.13

func (l *ListW[T]) RemoveAll(element ...T)

func (*ListW[T]) RemoveAt added in v1.0.13

func (l *ListW[T]) RemoveAt(index int)

func (*ListW[T]) RemoveOnce added in v1.0.13

func (l *ListW[T]) RemoveOnce(element T)

func (*ListW[T]) ToArray added in v1.0.14

func (l *ListW[T]) ToArray() []T

ToArray is equivalent to AsArray method in any way. it returns a copy of the value of this list as an array. please do notice that if you make changes to the underlying values of that array, change won't be applied to the list.

type QString added in v1.0.4

type QString interface {
	BasicObject

	GetValue() string
	GetIndexV(int) rune
	IsEqual(QString) bool
	Split(...QString) []QString
	SplitN(int, ...QString) []QString
	SplitFirst(qs ...QString) []QString
	SplitStr(...string) []QString
	SplitStrN(int, ...string) []QString
	SplitStrFirst(...string) []QString
	Contains(...QString) bool
	ContainsStr(...string) bool
	ContainsAll(...QString) bool
	ContainsStrAll(...string) bool
	TrimPrefix(...QString) QString
	TrimPrefixStr(...string) QString
	TrimSuffix(...QString) QString
	TrimSuffixStr(...string) QString
	Trim(qs ...QString) QString
	TrimStr(...string) QString
	Replace(qs, newS QString) QString
	ReplaceStr(qs, newS string) QString
	LockSpecial()
	UnlockSpecial()
	ToBool() bool
}

func Qsb

func Qsb(b []byte) QString

QSb will generate a new QString with the specified non-encoded bytes value.

func Qss

func Qss(s string) QString

Qss will generate a new QString with the specified non-encoded string value.

func ToQSlice

func ToQSlice(strs []string) []QString

type SafeEMap added in v1.0.15

type SafeEMap[TKey comparable, TValue any] struct {
	// contains filtered or unexported fields
}

SafeEMap is a safe map of type TIndex to pointers of type TValue. this map is completely thread safe and is using internal lock when getting and setting variables. the difference of SafeEMap and SafeMap is that SafeEMap is using a checker loop for removing the expired values from itself.

func NewSafeEMap added in v1.0.15

func NewSafeEMap[TKey comparable, TValue any]() *SafeEMap[TKey, TValue]

func (*SafeEMap[TKey, TValue]) Add added in v1.0.15

func (s *SafeEMap[TKey, TValue]) Add(key TKey, value *TValue)

func (*SafeEMap[TKey, TValue]) Clear added in v1.0.15

func (s *SafeEMap[TKey, TValue]) Clear()

Clear will clear the whole map.

func (*SafeEMap[TKey, TValue]) Delete added in v1.0.15

func (s *SafeEMap[TKey, TValue]) Delete(key TKey)

func (*SafeEMap[TKey, TValue]) DisableChecking added in v1.0.15

func (s *SafeEMap[TKey, TValue]) DisableChecking()

func (*SafeEMap[TKey, TValue]) DoCheck added in v1.0.19

func (s *SafeEMap[TKey, TValue]) DoCheck()

DoCheck iterates over the map and checks for expired variables and removes them. if the `onExpired` member of the map is set, it will call them.

func (*SafeEMap[TKey, TValue]) EnableChecking added in v1.0.15

func (s *SafeEMap[TKey, TValue]) EnableChecking()

func (*SafeEMap[TKey, TValue]) Exists added in v1.0.15

func (s *SafeEMap[TKey, TValue]) Exists(key TKey) bool

func (*SafeEMap[TKey, TValue]) Get added in v1.0.15

func (s *SafeEMap[TKey, TValue]) Get(key TKey) *TValue

func (*SafeEMap[TKey, TValue]) GetValue added in v1.0.15

func (s *SafeEMap[TKey, TValue]) GetValue(key TKey) TValue

func (*SafeEMap[TKey, TValue]) HasValidTimings added in v1.0.15

func (s *SafeEMap[TKey, TValue]) HasValidTimings() bool

func (*SafeEMap[TKey, TValue]) IsChecking added in v1.0.15

func (s *SafeEMap[TKey, TValue]) IsChecking() bool

func (*SafeEMap[TKey, TValue]) IsEmpty added in v1.0.15

func (s *SafeEMap[TKey, TValue]) IsEmpty() bool

func (*SafeEMap[TKey, TValue]) IsThreadSafe added in v1.0.15

func (s *SafeEMap[TKey, TValue]) IsThreadSafe() bool

func (*SafeEMap[TKey, TValue]) IsValid added in v1.0.15

func (s *SafeEMap[TKey, TValue]) IsValid() bool

func (*SafeEMap[TKey, TValue]) Length added in v1.0.15

func (s *SafeEMap[TKey, TValue]) Length() int

func (*SafeEMap[TKey, TValue]) Set added in v1.0.15

func (s *SafeEMap[TKey, TValue]) Set(key TKey, value any)

Set function sets the key of type TKey in this safe map to the value. the value should be of type TValue or *TValue, otherwise this function won't do anything at all.

func (*SafeEMap[TKey, TValue]) SetDefault added in v1.0.15

func (s *SafeEMap[TKey, TValue]) SetDefault(value TValue)

func (*SafeEMap[TKey, TValue]) SetExpiration added in v1.0.15

func (s *SafeEMap[TKey, TValue]) SetExpiration(duration time.Duration)

func (*SafeEMap[TKey, TValue]) SetInterval added in v1.0.16

func (s *SafeEMap[TKey, TValue]) SetInterval(duration time.Duration)

func (*SafeEMap[TKey, TValue]) SetOnExpired added in v1.0.17

func (s *SafeEMap[TKey, TValue]) SetOnExpired(event func(key TKey, value TValue))

func (*SafeEMap[TKey, TValue]) ToNormalMap added in v1.0.15

func (s *SafeEMap[TKey, TValue]) ToNormalMap() map[TKey]TValue

type SafeMap added in v1.0.13

type SafeMap[TKey comparable, TValue any] struct {
	// contains filtered or unexported fields
}

SafeMap is a safe map of type TIndex to pointers of type TValue. this map is completely thread safe and is using internal lock when getting and setting variables.

func NewSafeMap added in v1.0.15

func NewSafeMap[TKey comparable, TValue any]() *SafeMap[TKey, TValue]

func (*SafeMap[TKey, TValue]) Add added in v1.0.13

func (s *SafeMap[TKey, TValue]) Add(key TKey, value *TValue)

func (*SafeMap[TKey, TValue]) Clear added in v1.0.14

func (s *SafeMap[TKey, TValue]) Clear()

Clear will clear the whole map.

func (*SafeMap[TKey, TValue]) Delete added in v1.0.13

func (s *SafeMap[TKey, TValue]) Delete(key TKey)

func (*SafeMap[TKey, TValue]) Exists added in v1.0.13

func (s *SafeMap[TKey, TValue]) Exists(key TKey) bool

func (*SafeMap[TKey, TValue]) Get added in v1.0.13

func (s *SafeMap[TKey, TValue]) Get(key TKey) *TValue

func (*SafeMap[TKey, TValue]) GetValue added in v1.0.13

func (s *SafeMap[TKey, TValue]) GetValue(key TKey) TValue

func (*SafeMap[TKey, TValue]) IsEmpty added in v1.0.14

func (s *SafeMap[TKey, TValue]) IsEmpty() bool

func (*SafeMap[TKey, TValue]) IsThreadSafe added in v1.0.14

func (s *SafeMap[TKey, TValue]) IsThreadSafe() bool

func (*SafeMap[TKey, TValue]) IsValid added in v1.0.14

func (s *SafeMap[TKey, TValue]) IsValid() bool

func (*SafeMap[TKey, TValue]) Length added in v1.0.14

func (s *SafeMap[TKey, TValue]) Length() int

func (*SafeMap[TKey, TValue]) Set added in v1.0.13

func (s *SafeMap[TKey, TValue]) Set(key TKey, value any)

Set function sets the key of type TKey in this safe map to the value. the value should be of type TValue or *TValue, otherwise this function won't do anything at all.

func (*SafeMap[TKey, TValue]) SetDefault added in v1.0.13

func (s *SafeMap[TKey, TValue]) SetDefault(value TValue)

func (*SafeMap[TKey, TValue]) ToNormalMap added in v1.0.14

func (s *SafeMap[TKey, TValue]) ToNormalMap() map[TKey]TValue

type Serializer added in v1.0.11

type Serializer interface {
	Serialize() ([]byte, error)
	StrSerialize() string
}

type SignatureContainer added in v1.0.11

type SignatureContainer interface {
	GetSignature() string
	SetSignature(signature string) bool
	SetSignatureByBytes(data []byte) bool
	SetSignatureByFunc(h func() hash.Hash) bool
}

type StrongString

type StrongString struct {
	// contains filtered or unexported fields
}

the StrongString used in the program for additional usage.

func Sb

func Sb(b []byte) StrongString

Sb will generate a new StrongString with the specified non-encoded bytes value.

func Ss

func Ss(s string) StrongString

Ss will generate a new StrongString with the specified non-encoded string value.

func SsPtr

func SsPtr(s string) *StrongString

SS will generate a new StrongString with the specified non-encoded string value.

func (*StrongString) Contains

func (s *StrongString) Contains(qs ...QString) bool

func (*StrongString) ContainsAll

func (s *StrongString) ContainsAll(qs ...QString) bool

func (*StrongString) ContainsStr

func (s *StrongString) ContainsStr(str ...string) bool

func (*StrongString) ContainsStrAll

func (s *StrongString) ContainsStrAll(str ...string) bool

func (*StrongString) GetIndexV

func (s *StrongString) GetIndexV(index int) rune

GetIndexV method will give you the rune in index. if the passed-by `index` is out of range, it will return zero index of the value.

func (*StrongString) GetValue

func (s *StrongString) GetValue() string

GetValue will give you the real value of this StrongString.

func (*StrongString) HasPrefix

func (s *StrongString) HasPrefix(values ...string) bool

HasPrefix will check if at least there is one prefix is presents in this StrongString or not. the StrongString should starts with at least one of these prefixes.

func (*StrongString) HasPrefixes

func (s *StrongString) HasPrefixes(values ...string) bool

HasPrefixes will check if all of the prefixes are present in this StrongString or not. the StrongString should starts with all of these suffixes. usage of this method is not recommended, since you can use HasSuffix method with only one string (the longest string). this way you will just use too much cpu resources.

func (*StrongString) HasRunePrefix added in v1.0.6

func (s *StrongString) HasRunePrefix(values ...rune) bool

HasRunePrefix will check if at least there is one prefix is presents in this StrongString or not. the StrongString should starts with at least one of these prefixes.

func (*StrongString) HasRunePrefixes added in v1.0.6

func (s *StrongString) HasRunePrefixes(values ...rune) bool

HasRunePrefixes will check if all of the prefixes are present in this StrongString or not. the StrongString should starts with all of these suffixes. usage of this method is not recommended, since you can use HasSuffix method with only one string (the longest string). this way you will just use too much cpu resources.

func (*StrongString) HasSuffix

func (s *StrongString) HasSuffix(values ...string) bool

HasSuffix will check if at least there is one suffix is presents in this StrongString not. the StrongString should ends with at least one of these suffixes.

func (*StrongString) HasSuffixes

func (s *StrongString) HasSuffixes(values ...string) bool

HasSuffixes will check if all of the suffixes are present in this StrongString or not. the StrongString should ends with all of these suffixes. usage of this method is not recommended, since you can use HasSuffix method with only one string (the longest string). this way you will just use too much cpu resources.

func (*StrongString) IsEmpty

func (s *StrongString) IsEmpty() bool

isEmpty will check if this StrongString is empty or not.

func (*StrongString) IsEqual

func (s *StrongString) IsEqual(q QString) bool

isEqual will check if the passed-by-value in the arg is equal to this StrongString or not.

func (*StrongString) Length

func (s *StrongString) Length() int

length method, will give you the length-as-int of this StrongString.

func (*StrongString) LockSpecial

func (s *StrongString) LockSpecial()

LockSpecial will lock all the defined special characters. This way, you don't actually have to be worry about some normal mistakes in spliting strings, cut them out, check them. join them, etc... WARNING: this method is so dangerous, it's really dangerous. we can't say that it's unsafe actually, but still it's really dangerous, so if you don't know what the fuck are you doing, then please don't use this method. this method will not return you a new value, it will effect the current value. please consider using it carefully.

func (*StrongString) Replace

func (s *StrongString) Replace(qs, newS QString) QString

func (*StrongString) ReplaceStr

func (s *StrongString) ReplaceStr(qs, newS string) QString

func (*StrongString) Split

func (s *StrongString) Split(qs ...QString) []QString

func (*StrongString) SplitFirst

func (s *StrongString) SplitFirst(qs ...QString) []QString

func (*StrongString) SplitN

func (s *StrongString) SplitN(n int, qs ...QString) []QString

func (*StrongString) SplitStr

func (s *StrongString) SplitStr(qs ...string) []QString

func (*StrongString) SplitStrFirst

func (s *StrongString) SplitStrFirst(qs ...string) []QString

func (*StrongString) SplitStrN

func (s *StrongString) SplitStrN(n int, qs ...string) []QString

func (*StrongString) ToBool added in v1.0.5

func (s *StrongString) ToBool() bool

func (*StrongString) ToQString

func (s *StrongString) ToQString() QString

func (*StrongString) Trim

func (s *StrongString) Trim(qs ...QString) QString

func (*StrongString) TrimPrefix

func (s *StrongString) TrimPrefix(qs ...QString) QString

func (*StrongString) TrimPrefixStr

func (s *StrongString) TrimPrefixStr(qs ...string) QString

func (*StrongString) TrimStr

func (s *StrongString) TrimStr(qs ...string) QString

func (*StrongString) TrimSuffix

func (s *StrongString) TrimSuffix(qs ...QString) QString

func (*StrongString) TrimSuffixStr

func (s *StrongString) TrimSuffixStr(qs ...string) QString

func (*StrongString) UnlockSpecial

func (s *StrongString) UnlockSpecial()

UnlockSpecial will unlock all the defiend special characters. it will return them to their normal form.

type Validator added in v1.0.11

type Validator interface {
	IsValid() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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