Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fxv8 Namespace Reference

Functions

bool IsUndefined (v8::Local< v8::Value > value)
bool IsNull (v8::Local< v8::Value > value)
bool IsBoolean (v8::Local< v8::Value > value)
bool IsString (v8::Local< v8::Value > value)
bool IsNumber (v8::Local< v8::Value > value)
bool IsInteger (v8::Local< v8::Value > value)
bool IsObject (v8::Local< v8::Value > value)
bool IsArray (v8::Local< v8::Value > value)
bool IsDate (v8::Local< v8::Value > value)
bool IsFunction (v8::Local< v8::Value > value)
v8::Local< v8::Value > NewNullHelper (v8::Isolate *pIsolate)
v8::Local< v8::Value > NewUndefinedHelper (v8::Isolate *pIsolate)
v8::Local< v8::Number > NewNumberHelper (v8::Isolate *pIsolate, int number)
v8::Local< v8::Number > NewNumberHelper (v8::Isolate *pIsolate, double number)
v8::Local< v8::Number > NewNumberHelper (v8::Isolate *pIsolate, float number)
v8::Local< v8::Boolean > NewBooleanHelper (v8::Isolate *pIsolate, bool b)
v8::Local< v8::String > NewStringHelper (v8::Isolate *pIsolate, ByteStringView str)
v8::Local< v8::String > NewStringHelper (v8::Isolate *pIsolate, WideStringView str)
v8::Local< v8::Array > NewArrayHelper (v8::Isolate *pIsolate)
v8::Local< v8::Array > NewArrayHelper (v8::Isolate *pIsolate, pdfium::span< v8::Local< v8::Value > > values)
v8::Local< v8::Object > NewObjectHelper (v8::Isolate *pIsolate)
v8::Local< v8::Date > NewDateHelper (v8::Isolate *pIsolate, double d)
WideString ToWideString (v8::Isolate *pIsolate, v8::Local< v8::String > pValue)
ByteString ToByteString (v8::Isolate *pIsolate, v8::Local< v8::String > pValue)
int32_t ReentrantToInt32Helper (v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
bool ReentrantToBooleanHelper (v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
float ReentrantToFloatHelper (v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
double ReentrantToDoubleHelper (v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
WideString ReentrantToWideStringHelper (v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
ByteString ReentrantToByteStringHelper (v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
v8::Local< v8::Object > ReentrantToObjectHelper (v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
v8::Local< v8::Array > ReentrantToArrayHelper (v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
v8::Local< v8::Value > ReentrantGetObjectPropertyHelper (v8::Isolate *pIsolate, v8::Local< v8::Object > pObj, ByteStringView bsUTF8PropertyName)
std::vector< WideStringReentrantGetObjectPropertyNamesHelper (v8::Isolate *pIsolate, v8::Local< v8::Object > pObj)
bool ReentrantHasObjectOwnPropertyHelper (v8::Isolate *pIsolate, v8::Local< v8::Object > pObj, ByteStringView bsUTF8PropertyName)
bool ReentrantSetObjectOwnPropertyHelper (v8::Isolate *pIsolate, v8::Local< v8::Object > pObj, ByteStringView bsUTF8PropertyName, v8::Local< v8::Value > pValue)
bool ReentrantPutObjectPropertyHelper (v8::Isolate *pIsolate, v8::Local< v8::Object > pObj, ByteStringView bsUTF8PropertyName, v8::Local< v8::Value > pPut)
void ReentrantDeleteObjectPropertyHelper (v8::Isolate *pIsolate, v8::Local< v8::Object > pObj, ByteStringView bsUTF8PropertyName)
bool ReentrantPutArrayElementHelper (v8::Isolate *pIsolate, v8::Local< v8::Array > pArray, size_t index, v8::Local< v8::Value > pValue)
v8::Local< v8::Value > ReentrantGetArrayElementHelper (v8::Isolate *pIsolate, v8::Local< v8::Array > pArray, size_t index)
size_t GetArrayLengthHelper (v8::Local< v8::Array > pArray)
void ThrowExceptionHelper (v8::Isolate *pIsolate, ByteStringView str)
void ThrowExceptionHelper (v8::Isolate *pIsolate, WideStringView str)

Function Documentation

◆ GetArrayLengthHelper()

size_t fxv8::GetArrayLengthHelper ( v8::Local< v8::Array > pArray)

Definition at line 326 of file fxv8.cpp.

◆ IsArray()

◆ IsBoolean()

bool fxv8::IsBoolean ( v8::Local< v8::Value > value)

Definition at line 28 of file fxv8.cpp.

Referenced by CFXJSEFormCalcContextEmbedderTest::ExecuteExpectBool(), CFXJSE_FormCalcContext::HasValue(), and CFXJSE_FormCalcContext::Ref().

Here is the caller graph for this function:

◆ IsDate()

bool fxv8::IsDate ( v8::Local< v8::Value > value)

Definition at line 52 of file fxv8.cpp.

◆ IsFunction()

bool fxv8::IsFunction ( v8::Local< v8::Value > value)

Definition at line 56 of file fxv8.cpp.

◆ IsInteger()

bool fxv8::IsInteger ( v8::Local< v8::Value > value)

Definition at line 40 of file fxv8.cpp.

Referenced by CFXJSEFormCalcContextEmbedderTest::ExecuteExpectBool(), and CFXJSEFormCalcContextEmbedderTest::ExecuteExpectInt32().

Here is the caller graph for this function:

◆ IsNull()

bool fxv8::IsNull ( v8::Local< v8::Value > value)

Definition at line 24 of file fxv8.cpp.

Referenced by CFXJSE_FormCalcContext::assign_value_operator(), CFXJSE_FormCalcContext::Choose(), CFXJSE_FormCalcContext::DateFmt(), CFXJSE_FormCalcContext::divide_operator(), CFXJSE_FormCalcContext::equality_operator(), CFXJSEFormCalcContextEmbedderTest::ExecuteExpectNull(), CFXJSE_FormCalcContext::fm_ref_equal(), CFXJSE_FormCalcContext::fm_var_filter(), CFXJSE_FormCalcContext::get_fm_value(), CFXJSE_FormCalcContext::greater_operator(), CFXJSE_FormCalcContext::greaterequal_operator(), CFXJSE_FormCalcContext::IsoDate2Num(), CFXJSE_FormCalcContext::less_operator(), CFXJSE_FormCalcContext::lessequal_operator(), CFXJSE_FormCalcContext::LocalDateFmt(), CFXJSE_FormCalcContext::LocalTimeFmt(), CFXJSE_FormCalcContext::logical_and_operator(), CFXJSE_FormCalcContext::logical_not_operator(), CFXJSE_FormCalcContext::logical_or_operator(), CFXJSE_FormCalcContext::minus_operator(), CFXJSE_FormCalcContext::Mod(), CFXJSE_FormCalcContext::multiple_operator(), CFXJSE_FormCalcContext::negative_operator(), CFXJSE_FormCalcContext::notequality_operator(), CFXJSE_FormCalcContext::Num2GMTime(), CFXJSE_FormCalcContext::Num2Time(), CFXJSE_FormCalcContext::positive_operator(), CFXJSE_FormCalcContext::Ref(), CFXJSE_FormCalcContext::Round(), CFXJSE_FormCalcContext::Space(), CFXJSE_FormCalcContext::Str(), CFXJSE_FormCalcContext::Stuff(), CFXJSE_FormCalcContext::TimeFmt(), CFXJSE_FormCalcContext::UnitType(), CFXJSE_FormCalcContext::UnitValue(), CFXJSE_FormCalcContext::Within(), and CFXJSE_FormCalcContext::WordNum().

Here is the caller graph for this function:

◆ IsNumber()

bool fxv8::IsNumber ( v8::Local< v8::Value > value)

Definition at line 36 of file fxv8.cpp.

Referenced by CFXJSEFormCalcContextEmbedderTest::ExecuteExpectFloat(), CFXJSEFormCalcContextEmbedderTest::ExecuteExpectFloatNear(), CFXJSEFormCalcContextEmbedderTest::ExecuteExpectNaN(), CFXJSE_FormCalcContext::HasValue(), CFXJSE_FormCalcContext::Ref(), and CFXJSE_FormCalcContext::Within().

Here is the caller graph for this function:

◆ IsObject()

bool fxv8::IsObject ( v8::Local< v8::Value > value)

Definition at line 44 of file fxv8.cpp.

Referenced by CFXJSE_FormCalcContext::assign_value_operator(), CFXJSE_FormCalcContext::Choose(), CFXJSE_FormCalcContext::Exists(), CFXJSE_FormCalcContext::get_fm_value(), CFXJSE_FormCalcContext::is_fm_object(), and CFXJSE_FormCalcContext::Ref().

Here is the caller graph for this function:

◆ IsString()

◆ IsUndefined()

bool fxv8::IsUndefined ( v8::Local< v8::Value > value)

Definition at line 20 of file fxv8.cpp.

Referenced by CFXJSE_Engine::GlobalPropertySetter().

Here is the caller graph for this function:

◆ NewArrayHelper() [1/2]

v8::Local< v8::Array > fxv8::NewArrayHelper ( v8::Isolate * pIsolate)

Definition at line 97 of file fxv8.cpp.

◆ NewArrayHelper() [2/2]

v8::Local< v8::Array > fxv8::NewArrayHelper ( v8::Isolate * pIsolate,
pdfium::span< v8::Local< v8::Value > > values )

Definition at line 101 of file fxv8.cpp.

References ReentrantPutArrayElementHelper().

Here is the call graph for this function:

◆ NewBooleanHelper()

v8::Local< v8::Boolean > fxv8::NewBooleanHelper ( v8::Isolate * pIsolate,
bool b )

Definition at line 80 of file fxv8.cpp.

◆ NewDateHelper()

v8::Local< v8::Date > fxv8::NewDateHelper ( v8::Isolate * pIsolate,
double d )

Definition at line 116 of file fxv8.cpp.

◆ NewNullHelper()

v8::Local< v8::Value > fxv8::NewNullHelper ( v8::Isolate * pIsolate)

Definition at line 60 of file fxv8.cpp.

◆ NewNumberHelper() [1/3]

v8::Local< v8::Number > fxv8::NewNumberHelper ( v8::Isolate * pIsolate,
double number )

Definition at line 72 of file fxv8.cpp.

◆ NewNumberHelper() [2/3]

v8::Local< v8::Number > fxv8::NewNumberHelper ( v8::Isolate * pIsolate,
float number )

Definition at line 76 of file fxv8.cpp.

◆ NewNumberHelper() [3/3]

v8::Local< v8::Number > fxv8::NewNumberHelper ( v8::Isolate * pIsolate,
int number )

Definition at line 68 of file fxv8.cpp.

◆ NewObjectHelper()

v8::Local< v8::Object > fxv8::NewObjectHelper ( v8::Isolate * pIsolate)

Definition at line 112 of file fxv8.cpp.

◆ NewStringHelper() [1/2]

v8::Local< v8::String > fxv8::NewStringHelper ( v8::Isolate * pIsolate,
ByteStringView str )

Definition at line 84 of file fxv8.cpp.

◆ NewStringHelper() [2/2]

v8::Local< v8::String > fxv8::NewStringHelper ( v8::Isolate * pIsolate,
WideStringView str )

Definition at line 92 of file fxv8.cpp.

◆ NewUndefinedHelper()

v8::Local< v8::Value > fxv8::NewUndefinedHelper ( v8::Isolate * pIsolate)

Definition at line 64 of file fxv8.cpp.

◆ ReentrantDeleteObjectPropertyHelper()

void fxv8::ReentrantDeleteObjectPropertyHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Object > pObj,
ByteStringView bsUTF8PropertyName )

Definition at line 286 of file fxv8.cpp.

Referenced by CFXJSE_Value::DeleteObjectProperty().

Here is the caller graph for this function:

◆ ReentrantGetArrayElementHelper()

v8::Local< v8::Value > fxv8::ReentrantGetArrayElementHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Array > pArray,
size_t index )

Definition at line 309 of file fxv8.cpp.

◆ ReentrantGetObjectPropertyHelper()

v8::Local< v8::Value > fxv8::ReentrantGetObjectPropertyHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Object > pObj,
ByteStringView bsUTF8PropertyName )

Definition at line 210 of file fxv8.cpp.

◆ ReentrantGetObjectPropertyNamesHelper()

std::vector< WideString > fxv8::ReentrantGetObjectPropertyNamesHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Object > pObj )

Definition at line 227 of file fxv8.cpp.

◆ ReentrantHasObjectOwnPropertyHelper()

bool fxv8::ReentrantHasObjectOwnPropertyHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Object > pObj,
ByteStringView bsUTF8PropertyName )

Definition at line 247 of file fxv8.cpp.

◆ ReentrantPutArrayElementHelper()

bool fxv8::ReentrantPutArrayElementHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Array > pArray,
size_t index,
v8::Local< v8::Value > pValue )

Definition at line 295 of file fxv8.cpp.

Referenced by NewArrayHelper().

Here is the caller graph for this function:

◆ ReentrantPutObjectPropertyHelper()

bool fxv8::ReentrantPutObjectPropertyHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Object > pObj,
ByteStringView bsUTF8PropertyName,
v8::Local< v8::Value > pPut )

Definition at line 273 of file fxv8.cpp.

Referenced by CFXJSE_FormCalcContext::assign_value_operator(), and CFXJSE_Value::SetObjectProperty().

Here is the caller graph for this function:

◆ ReentrantSetObjectOwnPropertyHelper()

bool fxv8::ReentrantSetObjectOwnPropertyHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Object > pObj,
ByteStringView bsUTF8PropertyName,
v8::Local< v8::Value > pValue )

Definition at line 260 of file fxv8.cpp.

Referenced by CFXJSE_Value::SetObjectOwnProperty().

Here is the caller graph for this function:

◆ ReentrantToArrayHelper()

v8::Local< v8::Array > fxv8::ReentrantToArrayHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Value > pValue )

Definition at line 200 of file fxv8.cpp.

◆ ReentrantToBooleanHelper()

bool fxv8::ReentrantToBooleanHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Value > pValue )

Definition at line 141 of file fxv8.cpp.

Referenced by CFXJSEFormCalcContextEmbedderTest::ExecuteExpectBool(), CFXJSE_FormCalcContext::If(), and CFXJSE_Value::ToBoolean().

Here is the caller graph for this function:

◆ ReentrantToByteStringHelper()

◆ ReentrantToDoubleHelper()

double fxv8::ReentrantToDoubleHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Value > pValue )

Definition at line 154 of file fxv8.cpp.

Referenced by CFXJSEFormCalcContextEmbedderTest::ExecuteExpectNaN(), and CFXJSE_Value::ToDouble().

Here is the caller graph for this function:

◆ ReentrantToFloatHelper()

float fxv8::ReentrantToFloatHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Value > pValue )

Definition at line 149 of file fxv8.cpp.

Referenced by CFXJSEFormCalcContextEmbedderTest::ExecuteExpectFloat(), and CFXJSEFormCalcContextEmbedderTest::ExecuteExpectFloatNear().

