Index: src/conversions.h |
diff --git a/src/conversions.h b/src/conversions.h |
index f850f581f06a573dd954401651aa02b36ed95147..c8484e448bec6fb82db0141cd65002f2bbda179f 100644 |
--- a/src/conversions.h |
+++ b/src/conversions.h |
@@ -122,7 +122,7 @@ enum ConversionFlags { |
// Converts a string into a double value according to ECMA-262 9.3.1 |
double StringToDouble(UnicodeCache* unicode_cache, |
- Vector<const char> str, |
+ Vector<const uint8_t> str, |
int flags, |
double empty_string_val = 0); |
double StringToDouble(UnicodeCache* unicode_cache, |
@@ -135,6 +135,16 @@ double StringToDouble(UnicodeCache* unicode_cache, |
int flags, |
double empty_string_val = 0); |
+// Converts a string into an integer. |
+double StringToInt(UnicodeCache* unicode_cache, |
+ Vector<const uint8_t> vector, |
+ int radix); |
+ |
+ |
+double StringToInt(UnicodeCache* unicode_cache, |
+ Vector<const uc16> vector, |
+ int radix); |
+ |
const int kDoubleToCStringMinBufferSize = 100; |
// Converts a double to a string value according to ECMA-262 9.8.1. |