Skip to content
  • mhahnenberg@apple.com's avatar
    Replace old strtod with new strtod · 7b69a48f
    mhahnenberg@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=68044
    
    Reviewed by Geoffrey Garen.
    
    * parser/Lexer.cpp: Added template argument. This version allows junk after numbers.
    (JSC::::lex):
    * runtime/JSGlobalObjectFunctions.cpp: Ditto.
    (JSC::parseInt):
    (JSC::jsStrDecimalLiteral):
    * runtime/LiteralParser.cpp: Ditto.
    (JSC::::Lexer::lexNumber):
    * wtf/dtoa.cpp: Replaced old strtod with a new version that uses the new StringToDoubleConverter.
    It takes a template argument to allow clients to determine statically whether it should allow 
    junk after the numbers or not.
    (WTF):
    (WTF::strtod):
    * wtf/dtoa.h:
    (WTF):
    * wtf/text/WTFString.cpp: Added template argument. This version does not allow junk after numbers.
    (WTF::toDoubleType):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    7b69a48f