Documentation ¶
Index ¶
- Constants
- Variables
- func CloneByteSlice(s []byte) []byte
- func GrowByteSlice(s []byte, desiredCap int) []byte
- func IndexFirstNonSpace(s []byte) int
- func IndexLastNonSpace(s []byte) int
- func InsertBytes(s []byte, offset int, data []byte) []byte
- func IsWord(r rune) bool
- func IterLines(data []byte, cb func([]byte))
- func IterWords(data []byte, cb func(word []byte))
- func ParseCount(s string) int
- func RuneAdvanceLen(r rune, pos int) int
Constants ¶
View Source
const TabstopLength = 8
TODO keep synched with editor/config.go/tabstopLength
Variables ¶
View Source
var InvisibleRuneTable = []rune{
'@',
'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
'I',
'J',
'K',
'L',
'M',
'N',
'O',
'P',
'Q',
'R',
'S',
'T',
'U',
'V',
'W',
'X',
'Y',
'Z',
'[',
'\\',
']',
'^',
'_',
}
Functions ¶
func CloneByteSlice ¶
func GrowByteSlice ¶
func IndexFirstNonSpace ¶
func IndexLastNonSpace ¶
func IterLines ¶
Function will iterate 'data' contents, calling 'cb' on some data or on '\n', but never both. For example, given this data: "\n123\n123\n\n", it will call 'cb' 6 times: ['\n', '123', '\n', '123', '\n', '\n']
func RuneAdvanceLen ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.