Documentation ¶
Index ¶
- Variables
- func AbsFilenameToUrl(filename string) (string, error)
- func AddEscapes(str string, escape rune, escapeRunes string) string
- func CleanMultiplePathSeps(str string, sep rune) string
- func ContainsRune(rs []rune, ru rune) bool
- func CtxErrorStr(rd iorw.ReaderAt, filename string, pos int, msg string, contextSize int) string
- func CtxString(rd iorw.ReaderAt, pos int, contextSize int) (string, error)
- func DetectEnvVar(str, name string) bool
- func EscapeFilename(str string) string
- func ExpandIndexEscape(r iorw.ReaderAt, i int, truth bool, fn func(rune) bool, escape rune) int
- func ExpandIndexesEscape(rd iorw.ReaderAt, index int, truth bool, fn func(rune) bool, escape rune) (int, int)
- func ExpandLastIndexEscape(r iorw.ReaderAt, i int, truth bool, fn func(rune) bool, escape rune) int
- func ImproveExpandIndexEscape(r iorw.ReaderAt, i int, escape rune) int
- func IndexLineColumn(rd iorw.ReaderAt, index int) (int, int, error)
- func IndexLineColumn2(b []byte, index int) (int, int)
- func IsQuoted(s string) bool
- func LineColumnIndex(rd iorw.ReaderAt, line, column int) (int, error)
- func ParseFields(s string, fieldSep rune) ([]string, error)
- func RemoveEscapes(str string, escape rune) string
- func RemoveEscapes2(rs []rune, escapable []rune, escape rune) []rune
- func RemoveEscapesEscapable(str string, escape rune, escapable string) string
- func RemoveFilenameEscapes(f string, escape, pathSep rune) string
- func RunesExcept(runes, except string) string
- func RunesQuote(rs []rune) (rune, error)
- func SurroundingString(b []byte, k int, pad int) string
- func ToLowerNoAccents(b []byte) []byte
- func ToLowerNoAccents2(s string) string
- func TrimLineSpaces(str string) string
- func TrimLineSpaces2(str string, pre string) string
- func UnquoteString(s string, esc rune) (string, error)
- func UnquoteStringBs(s string) (string, error)
- func UrlToAbsFilename(url2 string) (string, error)
- func VersionLessThan(a, b string) bool
- func VersionOrdinal(version string) string
- type FilePos
Constants ¶
This section is empty.
Variables ¶
View Source
var ExtraRunes = "_-~.%@&?!=#+:^" + "(){}[]<>" + "\\/" + " "
Functions ¶
func AbsFilenameToUrl ¶
func CleanMultiplePathSeps ¶
func ContainsRune ¶ added in v1.3.7
func CtxErrorStr ¶ added in v1.3.3
func DetectEnvVar ¶
func EscapeFilename ¶
func ExpandIndexEscape ¶
func ExpandIndexesEscape ¶
func ExpandLastIndexEscape ¶
func IndexLineColumn ¶
Returned line/col values are one-based.
func IndexLineColumn2 ¶ added in v1.3.7
Returned line/col values are one-based.
func LineColumnIndex ¶
Line/col args are one-based.
func RemoveEscapes ¶
func RemoveEscapes2 ¶ added in v1.3.7
func RemoveEscapesEscapable ¶
func RemoveFilenameEscapes ¶
func RunesExcept ¶
func RunesQuote ¶ added in v1.3.7
func ToLowerNoAccents ¶ added in v1.3.7
func ToLowerNoAccents2 ¶ added in v1.3.7
func TrimLineSpaces2 ¶ added in v1.3.1
func UnquoteString ¶ added in v1.3.7
removes escapes runes (keeping the escaped) if quoted
func UnquoteStringBs ¶ added in v1.3.7
unquote string with backslash as escape
func UrlToAbsFilename ¶
func VersionLessThan ¶ added in v1.3.1
func VersionOrdinal ¶ added in v1.3.1
constructs a byte array (returned as a string) with the count of sequential digits to be able to compare "1.9"<"1.10"
Types ¶
Click to show internal directories.
Click to hide internal directories.