Documentation ¶
Index ¶
- func BLeft(s string, l int) string
- func BRight(s string, l int) string
- func Camel2UnderScore(s string, score string) string
- func Contain(s, sub string) bool
- func EndWith(s string, search string) bool
- func FirstCharLowerCase(s string) string
- func FirstCharUpperCase(s string) string
- func Foreach(s string, fn func(i int, s string) bool)
- func IndexOf(s, sub string) int
- func IsFirstLetterLower(s string) bool
- func IsFirstLetterUpper(s string) bool
- func IsLetterLower(b byte) bool
- func IsLetterUpper(b byte) bool
- func IsNumeric(s string) bool
- func Join(items []string, sep string) string
- func LastIndexOf(s, sub string) int
- func LcFirst(s string) string
- func Left(s string, l int) string
- func Len(s string) int
- func LowerCase(s string) string
- func MakeAndFillStrSlice(size int, fillChar string) []string
- func MakeStrAndFill(count int, repeatChar string, sep string) string
- func MuSplit(s string, sep uint8, more ...uint8) []string
- func ParseKeyValue(s string) map[string]string
- func Replace(origin, search, replace string, count ...int) string
- func ReplaceByMap(origin string, replaces map[string]string) string
- func Right(s string, l int) string
- func Split(s, sep string, needCount ...int) []string
- func Splits(s, sep string, more ...string) []string
- func StartWith(s string, search string) bool
- func SubStr(s string, fromIdx int, slen ...int) string
- func Trim(s string) string
- func UcFirst(s string) string
- func UnderScore2Camel(s string, score string) string
- func UpperCase(s string) string
- type String
- func (s *String) BForeach(fn func(i int, c uint8) bool)
- func (s *String) BLeft(l int) string
- func (s *String) BLeftO(l int) *String
- func (s *String) BLen() int
- func (s *String) BRight(l int) string
- func (s *String) BRightO(l int) *String
- func (s *String) Camel2UnderScore(score string) *String
- func (s *String) Camel2UnderScoreStr(score string) string
- func (s *String) CamelCase() *String
- func (s *String) CamelCaseStr() string
- func (s *String) Cat(other *String) *String
- func (s *String) CatStr(other string) *String
- func (s *String) Clone() *String
- func (s *String) Contain(sub string) bool
- func (s *String) Contains(substr string) bool
- func (s *String) Equal(target *String) bool
- func (s *String) EqualStr(target string) bool
- func (s *String) FirstLowerCase() *String
- func (s *String) FirstLowerCaseStr() string
- func (s *String) FirstUpperCase() *String
- func (s *String) FirstUpperCaseStr() string
- func (s *String) Foreach(fn func(i int, c string) bool)
- func (s *String) IndexOf(sub string) int
- func (s *String) IsEmpty() bool
- func (s *String) IsLowerFirst() bool
- func (s *String) IsNumeric() bool
- func (s *String) IsUpperFirst() bool
- func (s *String) Join(elems []string, sep string) *String
- func (s *String) JoinStr(elems []string, sep string) string
- func (s *String) LastIndexOf(sub string) int
- func (s *String) LcFirst() *String
- func (s *String) Left(l int) string
- func (s *String) LeftO(l int) *String
- func (s *String) Len() int
- func (s *String) LowerUnderScore() *String
- func (s *String) LowerUnderScoreStr() string
- func (s *String) Replace(search, replace string, count ...int) *String
- func (s *String) ReplaceByMap(replaces map[string]string) *String
- func (s *String) ReplaceByMapStr(replaces map[string]string) string
- func (s *String) ReplaceStr(search, replace string, count ...int) string
- func (s *String) Right(l int) string
- func (s *String) RightO(l int) *String
- func (s *String) Set(val string) *String
- func (s *String) Split(sep string) []*String
- func (s *String) SplitStr(sep string) []string
- func (s *String) String() string
- func (s *String) SubStr(fromIdx int, l int) string
- func (s *String) SubStrO(fromIdx int, l int) *String
- func (s *String) ToLower() *String
- func (s *String) ToUpper() *String
- func (s *String) Trim() *String
- func (s *String) UcFirst() *String
- func (s *String) UnderScore2Camel(score string) *String
- func (s *String) UnderScore2CamelStr(score string) string
- func (s *String) UpperUnderScore() *String
- func (s *String) UpperUnderScoreStr() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Camel2UnderScore ¶
func FirstCharLowerCase ¶
func FirstCharUpperCase ¶
func IsFirstLetterLower ¶
func IsFirstLetterUpper ¶
func LastIndexOf ¶
func MakeAndFillStrSlice ¶
func ParseKeyValue ¶
解析键值对字符串为hashMap 格式:
1、键1:值1;键2:值2 2、键1:值1,键2:值2 3、键1=值1&键2=值2 4、键1=值1;键2=值2 4、键1=值1,键2=值2
func UnderScore2Camel ¶
Types ¶
type String ¶
type String struct {
// contains filtered or unexported fields
}
func (*String) Camel2UnderScore ¶
func (*String) Camel2UnderScoreStr ¶
func (*String) CamelCaseStr ¶
func (*String) FirstLowerCase ¶
func (*String) FirstLowerCaseStr ¶
func (*String) FirstUpperCase ¶
func (*String) FirstUpperCaseStr ¶
func (*String) LastIndexOf ¶
func (*String) LowerUnderScore ¶
func (*String) LowerUnderScoreStr ¶
func (*String) ReplaceByMapStr ¶
func (*String) ReplaceStr ¶
func (*String) UnderScore2Camel ¶
func (*String) UnderScore2CamelStr ¶
func (*String) UpperUnderScore ¶
func (*String) UpperUnderScoreStr ¶
Click to show internal directories.
Click to hide internal directories.