Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qv4numberobject.cpp File Reference

(8b6a9403bf2e04d34b9b07d2780186029fab99d0)

#include "qv4numberobject_p.h"
#include "qv4runtime_p.h"
#include <QtCore/qnumeric.h>
#include <QtCore/qmath.h>
#include <QtCore/QDebug>
#include <cassert>
#include <limits>
+ Include dependency graph for qv4numberobject.cpp:

Go to the source code of this file.

Classes

struct  NumberLocaleHolder
 

Functions

 DEFINE_OBJECT_VTABLE (NumberCtor)
 
 DEFINE_OBJECT_VTABLE (NumberObject)
 
ReturnedValue thisNumberValue (ExecutionEngine *v4, const Value *thisObject)
 
double thisNumber (ExecutionEngine *engine, const Value *thisObject)
 

Function Documentation

◆ DEFINE_OBJECT_VTABLE() [1/2]

DEFINE_OBJECT_VTABLE ( NumberCtor )

◆ DEFINE_OBJECT_VTABLE() [2/2]

DEFINE_OBJECT_VTABLE ( NumberObject )

◆ thisNumber()

double thisNumber ( ExecutionEngine * engine,
const Value * thisObject )
inline

Definition at line 110 of file qv4numberobject.cpp.

References QV4::Value::as(), QV4::StaticValue::asDouble(), engine, and QV4::StaticValue::isNumber().

Referenced by QV4::NumberPrototype::method_toExponential(), QV4::NumberPrototype::method_toFixed(), and QV4::NumberPrototype::method_toString().

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

◆ thisNumberValue()

ReturnedValue thisNumberValue ( ExecutionEngine * v4,
const Value * thisObject )
inline

Definition at line 98 of file qv4numberobject.cpp.

References QV4::Value::as(), QV4::StaticValue::asReturnedValue(), QV4::StaticValue::isNumber(), QV4::ExecutionEngine::throwTypeError(), and QV4::Encode::undefined().

Referenced by QV4::NumberPrototype::method_toLocaleString(), QV4::NumberPrototype::method_toPrecision(), and QV4::NumberPrototype::method_valueOf().

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