Documentation ¶
Index ¶
- type Chars
- func (chars *Chars) Bytes() []byte
- func (chars *Chars) CopyRunes(dest []rune)
- func (chars *Chars) Get(i int) rune
- func (chars *Chars) IsBytes() bool
- func (chars *Chars) LeadingWhitespaces() int
- func (chars *Chars) Length() int
- func (chars *Chars) Prepend(prefix string)
- func (chars *Chars) String() string
- func (chars *Chars) ToRunes() []rune
- func (chars *Chars) ToString() string
- func (chars *Chars) TrailingWhitespaces() int
- func (chars *Chars) TrimLength() uint16
- func (chars *Chars) TrimTrailingWhitespaces()
- type Slab
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chars ¶
type Chars struct { // XXX Piggybacking item index here is a horrible idea. But I'm trying to // minimize the memory footprint by not wasting padded spaces. Index int32 // contains filtered or unexported fields }
func RunesToChars ¶
func (*Chars) LeadingWhitespaces ¶
func (*Chars) TrailingWhitespaces ¶
func (*Chars) TrimLength ¶
TrimLength returns the length after trimming leading and trailing whitespaces
func (*Chars) TrimTrailingWhitespaces ¶
func (chars *Chars) TrimTrailingWhitespaces()
Click to show internal directories.
Click to hide internal directories.