Documentation ¶
Index ¶
- Variables
- func HasBothWrappedWith(str string, category Category) bool
- func UnWrapWith(str string, category Category) string
- func WrapWith(str string, category Category, isSkipOnExists bool) string
- type BothBrackets
- func (it *BothBrackets) IsSafeInvalid() bool
- func (it *BothBrackets) IsValid() bool
- func (it BothBrackets) IsWrapped(source string) bool
- func (it BothBrackets) String() string
- func (it BothBrackets) UnWrap(source string) string
- func (it BothBrackets) WrapAny(source interface{}) string
- func (it BothBrackets) WrapFmtString(format, sourceString string) string
- func (it BothBrackets) WrapSkipOnExist(source string) string
- func (it BothBrackets) WrapString(sourceString string) string
- func (it BothBrackets) WrapWithOptions(isSkipOnExist bool, source string) string
- type Bracket
- func (it Bracket) AllNameValues() []string
- func (it Bracket) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
- func (it *Bracket) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
- func (it Bracket) BothBrackets() BothBrackets
- func (it Bracket) Category() Category
- func (it Bracket) EnumType() enuminf.EnumTyper
- func (it Bracket) Format(format string) (compiled string)
- func (it Bracket) IntegerEnumRanges() []int
- func (it Bracket) IsAnyNamesOf(names ...string) bool
- func (it Bracket) IsAnyOf(anyOfItems ...Bracket) bool
- func (it Bracket) IsAnyValuesEqual(anyByteValues ...byte) bool
- func (it Bracket) IsByteValueEqual(value byte) bool
- func (it Bracket) IsCurly() bool
- func (it Bracket) IsCurlyEnd() bool
- func (it Bracket) IsCurlyStart() bool
- func (it Bracket) IsEnd() bool
- func (it Bracket) IsEqual(char uint8) bool
- func (it Bracket) IsInvalid() bool
- func (it Bracket) IsNameEqual(name string) bool
- func (it Bracket) IsNameOf(anyNames ...string) bool
- func (it Bracket) IsParenthesis() bool
- func (it Bracket) IsParenthesisEnd() bool
- func (it Bracket) IsParenthesisStart() bool
- func (it Bracket) IsSquare() bool
- func (it Bracket) IsSquareEnd() bool
- func (it Bracket) IsSquareStart() bool
- func (it Bracket) IsStart() bool
- func (it Bracket) IsValid() bool
- func (it Bracket) IsValueEqual(value byte) bool
- func (it Bracket) IsWrapped(source string) bool
- func (it Bracket) MarshalJSON() ([]byte, error)
- func (it Bracket) MaxByte() byte
- func (it Bracket) MaxInt() int
- func (it Bracket) MaxValueString() string
- func (it Bracket) MinByte() byte
- func (it Bracket) MinInt() int
- func (it Bracket) MinMaxAny() (min, max interface{})
- func (it Bracket) MinValueString() string
- func (it Bracket) Name() string
- func (it Bracket) NameValue() string
- func (it Bracket) OnlySupportedErr(names ...string) error
- func (it Bracket) OnlySupportedMsgErr(message string, names ...string) error
- func (it Bracket) OtherBracket() Bracket
- func (it Bracket) Pair() Pair
- func (it Bracket) RangeNamesCsv() string
- func (it Bracket) RangesByte() []byte
- func (it Bracket) RangesDynamicMap() map[string]interface{}
- func (it Bracket) SelfWrap() string
- func (it Bracket) String() string
- func (it *Bracket) ToNumberString() string
- func (it Bracket) ToPtr() *Bracket
- func (it Bracket) TypeName() string
- func (it Bracket) UnWrap(source string) string
- func (it *Bracket) UnmarshalJSON(data []byte) error
- func (it *Bracket) UnmarshallEnumToValue(jsonUnmarshallingValue []byte) (byte, error)
- func (it Bracket) Value() byte
- func (it Bracket) ValueByte() byte
- func (it Bracket) ValueInt() int
- func (it Bracket) ValueInt16() int16
- func (it Bracket) ValueInt32() int32
- func (it Bracket) ValueInt8() int8
- func (it Bracket) ValueString() string
- func (it Bracket) ValueUInt16() uint16
- func (it Bracket) WrapAny(source interface{}) string
- func (it Bracket) WrapFmtString(format, sourceString string) string
- func (it Bracket) WrapRegardless(source string) string
- func (it Bracket) WrapSkipOnExist(source string) string
- func (it Bracket) WrapString(sourceString string) string
- func (it Bracket) WrapWithOptions(isSkipOnExist bool, source string) string
- type BracketStatus
- type Category
- func (it Category) AsSimpleEnumer() enuminf.SimpleEnumer
- func (it Category) End() Bracket
- func (it Category) IsCurly() bool
- func (it Category) IsInvalid() bool
- func (it Category) IsParenthesis() bool
- func (it Category) IsSquare() bool
- func (it Category) IsValid() bool
- func (it Category) IsWrapped(source string) bool
- func (it Category) Name() string
- func (it Category) Pair() Pair
- func (it Category) SelfWrap() string
- func (it Category) Start() Bracket
- func (it Category) String() string
- func (it Category) TypeName() string
- func (it Category) UnWrap(source string) string
- func (it Category) ValueByte() byte
- func (it Category) WrapAny(source interface{}) string
- func (it Category) WrapFmtString(format, sourceString string) string
- func (it Category) WrapString(sourceString string) string
- func (it Category) WrapWithOptions(isSkipOnExist bool, source string) string
- type Pair
- func (it *Pair) IsSafeInvalid() bool
- func (it *Pair) IsValid() bool
- func (it Pair) IsWrapped(source string) bool
- func (it Pair) SelfWrap() string
- func (it Pair) String() string
- func (it Pair) UnWrap(source string) string
- func (it Pair) Wrap(str string) string
- func (it Pair) WrapAny(source interface{}) string
- func (it Pair) WrapFmtString(format, sourceString string) string
- func (it Pair) WrapSkipOnExist(source string) string
- func (it Pair) WrapString(sourceString string) string
- func (it Pair) WrapWithOptions(isSkipOnExist bool, source string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BasicEnumImpl = rangesMap.BasicByte( coredynamic.TypeName(Invalid)) )
Functions ¶
func HasBothWrappedWith ¶
func UnWrapWith ¶
UnWrapWith
Note : It doesn't care about in brackets exist in middle of (str), it just un-wrap from both sides if brackets are there.
Types ¶
type BothBrackets ¶
func (*BothBrackets) IsSafeInvalid ¶
func (it *BothBrackets) IsSafeInvalid() bool
func (*BothBrackets) IsValid ¶
func (it *BothBrackets) IsValid() bool
func (BothBrackets) IsWrapped ¶
func (it BothBrackets) IsWrapped(source string) bool
func (BothBrackets) String ¶
func (it BothBrackets) String() string
func (BothBrackets) UnWrap ¶
func (it BothBrackets) UnWrap(source string) string
func (BothBrackets) WrapAny ¶
func (it BothBrackets) WrapAny(source interface{}) string
func (BothBrackets) WrapFmtString ¶
func (it BothBrackets) WrapFmtString( format, sourceString string, ) string
WrapFmtString
{wrapped} will be replaced in the format by the wrapped string.
func (BothBrackets) WrapSkipOnExist ¶
func (it BothBrackets) WrapSkipOnExist( source string, ) string
func (BothBrackets) WrapString ¶
func (it BothBrackets) WrapString(sourceString string) string
func (BothBrackets) WrapWithOptions ¶
func (it BothBrackets) WrapWithOptions( isSkipOnExist bool, source string, ) string
type Bracket ¶
type Bracket byte
func (Bracket) AllNameValues ¶
func (Bracket) AsBasicByteEnumContractsBinder ¶
func (it Bracket) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
func (*Bracket) AsBasicEnumContractsBinder ¶
func (it *Bracket) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
func (Bracket) BothBrackets ¶
func (it Bracket) BothBrackets() BothBrackets
func (Bracket) IntegerEnumRanges ¶
func (Bracket) IsAnyNamesOf ¶
func (Bracket) IsAnyValuesEqual ¶
func (Bracket) IsByteValueEqual ¶
func (Bracket) IsCurlyEnd ¶
func (Bracket) IsCurlyStart ¶
func (Bracket) IsNameEqual ¶
func (Bracket) IsParenthesis ¶
func (Bracket) IsParenthesisEnd ¶
func (Bracket) IsParenthesisStart ¶
func (Bracket) IsSquareEnd ¶
func (Bracket) IsSquareStart ¶
func (Bracket) IsValueEqual ¶
func (Bracket) MarshalJSON ¶
func (Bracket) MaxValueString ¶
func (Bracket) MinValueString ¶
func (Bracket) OnlySupportedErr ¶
func (Bracket) OnlySupportedMsgErr ¶
func (Bracket) OtherBracket ¶
func (Bracket) RangeNamesCsv ¶
func (Bracket) RangesByte ¶
func (Bracket) RangesDynamicMap ¶
func (*Bracket) ToNumberString ¶
func (*Bracket) UnmarshalJSON ¶
func (*Bracket) UnmarshallEnumToValue ¶
func (Bracket) ValueInt16 ¶
func (Bracket) ValueInt32 ¶
func (Bracket) ValueString ¶
func (Bracket) ValueUInt16 ¶
func (Bracket) WrapFmtString ¶
WrapFmtString
{wrapped} will be replaced in the format by the wrapped string.
func (Bracket) WrapRegardless ¶
func (Bracket) WrapSkipOnExist ¶
func (Bracket) WrapString ¶
type BracketStatus ¶
type BracketStatus struct { IsBracketFound bool IsLeft bool Category Category FoundBracket Bracket OtherBracket Bracket }
func EmptyBracketStatus ¶
func EmptyBracketStatus() BracketStatus
func WhichBracket ¶
func WhichBracket(char uint8, isLeft bool) BracketStatus
type Category ¶
type Category byte
func (Category) AsSimpleEnumer ¶
func (it Category) AsSimpleEnumer() enuminf.SimpleEnumer
func (Category) IsParenthesis ¶
func (Category) WrapFmtString ¶
WrapFmtString
{wrapped} will be replaced in the format by the wrapped string.
func (Category) WrapString ¶
type Pair ¶
func (*Pair) IsSafeInvalid ¶
func (Pair) WrapFmtString ¶
WrapFmtString
{wrapped} will be replaced in the format by the wrapped string.
func (Pair) WrapSkipOnExist ¶
func (Pair) WrapString ¶
Click to show internal directories.
Click to hide internal directories.