blob: 75e60b029e34ae6ac138e669b0631a558ce5894f [file] [log] [blame]
Steve Block6ded16b2010-05-10 14:33:55 +01001// Copyright 2010 the V8 project authors. All rights reserved.
Ben Murdochb8a8cc12014-11-26 15:28:44 +00002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
Steve Blocka7e24c12009-10-30 11:49:00 +00004
Ben Murdochf87a2032010-10-22 12:50:53 +01005#ifndef V8_STRTOD_H_
6#define V8_STRTOD_H_
Steve Blocka7e24c12009-10-30 11:49:00 +00007
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00008#include "src/vector.h"
9
Steve Blocka7e24c12009-10-30 11:49:00 +000010namespace v8 {
11namespace internal {
12
Ben Murdochf87a2032010-10-22 12:50:53 +010013// The buffer must only contain digits in the range [0-9]. It must not
14// contain a dot or a sign. It must not start with '0', and must not be empty.
15double Strtod(Vector<const char> buffer, int exponent);
Steve Blocka7e24c12009-10-30 11:49:00 +000016
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000017} // namespace internal
18} // namespace v8
Ben Murdochf87a2032010-10-22 12:50:53 +010019
20#endif // V8_STRTOD_H_