Guard against nullptr in number parsing utilities
authorqining <qining@google.com>
Tue, 13 Sep 2016 15:57:02 +0000 (11:57 -0400)
committerqining <qining@google.com>
Tue, 13 Sep 2016 16:12:31 +0000 (12:12 -0400)
commit5ac63523d76c429cb853fbb3ec5c6614773613b3
treefc099061ad8bcc4b5b2cf539f8173d1124ff914c
parentabf57933eaa803949d1facb23e7b79dfc02db960
Guard against nullptr in number parsing utilities

ParseNumber(): Returns false if the given string is a nullptr.
ParseAndEncodeXXXX(): Returns kInvalidText and populate error message:
  "The given text is a nullptr", if the givne string is a nullptr.
source/util/parse_number.cpp
source/util/parse_number.h
test/ParseNumber.cpp