]> git.ipfire.org Git - thirdparty/squid.git/commit - src/parser/Tokenizer.h
Various Tokenizer fixes
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 23 Jan 2015 06:16:02 +0000 (22:16 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 23 Jan 2015 06:16:02 +0000 (22:16 -0800)
commitb54f4137f97706a0026245d07f083eed9e77e9b4
tree483909b64885e3d5fd5f3dad6573ae72be25c292
parent093c6381470c901deafe53742b7b7126ea1d0581
Various Tokenizer fixes

Import prefix() method fix from parser-ng-requestline work.
- The prefix() when match reached a provided limit would consume and
  return the entire buffer contents instead of just the limited/matched
  range of bytes.

Extend int64() method:
- allow rejecting of numbers with a +/- symbol prefix.
- allow limiting of numeric conversion to a fixed character count
src/parser/Tokenizer.cc
src/parser/Tokenizer.h