Documentation ¶
Index ¶
- Variables
- func Aggregate(candicate [][]rune) (same []rune, size int)
- func Backspace(r []rune) []byte
- func ColorFilter(r []rune) []rune
- func Copy(r []rune) []rune
- func Equal(a, b []rune) bool
- func EqualFold(a, b []rune) bool
- func EqualRune(a, b rune, fold bool) bool
- func EqualRuneFold(a, b rune) bool
- func HasPrefix(r, prefix []rune) bool
- func HasPrefixFold(r, prefix []rune) bool
- func Index(r rune, rs []rune) int
- func IndexAll(r, sub []rune) int
- func IndexAllBck(r, sub []rune) int
- func IndexAllBckEx(r, sub []rune, fold bool) int
- func IndexAllEx(r, sub []rune, fold bool) int
- func IsWordBreak(i rune) bool
- func SplitByLine(prompt, rs []rune, offset, screenWidth, nextWidth int) [][]rune
- func TrimSpaceLeft(in []rune) []rune
- func Width(r rune) int
- func WidthAll(r []rune) (length int)
Constants ¶
This section is empty.
Variables ¶
View Source
var TabWidth = 4
Functions ¶
func ColorFilter ¶
func EqualRuneFold ¶
func HasPrefixFold ¶
func IndexAllBckEx ¶
func IndexAllEx ¶
func IsWordBreak ¶
func SplitByLine ¶
split prompt + runes into lines by screenwidth starting from an offset. the prompt should be filtered before passing to only its display runes. if you know the width of the next character, pass it in as it is used to decide if we generate an extra empty rune array to show next is new line.
func TrimSpaceLeft ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.