Documentation ¶
Index ¶
- func IsDigit(b byte) bool
- func IsNumericArray(src []byte) bool
- func LowerCase(src []byte)
- type String
- func (c *String) Bytes() []byte
- func (c String) Capitalize()
- func (c String) CharAt(index int) byte
- func (c String) Compare(b String) int
- func (c String) Contains(subStr []byte) bool
- func (c *String) CountByte(b byte) int
- func (c String) HasPrefix(prefix []byte) bool
- func (c String) HasSuffix(suffix string) bool
- func (c String) IsEmpty() bool
- func (c String) IsHexadecimal() bool
- func (c String) IsNumeric() bool
- func (c String) IsOctal() bool
- func (c *String) LastIndex(item []byte) int
- func (c *String) LastIndexOfByte(b byte) int
- func (c String) Length() int
- func (c String) LowerCase()
- func (c *String) Reverse()
- func (c *String) String() string
- func (c String) TitleCase()
- func (c String) UpperCase()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNumericArray ¶
Types ¶
type String ¶
type String struct { // Data here is analogous to the C string Data unsafe.Pointer Len int // contains filtered or unexported fields }
func (String) Capitalize ¶
func (c String) Capitalize()
Capitalize returns a capitalized version of the string
func (String) IsHexadecimal ¶
is numeric checks whether given string is numeric or not
func (*String) LastIndex ¶
LastIndex returns the index of the last instance of substr in s, or -1 if substr is not present in s.
func (*String) LastIndexOfByte ¶
return the index of first matching byte
func (String) LowerCase ¶
func (c String) LowerCase()
LowerCase returns a lowercase version of the string
Click to show internal directories.
Click to hide internal directories.