rope

package module
v0.0.0-...-a60c920 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2018 License: MIT Imports: 9 Imported by: 2

README

rope

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxLengthPerNode = 128

Functions

This section is empty.

Types

type Key

type Key struct {
	// contains filtered or unexported fields
}

type Rope

type Rope struct {
	// contains filtered or unexported fields
}

func NewFromBytes

func NewFromBytes(bs []byte) *Rope

func NewFromReader

func NewFromReader(r io.Reader) (ret *Rope, err error)

func NewFromString

func NewFromString(s string) *Rope

func (*Rope) Bytes

func (r *Rope) Bytes() []byte

func (*Rope) Concat

func (r *Rope) Concat(r2 *Rope) (ret *Rope)

func (*Rope) Delete

func (r *Rope) Delete(n, l int) *Rope

func (*Rope) Dump

func (r *Rope) Dump()

func (*Rope) Index

func (r *Rope) Index(i int) byte

func (*Rope) Insert

func (r *Rope) Insert(n int, bs []byte) *Rope

func (*Rope) Iter

func (r *Rope) Iter(offset int, fn func([]byte) bool) bool

func (*Rope) IterBackward

func (r *Rope) IterBackward(offset int, fn func([]byte) bool) bool

func (*Rope) IterRune

func (r *Rope) IterRune(offset int, fn func(rune, int) bool)

func (*Rope) Len

func (r *Rope) Len() int

func (*Rope) NewRuneReader

func (r *Rope) NewRuneReader() *RuneReader

func (*Rope) Split

func (r *Rope) Split(n int) (out1, out2 *Rope)

func (*Rope) StructEqual

func (r *Rope) StructEqual(r2 *Rope) bool

func (*Rope) Sub

func (r *Rope) Sub(n, l int) []byte

type RuneReader

type RuneReader struct {
	// contains filtered or unexported fields
}

func (*RuneReader) Close

func (r *RuneReader) Close()

func (*RuneReader) ReadRune

func (r *RuneReader) ReadRune() (rune, int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL