text

package
v1.96.7 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LRE = '\u202a'
	RLE = '\u202b'
	LRO = '\u202d'
	RLO = '\u202e'
	LRI = '\u2066'
	RLI = '\u2067'
	FSI = '\u2068'
	PDF = '\u202c'
	PDI = '\u2069'
)
View Source
const (
	MinASCII = 0x20
	MaxASCII = 0x7e
)
View Source
const (
	BEL = 7
	LF  = 10
	CR  = 13
	ESC = 27
)
View Source
const (
	PS1 = "❯"
)

Variables

This section is empty.

Functions

func Abr

func Abr(s string, w int) string

func AsASCII

func AsASCII(r rune) rune

func AsUnicode

func AsUnicode(r rune) rune

func Carve added in v1.83.0

func Carve(ch <-chan byte, str chan<- String, n, m int)

func Dec

func Dec(n int) int

func Len

func Len(s string) (l int)

func Pad

func Pad(s string, w int) string

func SplitQuoted

func SplitQuoted(s string) (r []string)

func Title

func Title(s string, w int) (r string)

func ToASCII

func ToASCII(s string) string

func Trim

func Trim(s string, l, r int) string

func UnEscape

func UnEscape(s string) string

Types

type String added in v1.83.0

type String struct {
	Off int
	Str string
}

Jump to

Keyboard shortcuts

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