Further work for https://issues.apache.org/bugzilla/show_bug.cgi?id=56029
Review from kkolinko
- Fix bug in parsing functions and whitespace
- More efficient resetting of StringBuidler
- Use String.substring() for token and whitespace
- avoid unnecessary use of trim()

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1560023 13f79535-47bb-0310-9956-ffa450edef68
Fix line endings

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1560024 13f79535-47bb-0310-9956-ffa450edef68