Documentation
¶
Index ¶
- func Utf16to8(b []byte, offset int) int
- func Utf8to16(b []byte, offset int) int
- type Text
- func (t Text) Annotate(text string)
- func (t Text) Append(s []byte)
- func (t Text) AppendString(s string)
- func (t Text) CR()
- func (t Text) Clone() Text
- func (t Text) Cursor() common.Pos
- func (t Text) FromPos(enc common.Encoding, pos common.Pos) common.Pos
- func (t Text) FromRange(enc common.Encoding, rang common.Range) common.Range
- func (t Text) IntoPos(enc common.Encoding, pos common.Pos) common.Pos
- func (t Text) IntoRange(enc common.Encoding, rang common.Range) common.Range
- func (t Text) Load(path string) error
- func (t Text) MustLine(n int) []byte
- func (t Text) Patch(ran common.Range, content string) (tree_sitter.InputEdit, bool, error)
- func (t Text) Print()
- func (t Text) Rune(offset int) (rune, bool)
- func (t Text) Save(path string) error
- func (t Text) Slice(rang common.Range) []byte
- func (t Text) Source() []byte
- func (t Text) String() string
- func (t Text) Update(content string) (tree_sitter.InputEdit, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.