Lines Matching defs:string
22 #include "src/objects/string-inl.h"
42 // Create a string builder with a buffer of the given size. The
64 // 0-characters; use the Finalize() method to terminate the string
72 // Add an entire string to the builder. Uses strlen() internally to
73 // compute the length of the input string.
80 // Add the first 'n' characters of the given 0-terminated string 's' to the
81 // builder. The input string must have enough characters.
115 // Finalize the string by 0-terminating it and returning the buffer.
126 // buffer while building the string.
290 // ES6 18.2.5 parseInt(string, radix) (with NumberParseIntHelper subclass);
471 NumberParseIntHelper(Isolate* isolate, Handle<String> string, int radix)
472 : StringToIntHelper(isolate, string, radix) {}
588 // Parse the longest part of the string starting at {current}
631 // Converts a string to a double value. Assumes the Iterator supports
812 // If leading_zeros is true then the string contains zeros.
813 // If exponent < 0 then string was [+-]\.0*...
814 // If significant_digits != 0 the string is not equal to 0.
815 // Otherwise there are no digits in the string.
914 double StringToInt(Isolate* isolate, Handle<String> string, int radix) {
915 NumberParseIntHelper helper(isolate, string, radix);
925 StringToBigIntHelper(IsolateT* isolate, Handle<String> string)
926 : StringToIntHelper<IsolateT>(isolate, string),
934 StringToBigIntHelper(IsolateT* isolate, const uint8_t* string, int length)
935 : StringToIntHelper<IsolateT>(isolate, string, length),
1020 MaybeHandle<BigInt> StringToBigInt(Isolate* isolate, Handle<String> string) {
1021 string = String::Flatten(isolate, string);
1022 StringToBigIntHelper<Isolate> helper(isolate, string);
1027 MaybeHandle<BigInt> BigIntLiteral(IsolateT* isolate, const char* string) {
1029 isolate, reinterpret_cast<const uint8_t*>(string),
1030 static_cast<int>(strlen(string)));
1034 MaybeHandle<BigInt> BigIntLiteral(Isolate* isolate, const char* string);
1037 const char* string);
1115 // Build the string backwards from the least significant digit.
1182 // Create the result string by appending a minus and putting in a
1349 // either way, with additional space for sign, decimal point and string
1415 // Add sign and terminate string.
1420 // Allocate new string as return value.
1426 // ES6 18.2.4 parseFloat(string)
1427 double StringToDouble(Isolate* isolate, Handle<String> string, int flags,
1429 Handle<String> flattened = String::Flatten(isolate, string);
1459 bool IsSpecialIndex(String string) {
1462 const int length = string.length();
1465 String::WriteToFlat(string, buffer, 0, length);
1503 // Slow path: test DoubleToString(StringToDouble(string)) == string.
1507 // Compute reverse string.