From: Amos Jeffries Date: Tue, 27 May 2014 08:34:55 +0000 (-0700) Subject: Polish X-Git-Tag: SQUID_3_5_0_1~217^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=52ed45a1111f8f66030f369329d794b78ff9f308;p=thirdparty%2Fsquid.git Polish --- diff --git a/src/parser/Tokenizer.cc b/src/parser/Tokenizer.cc index 5fef298508..3c009c14b9 100644 --- a/src/parser/Tokenizer.cc +++ b/src/parser/Tokenizer.cc @@ -56,9 +56,8 @@ Parser::Tokenizer::skip(const char tokenChar) return false; } -// adapted from compatr/strtoll.c bool -Parser::Tokenizer::int64 (int64_t & result, int base) +Parser::Tokenizer::int64(int64_t & result, int base) { if (buf_.isEmpty()) return false; @@ -78,5 +77,4 @@ Parser::Tokenizer::int64 (int64_t & result, int base) buf_.consume(eon - buf_.rawContent()); // consume the parsed chunk result = rv; return true; - } diff --git a/src/parser/Tokenizer.h b/src/parser/Tokenizer.h index 677d628255..9436e9f19c 100644 --- a/src/parser/Tokenizer.h +++ b/src/parser/Tokenizer.h @@ -73,12 +73,13 @@ public: * at the beginning of the parse buffer, in the base specified by the user * or guesstimated; consumes the parsed characters. * - * \param result output value. Not touched if parseing is unsuccessful - * \param base specify base to do the parsing in, with the same restrictions - * as strtoll. Defaults to 0 (meaning guess) - * \return true if the parsing was successful + * \param result Output value. Not touched if parsing is unsuccessful. + * \param base Specify base to do the parsing in, with the same restrictions + * as strtoll. Defaults to 0 (meaning guess) + * + * \return whether the parsing was successful */ - bool int64 (int64_t &result, int base = 0); + bool int64(int64_t &result, int base = 0); private: SBuf buf_; ///< yet unparsed input