Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Annotation ¶
Annotation returns index where unparsed part starts. In case if the full string can be parsed, returns returns the index of the end of the input.
func NormalizeHybridChar ¶
NormalizeHybridChar substitutes hybrid chars 'X' or 'x' with the multiplication sign char.
Types ¶
type Preprocessor ¶
type Preprocessor struct {
Virus bool
NoParse bool
Approximate bool
Annotation bool
Body []byte
Tail []byte
}
func Preprocess ¶
func Preprocess(bs []byte) *Preprocessor
Preprocess runs a series of regular expressions over the input to determine features of the input before parsing.
Click to show internal directories.
Click to hide internal directories.