Documentation ¶
Index ¶
- func ArrayInt16ToString(a []int16, sep string) string
- func Concat(v ...interface{}) string
- func Contains(tokens []string, src string) (ret bool)
- func Cp949toUtf8(src []byte) string
- func CutLastString(className string, delim string) string
- func EscapeSpace(a string) string
- func FirstWord(target, delim string) string
- func HashCode(s string) int
- func InArray(str string, list []string) bool
- func InArrayCaseSensitive(str string, list []string) bool
- func IsNotEmpty(s string) bool
- func LPad(str string, n int) string
- func LPadInt(v, size int) string
- func LastWord(target, delim string) string
- func NullTermToStrings(b []byte) (s []string)
- func ParseInt32(str string) int32
- func ParseInt64(str string) int64
- func ParseMapSASToString(m map[string][]string, maxCount, keyMaxSize, valueMaxSize int) string
- func ParseStringZeroToEmpty(v int64) string
- func RPad(str string, n int) string
- func Split(s, sep string) []string
- func StringInSlice(a string, list []string) bool
- func Substring(s string, from string, to string) string
- func SubstringN(s string, from string, to string, n int) []string
- func SubstringWords(s string, from []string) map[string]string
- func ToPair(s string, sep string) (k, v string)
- func Tokenizer(src, delim string) []string
- func TrimAllSpace(str string) string
- func TrimEmpty(s string) string
- func Truncate(str string, length int) string
- func TruncateRune(str string, sz int) string
- type StringBuffer
- func (sb *StringBuffer) Append(str string) *StringBuffer
- func (sb *StringBuffer) AppendClose(str string) *StringBuffer
- func (sb *StringBuffer) AppendComment(str string) *StringBuffer
- func (sb *StringBuffer) AppendFormat(str string, args ...interface{}) *StringBuffer
- func (sb *StringBuffer) AppendLine(str string) *StringBuffer
- func (sb *StringBuffer) AppendLineClose(str string) *StringBuffer
- func (sb *StringBuffer) AppendLineIndent(str string) *StringBuffer
- func (sb *StringBuffer) Clear()
- func (sb *StringBuffer) ToString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayInt16ToString ¶
func Cp949toUtf8 ¶
func CutLastString ¶
func EscapeSpace ¶
func InArrayCaseSensitive ¶
func IsNotEmpty ¶
func NullTermToStrings ¶
func ParseInt32 ¶
func ParseInt64 ¶
func ParseMapSASToString ¶
func ParseStringZeroToEmpty ¶
func StringInSlice ¶
func SubstringWords ¶
substring Prefix "abcd efg hijk" from[]{"a","e","h"} => result[]{"abcd", "efg", "hijk"}
func TrimAllSpace ¶
func TruncateRune ¶ added in v0.0.15
Types ¶
type StringBuffer ¶
type StringBuffer struct {
// contains filtered or unexported fields
}
func NewStringBuffer ¶
func NewStringBuffer() *StringBuffer
func (*StringBuffer) Append ¶
func (sb *StringBuffer) Append(str string) *StringBuffer
/ append a string to the tail of this buffer
func (*StringBuffer) AppendClose ¶
func (sb *StringBuffer) AppendClose(str string) *StringBuffer
func (*StringBuffer) AppendComment ¶
func (sb *StringBuffer) AppendComment(str string) *StringBuffer
/ append a line as comment.
func (*StringBuffer) AppendFormat ¶
func (sb *StringBuffer) AppendFormat(str string, args ...interface{}) *StringBuffer
func (*StringBuffer) AppendLine ¶
func (sb *StringBuffer) AppendLine(str string) *StringBuffer
func (*StringBuffer) AppendLineClose ¶
func (sb *StringBuffer) AppendLineClose(str string) *StringBuffer
func (*StringBuffer) AppendLineIndent ¶
func (sb *StringBuffer) AppendLineIndent(str string) *StringBuffer
func (*StringBuffer) ToString ¶
func (sb *StringBuffer) ToString() string
Click to show internal directories.
Click to hide internal directories.