v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::StringToIntHelper Class Referenceabstract
Inheritance diagram for v8::internal::StringToIntHelper:
Collaboration diagram for v8::internal::StringToIntHelper:

Public Member Functions

 StringToIntHelper (DirectHandle< String > subject, int radix)
 
 StringToIntHelper (const uint8_t *subject, int radix, size_t length)
 
 StringToIntHelper (const base::uc16 *subject, int radix, size_t length)
 
 StringToIntHelper (DirectHandle< String > subject)
 
 StringToIntHelper (const uint8_t *subject, size_t length)
 
virtual ~StringToIntHelper ()=default
 

Protected Member Functions

virtual void ParseOneByte (const uint8_t *start)=0
 
virtual void ParseTwoByte (const base::uc16 *start)=0
 
void ParseInt ()
 
void set_allow_binary_and_octal_prefixes ()
 
void set_disallow_trailing_junk ()
 
bool allow_trailing_junk ()
 
bool IsOneByte () const
 
base::Vector< const uint8_t > GetOneByteVector (const DisallowGarbageCollection &no_gc)
 
base::Vector< const base::uc16GetTwoByteVector (const DisallowGarbageCollection &no_gc)
 
int radix ()
 
size_t cursor ()
 
size_t length ()
 
bool negative ()
 
Sign sign ()
 
State state ()
 
void set_state (State state)
 

Private Member Functions

template<class Char >
void DetectRadixInternal (const Char *current, size_t length)
 

Private Attributes

DirectHandle< Stringsubject_
 
const uint8_t * raw_one_byte_subject_ = nullptr
 
const base::uc16raw_two_byte_subject_ = nullptr
 
int radix_ = 0
 
size_t cursor_ = 0
 
size_t length_ = 0
 
Sign sign_ = Sign::kNone
 
bool leading_zero_ = false
 
bool allow_binary_and_octal_prefixes_ = false
 
bool allow_trailing_junk_ = true
 
State state_ = State::kRunning
 

Detailed Description

Definition at line 302 of file conversions.cc.

Constructor & Destructor Documentation

◆ StringToIntHelper() [1/5]

v8::internal::StringToIntHelper::StringToIntHelper ( DirectHandle< String > subject,
int radix )
inline

Definition at line 304 of file conversions.cc.

◆ StringToIntHelper() [2/5]

v8::internal::StringToIntHelper::StringToIntHelper ( const uint8_t * subject,
int radix,
size_t length )
inline

Definition at line 310 of file conversions.cc.

◆ StringToIntHelper() [3/5]

v8::internal::StringToIntHelper::StringToIntHelper ( const base::uc16 * subject,
int radix,
size_t length )
inline

Definition at line 313 of file conversions.cc.

◆ StringToIntHelper() [4/5]

v8::internal::StringToIntHelper::StringToIntHelper ( DirectHandle< String > subject)
inlineexplicit

Definition at line 317 of file conversions.cc.

◆ StringToIntHelper() [5/5]

v8::internal::StringToIntHelper::StringToIntHelper ( const uint8_t * subject,
size_t length )
inline

Definition at line 323 of file conversions.cc.

◆ ~StringToIntHelper()

virtual v8::internal::StringToIntHelper::~StringToIntHelper ( )
virtualdefault

Member Function Documentation

◆ allow_trailing_junk()

bool v8::internal::StringToIntHelper::allow_trailing_junk ( )
inlineprotected

Definition at line 341 of file conversions.cc.

Here is the caller graph for this function:

◆ cursor()

size_t v8::internal::StringToIntHelper::cursor ( )
inlineprotected

Definition at line 366 of file conversions.cc.

Here is the caller graph for this function:

◆ DetectRadixInternal()

template<class Char >
void v8::internal::StringToIntHelper::DetectRadixInternal ( const Char * current,
size_t length )
private

Definition at line 406 of file conversions.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetOneByteVector()

base::Vector< const uint8_t > v8::internal::StringToIntHelper::GetOneByteVector ( const DisallowGarbageCollection & no_gc)
inlineprotected

Definition at line 349 of file conversions.cc.

Here is the caller graph for this function:

◆ GetTwoByteVector()

