DescriptionUse a local variable as a character cursor in genericParseNumber
Don't move the 'out' variable |cursor| until a valid number has been
parsed (disregarding the leading whitespace).
This will allow generating better error messages in some cases (the cursor
will not "stop" randomly within the number upon encountering overflows
etc.). It also enables "re-parsing" although currently no call-sites
require that. Code size virtually unaffected (-7 for LChar, +2 for UChar.)
BUG=231612
Committed: https://crrev.com/f16520b843b6214481015adf4a8372d2e47f3dea
Cr-Commit-Position: refs/heads/master@{#369391}
Patch Set 1 #Patch Set 2 : Rebase. #Patch Set 3 : Rebase #Messages
Total messages: 11 (4 generated)
|