Fixed up remaining cc patterns for UTF-16LE.
Fixed up remaining telephone patterns for UTF-16LE (but have not yet
fixed valid_phone()).
Refactor user-specified patterns so that scan_find and scan_lightgrep each do its own parsing of the patterns. Re-enables scan_lightgrep with user-specified patterns.
Moved low UTF-16LE converter to a util file. valid_ether_addr now
expects a byte buffer. MAC address pattern now works for UTF-16LE.
IP address pattern now enabled for UTF-16LE.
Local struct is const.
Added missing encoding vector.
find_domain_in_email() returns the second byte of the '@' when used on in UTF-16LE. Add 1 to fix that.
Use lg_search_resolve() for resolving any hits that may start in the page but cross into the next page. This is generally able to avoid searching the whole margin, and will not generate any hits after the page margin.
Added a handler for the email pattern in UTF-16LE. No need to check for
consecutive dots since the pattern now precludes that.
Removed bounded repetition from RFC822 patterns. Cleanup.
Partial implementation of proto hit handler for UTF-16LE.
Finished implementation of proto hit handler for UTF-16LE.
Extracted IP address validator to a helper function.
Whitespace.
valid_ipaddr now expects real hit start (excluding leading context).
IP address pattern now works for UTF-16LE.
Fixed bad computation of c0.
Added PatternScanner::finishScan() so scanners can be notified when their associated sbuf has been finished. Amended regcomp() stderr message.
Match length has to be -1 due to throwing away leading character in
PHONETEXT pattern.