base::Vector< const base::uc16 > v8::internal::StringToIntHelper::GetTwoByteVector ( const DisallowGarbageCollection & no_gc)
inlineprotected

Definition at line 357 of file conversions.cc.

Here is the caller graph for this function:

◆ IsOneByte()

bool v8::internal::StringToIntHelper::IsOneByte ( ) const
inlineprotected

Definition at line 343 of file conversions.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ length()

size_t v8::internal::StringToIntHelper::length ( )
inlineprotected

Definition at line 367 of file conversions.cc.

Here is the caller graph for this function:

◆ negative()

bool v8::internal::StringToIntHelper::negative ( )
inlineprotected

Definition at line 368 of file conversions.cc.

Here is the caller graph for this function:

◆ ParseInt()

void v8::internal::StringToIntHelper::ParseInt ( )
protected

Definition at line 390 of file conversions.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseOneByte()

virtual void v8::internal::StringToIntHelper::ParseOneByte ( const uint8_t * start)
protectedpure virtual

Implemented in v8::internal::NumberParseIntHelper, and v8::internal::StringToBigIntHelper< IsolateT >.

Here is the caller graph for this function:

◆ ParseTwoByte()

virtual void v8::internal::StringToIntHelper::ParseTwoByte ( const base::uc16 * start)
protectedpure virtual

Implemented in v8::internal::NumberParseIntHelper, and v8::internal::StringToBigIntHelper< IsolateT >.

Here is the caller graph for this function:

◆ radix()

int v8::internal::StringToIntHelper::radix ( )
inlineprotected

Definition at line 365 of file conversions.cc.

Here is the caller graph for this function:

◆ set_allow_binary_and_octal_prefixes()

void v8::internal::StringToIntHelper::set_allow_binary_and_octal_prefixes ( )
inlineprotected

Definition at line 337 of file conversions.cc.

Here is the caller graph for this function:

◆ set_disallow_trailing_junk()

void v8::internal::StringToIntHelper::set_disallow_trailing_junk ( )
inlineprotected

Definition at line 340 of file conversions.cc.

Here is the caller graph for this function:

◆ set_state()

void v8::internal::StringToIntHelper::set_state ( State state)
inlineprotected

Definition at line 371 of file conversions.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sign()

Sign v8::internal::StringToIntHelper::sign ( )
inlineprotected

Definition at line 369 of file conversions.cc.

Here is the caller graph for this function:

◆ state()

State v8::internal::StringToIntHelper::state ( )
inlineprotected

Definition at line 370 of file conversions.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ allow_binary_and_octal_prefixes_

bool v8::internal::StringToIntHelper::allow_binary_and_octal_prefixes_ = false
private

Definition at line 385 of file conversions.cc.

◆ allow_trailing_junk_

bool v8::internal::StringToIntHelper::allow_trailing_junk_ = true
private

Definition at line 386 of file conversions.cc.

◆ cursor_

size_t v8::internal::StringToIntHelper::cursor_ = 0
private

Definition at line 381 of file conversions.cc.

◆ leading_zero_

bool v8::internal::StringToIntHelper::leading_zero_ = false
private

Definition at line 384 of file conversions.cc.

◆ length_

size_t v8::internal::StringToIntHelper::length_ = 0
private

Definition at line 382 of file conversions.cc.

◆ radix_

int v8::internal::StringToIntHelper::radix_ = 0
private

Definition at line 380 of file conversions.cc.

◆ raw_one_byte_subject_

const uint8_t* v8::internal::StringToIntHelper::raw_one_byte_subject_ = nullptr
private

Definition at line 378 of file conversions.cc.

◆ raw_two_byte_subject_

const base::uc16* v8::internal::StringToIntHelper::raw_two_byte_subject_ = nullptr
private

Definition at line 379 of file conversions.cc.

◆ sign_

Sign v8::internal::StringToIntHelper::sign_ = Sign::kNone
private

Definition at line 383 of file conversions.cc.

◆ state_

State v8::internal::StringToIntHelper::state_ = State::kRunning
private

Definition at line 387 of file conversions.cc.

◆ subject_

DirectHandle<String> v8::internal::StringToIntHelper::subject_
private

Definition at line 377 of file conversions.cc.


The documentation for this class was generated from the following file: