# Functions
BytesToReadOnlyString returns a string converted from given bytes.
DedentPosition dedents lines by the given width.
DedentPositionPadding dedents lines by the given width.
DoFullUnicodeCaseFolding performs full unicode case folding to given bytes.
EastAsianWidth returns the east asian width of the given rune.
EscapeHTML escapes characters that should be escaped in HTML text.
EscapeHTMLByte returns HTML escaped bytes if the given byte should be escaped, otherwise nil.
FindClosure returns a position that closes the given opener.
FindEmailIndex returns a stop index value if the given bytes seem an email address.
FindURLIndex returns a stop index value if the given bytes seem an URL.
FirstNonSpacePosition returns a position line that is a first nonspace character.
IndentPosition searches an indent position with the given width for the given line.
IndentPositionPadding searches an indent position with the given width for the given line.
IndentWidth calculate an indent width for the given line.
IsAlphaNumeric returns true if the given character is a alphabet or a numeric, otherwise false.
IsBlank returns true if the given string is all space characters.
IsEastAsianWideRune returns trhe if the given rune is an east asian wide character, otherwise false.
IsEscapedPunctuation returns true if character at a given index i is an escaped punctuation, otherwise false.
IsHexDecimal returns true if the given character is a hexdecimal, otherwise false.
IsNumeric returns true if the given character is a numeric, otherwise false.
IsPunct returns true if the given character is a punctuation, otherwise false.
IsPunctRune returns true if the given rune is a punctuation, otherwise false.
IsSpace returns true if the given character is a space, otherwise false.
IsSpaceDiscardingUnicodeRune returns true if the given rune is space-discarding unicode character, otherwise false.
IsSpaceRune returns true if the given rune is a space, otherwise false.
LookUpHTML5EntityByName returns (an HTML5Entity, true) if an entity named given name is found, otherwise (nil, false).
NewBytesFilter returns a new BytesFilter.
NewCopyOnWriteBuffer returns a new CopyOnWriteBuffer.
Prioritized returns a new PrioritizedValue.
ReadWhile read the given source while pred is true.
ReplaceSpaces replaces sequence of spaces with the given repl.
ResolveEntityNames resolve entity references like 'ö" .
ResolveNumericReferences resolve numeric references like 'Ӓ" .
StringToReadOnlyBytes returns bytes converted from given string.
TabWidth calculates actual width of a tab at the given position.
ToLinkReference converts given bytes into a valid link reference string.
ToRune decode given bytes start at pos and returns a rune.
ToValidRune returns 0xFFFD if the given rune is invalid, otherwise v.
TrimLeft trims characters in the given s from head of the source.
TrimLeftLength returns a length of leading specified characters.
TrimLeftSpace returns a subslice of the given string by slicing off all leading space characters.
TrimLeftSpaceLength returns a length of leading space characters.
TrimRight trims characters in the given s from tail of the source.
TrimRightLength returns a length of trailing specified characters.
TrimRightSpace returns a subslice of the given string by slicing off all trailing space characters.
TrimRightSpaceLength returns a length of trailing space characters.
UnescapePunctuations unescapes blackslash escaped punctuations.
URLEscape escape the given URL.
UTF8Len returns a byte length of the utf-8 character.
VisualizeSpaces visualize invisible space characters.
# Structs
A CopyOnWriteBuffer is a byte buffer that copies buffer when it need to be changed.
An HTML5Entity struct represents HTML5 entitites.
A PrioritizedValue struct holds pair of an arbitrary value and a priority.
# Interfaces
A BufWriter is a subset of the bufio.Writer .
BytesFilter is a efficient data structure for checking whether bytes exist or not.
# Type aliases
PrioritizedSlice is a slice of the PrioritizedValues.