Here is the caller graph for this function:

◆ ReentrantToInt32Helper()

int fxv8::ReentrantToInt32Helper ( v8::Isolate * pIsolate,
v8::Local< v8::Value > pValue )

Definition at line 134 of file fxv8.cpp.

Referenced by CFXJSEFormCalcContextEmbedderTest::ExecuteExpectInt32(), CFXJSE_FormCalcContext::fm_ref_equal(), CFXJSE_FormCalcContext::fm_var_filter(), and CFXJSE_Value::ToInteger().

Here is the caller graph for this function:

◆ ReentrantToObjectHelper()

v8::Local< v8::Object > fxv8::ReentrantToObjectHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Value > pValue )

Definition at line 190 of file fxv8.cpp.

◆ ReentrantToWideStringHelper()

WideString fxv8::ReentrantToWideStringHelper ( v8::Isolate * pIsolate,
v8::Local< v8::Value > pValue )

Definition at line 162 of file fxv8.cpp.

◆ ThrowExceptionHelper() [1/2]

void fxv8::ThrowExceptionHelper ( v8::Isolate * pIsolate,
ByteStringView str )

Definition at line 332 of file fxv8.cpp.

◆ ThrowExceptionHelper() [2/2]

void fxv8::ThrowExceptionHelper ( v8::Isolate * pIsolate,
WideStringView str )

Definition at line 336 of file fxv8.cpp.

Referenced by CFXJS_ObjDefinition::CallHandler(), and CFXJS_Engine::Error().

Here is the caller graph for this function:

◆ ToByteString()

ByteString fxv8::ToByteString ( v8::Isolate * pIsolate,
v8::Local< v8::String > pValue )

Definition at line 128 of file fxv8.cpp.

Referenced by TEST_F().

Here is the caller graph for this function:

◆ ToWideString()

WideString fxv8::ToWideString ( v8::Isolate * pIsolate,
v8::Local< v8::String > pValue )

Definition at line 122 of file fxv8.cpp.