goawk: github.com/benhoyt/goawk/internal/strutil Index | Files

package strutil

import "github.com/benhoyt/goawk/internal/strutil"

Package strutil provides some miscellaneous string functions.

Index

Package Files

strutil.go

func IsASCIISpace Uses

func IsASCIISpace(c byte) bool

IsASCIISpace returns true if c represents an ASCII whitespace byte.

func TrimSpace Uses

func TrimSpace(s string) string

TrimSpace returns a slice of the string s, with all leading and trailing white space removed, as defined by Unicode. (It behaves the same as Go's strings.TrimSpace, but has a fast path for ASCII strings so is much faster for common cases.)

Package strutil imports 3 packages (graph) and is imported by 1 packages. Updated 2018-12-07. Refresh now. Tools for package owners.