kubernetes/vendor/golang.org/x/text/transform/transform.go

var ErrShortDst

var ErrShortSrc

var ErrEndOfSpan

var errInconsistentByteCount

var errShortInternal

type Transformer

type SpanningTransformer

type NopResetter

// Reset implements the Reset method of the Transformer interface.
func (NopResetter) Reset() {}

type Reader

const defaultBufSize

// NewReader returns a new Reader that wraps r by transforming the bytes read
// via t. It calls Reset on t.
func NewReader(r io.Reader, t Transformer) *Reader {}

// Read implements the io.Reader interface.
func (r *Reader) Read(p []byte) (int, error) {}

type Writer

// NewWriter returns a new Writer that wraps w by transforming the bytes written
// via t. It calls Reset on t.
func NewWriter(w io.Writer, t Transformer) *Writer {}

// Write implements the io.Writer interface. If there are not enough
// bytes available to complete a Transform, the bytes will be buffered
// for the next write. Call Close to convert the remaining bytes.
func (w *Writer) Write(data []byte) (n int, err error) {}

// Close implements the io.Closer interface.
func (w *Writer) Close() error {}

type nop

func (nop) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {}

func (nop) Span(src []byte, atEOF bool) (n int, err error) {}

type discard

func (discard) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {}

var Discard

var Nop

type chain

func (c *chain) fatalError(errIndex int, err error) {}

type link

func (l *link) src() []byte {}

func (l *link) dst() []byte {}

// Chain returns a Transformer that applies t in sequence.
func Chain(t ...Transformer) Transformer {}

// Reset resets the state of Chain. It calls Reset on all the Transformers.
func (c *chain) Reset() {}

// Transform applies the transformers of c in sequence.
func (c *chain) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {}

// Deprecated: Use runes.Remove instead.
func RemoveFunc(f func(r rune) bool) Transformer {}

type removeF

func (removeF) Reset() {}

// Transform implements the Transformer interface.
func (t removeF) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {}

// grow returns a new []byte that is longer than b, and copies the first n bytes
// of b to the start of the new slice.
func grow(b []byte, n int) []byte {}

const initialBufSize

// String returns a string with the result of converting s[:n] using t, where
// n <= len(s). If err == nil, n will be len(s). It calls Reset on t.
func String(t Transformer, s string) (result string, n int, err error) {}

// Bytes returns a new byte slice with the result of converting b[:n] using t,
// where n <= len(b). If err == nil, n will be len(b). It calls Reset on t.
func Bytes(t Transformer, b []byte) (result []byte, n int, err error) {}

// Append appends the result of converting src[:n] using t to dst, where
// n <= len(src), If err == nil, n will be len(src). It calls Reset on t.
func Append(t Transformer, dst, src []byte) (result []byte, n int, err error) {}

func doAppend(t Transformer, pDst int, dst, src []byte) (result []byte, n int, err error) {}