[parser] use String#search and String#substr instead of String#split
[parser] use String#search and String#substr instead of String#split

vastly improves performance of onprocessinginstruction and ondeclaration

fb55/htmlparser2,fb55/htmlparser2