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
CFXJSE_FormCalcContext Class Referencefinal

#include <cfxjse_formcalc_context.h>

Inheritance diagram for CFXJSE_FormCalcContext:
Collaboration diagram for CFXJSE_FormCalcContext:

Public Member Functions

 CFXJSE_FormCalcContext (v8::Isolate *pIsolate, CFXJSE_Context *pScriptContext, CXFA_Document *pDoc)
 ~CFXJSE_FormCalcContext () override
CFXJSE_FormCalcContextAsFormCalcContext () override
v8::Local< v8::Value > GlobalPropertyGetter ()
v8::Isolate * GetIsolate () const
CXFA_DocumentGetDocument () const
Public Member Functions inherited from CFXJSE_HostObject
virtual ~CFXJSE_HostObject ()
virtual CJX_ObjectAsCJXObject ()
v8::Local< v8::Object > NewBoundV8Object (v8::Isolate *pIsolate, v8::Local< v8::FunctionTemplate > tmpl)

Static Public Member Functions

static void Abs (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Avg (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Ceil (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Count (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Floor (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Max (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Min (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Mod (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Round (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Sum (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Date (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Date2Num (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void DateFmt (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void IsoDate2Num (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void IsoTime2Num (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void LocalDateFmt (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void LocalTimeFmt (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Num2Date (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Num2GMTime (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Num2Time (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Time (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Time2Num (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void TimeFmt (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static ByteString Local2IsoDate (CFXJSE_HostObject *pThis, ByteStringView bsDate, ByteStringView bsFormat, ByteStringView bsLocale)
static ByteString IsoDate2Local (CFXJSE_HostObject *pThis, ByteStringView bsDate, ByteStringView bsFormat, ByteStringView bsLocale)
static ByteString IsoTime2Local (CFXJSE_HostObject *pThis, ByteStringView bsTime, ByteStringView bsFormat, ByteStringView bsLocale)
static ByteString GetLocalDateFormat (CFXJSE_HostObject *pThis, int32_t iStyle, ByteStringView bsLocale, bool bStandard)
static ByteString GetLocalTimeFormat (CFXJSE_HostObject *pThis, int32_t iStyle, ByteStringView bsLocale, bool bStandard)
static ByteString GetStandardDateFormat (CFXJSE_HostObject *pThis, int32_t iStyle, ByteStringView bsLocale)
static ByteString GetStandardTimeFormat (CFXJSE_HostObject *pThis, int32_t iStyle, ByteStringView bsLocale)
static ByteString Num2AllTime (CFXJSE_HostObject *pThis, int32_t iTime, ByteStringView bsFormat, ByteStringView bsLocale, bool bGM)
static void Apr (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void CTerm (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void FV (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void IPmt (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void NPV (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Pmt (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void PPmt (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void PV (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Rate (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Term (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Choose (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Exists (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void HasValue (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Oneof (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Within (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void If (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Eval (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Ref (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void UnitType (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void UnitValue (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void At (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Concat (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Decode (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Encode (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Format (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Left (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Len (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Lower (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Ltrim (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Parse (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Replace (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Right (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Rtrim (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Space (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Str (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Stuff (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Substr (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Uuid (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Upper (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void WordNum (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Get (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Post (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Put (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void assign_value_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void logical_or_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void logical_and_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void equality_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void notequality_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static bool fm_ref_equal (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void less_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void lessequal_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void greater_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void greaterequal_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void plus_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void minus_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void multiple_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void divide_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void positive_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void negative_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void logical_not_operator (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void dot_accessor (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void dotdot_accessor (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void eval_translation (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void is_fm_object (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void is_fm_array (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void get_fm_value (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void get_fm_jsobj (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void fm_var_filter (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void concat_fm_object (CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static std::optional< WideTextBufferTranslate (cppgc::Heap *pHeap, WideStringView wsFormcalc)
Static Public Member Functions inherited from CFXJSE_HostObject
static CFXJSE_HostObjectFromV8 (v8::Local< v8::Value > arg)

Friends

class FormCalcContextTest_GenerateSomExpression_Test
class FormCalcContextTest_IsIsoDateFormat_Test
class FormCalcContextTest_IsIsoTimeFormat_Test

Additional Inherited Members

Protected Member Functions inherited from CFXJSE_HostObject
 CFXJSE_HostObject ()

Detailed Description

Definition at line 30 of file cfxjse_formcalc_context.h.

Constructor & Destructor Documentation

◆ CFXJSE_FormCalcContext()

CFXJSE_FormCalcContext::CFXJSE_FormCalcContext ( v8::Isolate * pIsolate,
CFXJSE_Context * pScriptContext,
CXFA_Document * pDoc )

Definition at line 5021 of file cfxjse_formcalc_context.cpp.

◆ ~CFXJSE_FormCalcContext()

CFXJSE_FormCalcContext::~CFXJSE_FormCalcContext ( )
overridedefault

Member Function Documentation

◆ Abs()

void CFXJSE_FormCalcContext::Abs ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1369 of file cfxjse_formcalc_context.cpp.

◆ Apr()

void CFXJSE_FormCalcContext::Apr ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2369 of file cfxjse_formcalc_context.cpp.

◆ AsFormCalcContext()

CFXJSE_FormCalcContext * CFXJSE_FormCalcContext::AsFormCalcContext ( )
overridevirtual

Reimplemented from CFXJSE_HostObject.

Definition at line 5034 of file cfxjse_formcalc_context.cpp.

◆ assign_value_operator()

void CFXJSE_FormCalcContext::assign_value_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4330 of file cfxjse_formcalc_context.cpp.

◆ At()

void CFXJSE_FormCalcContext::At ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3316 of file cfxjse_formcalc_context.cpp.

◆ Avg()

void CFXJSE_FormCalcContext::Avg ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1389 of file cfxjse_formcalc_context.cpp.

◆ Ceil()

void CFXJSE_FormCalcContext::Ceil ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1410 of file cfxjse_formcalc_context.cpp.

◆ Choose()

void CFXJSE_FormCalcContext::Choose ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2788 of file cfxjse_formcalc_context.cpp.

◆ Concat()

void CFXJSE_FormCalcContext::Concat ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3345 of file cfxjse_formcalc_context.cpp.

◆ concat_fm_object()

void CFXJSE_FormCalcContext::concat_fm_object ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4944 of file cfxjse_formcalc_context.cpp.

References fxv8::IsArray().

Here is the call graph for this function:

◆ Count()

void CFXJSE_FormCalcContext::Count ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1428 of file cfxjse_formcalc_context.cpp.

◆ CTerm()

void CFXJSE_FormCalcContext::CTerm ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2423 of file cfxjse_formcalc_context.cpp.

◆ Date()

void CFXJSE_FormCalcContext::Date ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1603 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::Format(), and FXSYS_time().

Here is the call graph for this function:

◆ Date2Num()

void CFXJSE_FormCalcContext::Date2Num ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1622 of file cfxjse_formcalc_context.cpp.

References Local2IsoDate().

Here is the call graph for this function:

◆ DateFmt()

void CFXJSE_FormCalcContext::DateFmt ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1665 of file cfxjse_formcalc_context.cpp.

References GetStandardDateFormat().

Here is the call graph for this function:

◆ Decode()

void CFXJSE_FormCalcContext::Decode ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3374 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::EqualNoCase(), fxcrt::WideString::FromUTF8(), and fxcrt::WideString::operator=().

Here is the call graph for this function:

◆ divide_operator()

void CFXJSE_FormCalcContext::divide_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4698 of file cfxjse_formcalc_context.cpp.

◆ dot_accessor()

void CFXJSE_FormCalcContext::dot_accessor ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4778 of file cfxjse_formcalc_context.cpp.

◆ dotdot_accessor()

void CFXJSE_FormCalcContext::dotdot_accessor ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4785 of file cfxjse_formcalc_context.cpp.

◆ Encode()

void CFXJSE_FormCalcContext::Encode ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3425 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::EqualNoCase(), and fxcrt::WideString::operator=().

Here is the call graph for this function:

◆ equality_operator()

void CFXJSE_FormCalcContext::equality_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4420 of file cfxjse_formcalc_context.cpp.

◆ Eval()

void CFXJSE_FormCalcContext::Eval ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2965 of file cfxjse_formcalc_context.cpp.

References fxcrt::WideString::FromUTF8().

Here is the call graph for this function:

◆ eval_translation()

void CFXJSE_FormCalcContext::eval_translation ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4792 of file cfxjse_formcalc_context.cpp.

References fxcrt::WideString::FromUTF8().

Here is the call graph for this function:

◆ Exists()

void CFXJSE_FormCalcContext::Exists ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2864 of file cfxjse_formcalc_context.cpp.

References fxv8::IsObject().

Here is the call graph for this function:

◆ Floor()

void CFXJSE_FormCalcContext::Floor ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1442 of file cfxjse_formcalc_context.cpp.

◆ fm_ref_equal()

bool CFXJSE_FormCalcContext::fm_ref_equal ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4488 of file cfxjse_formcalc_context.cpp.

◆ fm_var_filter()

void CFXJSE_FormCalcContext::fm_var_filter ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4901 of file cfxjse_formcalc_context.cpp.

◆ Format()

void CFXJSE_FormCalcContext::Format ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

◆ FV()

void CFXJSE_FormCalcContext::FV ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2455 of file cfxjse_formcalc_context.cpp.

◆ Get()

void CFXJSE_FormCalcContext::Get ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4199 of file cfxjse_formcalc_context.cpp.

References CXFA_FFNotify::GetAppProvider(), GetDocument(), and CXFA_Document::GetNotify().

Here is the call graph for this function:

◆ get_fm_jsobj()

void CFXJSE_FormCalcContext::get_fm_jsobj ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4881 of file cfxjse_formcalc_context.cpp.

◆ get_fm_value()

void CFXJSE_FormCalcContext::get_fm_value ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4838 of file cfxjse_formcalc_context.cpp.

◆ GetDocument()

CXFA_Document * CFXJSE_FormCalcContext::GetDocument ( ) const
inline

Definition at line 276 of file cfxjse_formcalc_context.h.

Referenced by Format(), Get(), GetLocalDateFormat(), GetLocalTimeFormat(), IsoDate2Local(), IsoTime2Local(), IsoTime2Num(), Local2IsoDate(), Parse(), Post(), Put(), and Time2Num().

Here is the caller graph for this function:

◆ GetIsolate()

v8::Isolate * CFXJSE_FormCalcContext::GetIsolate ( ) const
inline

Definition at line 275 of file cfxjse_formcalc_context.h.

◆ GetLocalDateFormat()

ByteString CFXJSE_FormCalcContext::GetLocalDateFormat ( CFXJSE_HostObject * pThis,
int32_t iStyle,
ByteStringView bsLocale,
bool bStandard )
static

Definition at line 2298 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::ByteString(), and GetDocument().

Referenced by GetStandardDateFormat(), and LocalDateFmt().

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

◆ GetLocalTimeFormat()

ByteString CFXJSE_FormCalcContext::GetLocalTimeFormat ( CFXJSE_HostObject * pThis,
int32_t iStyle,
ByteStringView bsLocale,
bool bStandard )
static

Definition at line 2311 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::ByteString(), and GetDocument().

Referenced by GetStandardTimeFormat(), and LocalTimeFmt().

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

◆ GetStandardDateFormat()

ByteString CFXJSE_FormCalcContext::GetStandardDateFormat ( CFXJSE_HostObject * pThis,
int32_t iStyle,
ByteStringView bsLocale )
static

Definition at line 2324 of file cfxjse_formcalc_context.cpp.

References GetLocalDateFormat().

Referenced by DateFmt().

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

◆ GetStandardTimeFormat()

ByteString CFXJSE_FormCalcContext::GetStandardTimeFormat ( CFXJSE_HostObject * pThis,
int32_t iStyle,
ByteStringView bsLocale )
static

Definition at line 2332 of file cfxjse_formcalc_context.cpp.

References GetLocalTimeFormat().

Referenced by TimeFmt().

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

◆ GlobalPropertyGetter()

v8::Local< v8::Value > CFXJSE_FormCalcContext::GlobalPropertyGetter ( )

Definition at line 5038 of file cfxjse_formcalc_context.cpp.

◆ greater_operator()

void CFXJSE_FormCalcContext::greater_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4579 of file cfxjse_formcalc_context.cpp.

◆ greaterequal_operator()

void CFXJSE_FormCalcContext::greaterequal_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4607 of file cfxjse_formcalc_context.cpp.

◆ HasValue()

void CFXJSE_FormCalcContext::HasValue ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2875 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::TrimWhitespaceFront().

Here is the call graph for this function:

◆ If()

void CFXJSE_FormCalcContext::If ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2950 of file cfxjse_formcalc_context.cpp.

◆ IPmt()

void CFXJSE_FormCalcContext::IPmt ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2497 of file cfxjse_formcalc_context.cpp.

◆ is_fm_array()

void CFXJSE_FormCalcContext::is_fm_array ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4830 of file cfxjse_formcalc_context.cpp.

References fxv8::IsArray().

Here is the call graph for this function:

◆ is_fm_object()

void CFXJSE_FormCalcContext::is_fm_object ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4822 of file cfxjse_formcalc_context.cpp.

References fxv8::IsObject().

Here is the call graph for this function:

◆ IsoDate2Local()

ByteString CFXJSE_FormCalcContext::IsoDate2Local ( CFXJSE_HostObject * pThis,
ByteStringView bsDate,
ByteStringView bsFormat,
ByteStringView bsLocale )
static

Definition at line 2252 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::ByteString(), CXFA_LocaleValue::FormatPatterns(), fxcrt::WideString::FromUTF8(), GetDocument(), CXFA_Document::GetLocaleMgr(), CXFA_LocaleValue::kDate, kDisplay, and fxcrt::WideString::ToUTF8().

Referenced by Num2Date().

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

◆ IsoDate2Num()

void CFXJSE_FormCalcContext::IsoDate2Num ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1704 of file cfxjse_formcalc_context.cpp.

◆ IsoTime2Local()

ByteString CFXJSE_FormCalcContext::IsoTime2Local ( CFXJSE_HostObject * pThis,
ByteStringView bsTime,
ByteStringView bsFormat,
ByteStringView bsLocale )
static

Definition at line 2274 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::ByteString(), CXFA_LocaleValue::FormatPatterns(), fxcrt::WideString::FromUTF8(), GetDocument(), CXFA_Document::GetLocaleMgr(), kDisplay, CXFA_LocaleValue::kTime, and fxcrt::WideString::ToUTF8().

Referenced by Num2AllTime().

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

◆ IsoTime2Num()

void CFXJSE_FormCalcContext::IsoTime2Num ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

◆ Left()

void CFXJSE_FormCalcContext::Left ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3550 of file cfxjse_formcalc_context.cpp.

◆ Len()

void CFXJSE_FormCalcContext::Len ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3573 of file cfxjse_formcalc_context.cpp.

◆ less_operator()

void CFXJSE_FormCalcContext::less_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4520 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::Compare().

Here is the call graph for this function:

◆ lessequal_operator()

void CFXJSE_FormCalcContext::lessequal_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4550 of file cfxjse_formcalc_context.cpp.

◆ Local2IsoDate()

ByteString CFXJSE_FormCalcContext::Local2IsoDate ( CFXJSE_HostObject * pThis,
ByteStringView bsDate,
ByteStringView bsFormat,
ByteStringView bsLocale )
static

Definition at line 2228 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::ByteString(), fxcrt::ByteString::Format(), fxcrt::WideString::FromUTF8(), CXFA_LocaleValue::GetDate(), CFX_DateTime::GetDay(), GetDocument(), CXFA_Document::GetLocaleMgr(), CFX_DateTime::GetMonth(), CFX_DateTime::GetYear(), and CXFA_LocaleValue::kDate.

Referenced by Date2Num().

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

◆ LocalDateFmt()

void CFXJSE_FormCalcContext::LocalDateFmt ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1775 of file cfxjse_formcalc_context.cpp.

References GetLocalDateFormat().

Here is the call graph for this function:

◆ LocalTimeFmt()

void CFXJSE_FormCalcContext::LocalTimeFmt ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1813 of file cfxjse_formcalc_context.cpp.

References GetLocalTimeFormat().

Here is the call graph for this function:

◆ logical_and_operator()

void CFXJSE_FormCalcContext::logical_and_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4399 of file cfxjse_formcalc_context.cpp.

◆ logical_not_operator()

void CFXJSE_FormCalcContext::logical_not_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4759 of file cfxjse_formcalc_context.cpp.

◆ logical_or_operator()

void CFXJSE_FormCalcContext::logical_or_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4378 of file cfxjse_formcalc_context.cpp.

◆ Lower()

void CFXJSE_FormCalcContext::Lower ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3592 of file cfxjse_formcalc_context.cpp.

References fxcrt::WideTextBuffer::AsStringView(), and fxcrt::WideString::FromUTF8().

Here is the call graph for this function:

◆ Ltrim()

void CFXJSE_FormCalcContext::Ltrim ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3623 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::TrimWhitespaceFront().

Here is the call graph for this function:

◆ Max()

void CFXJSE_FormCalcContext::Max ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1460 of file cfxjse_formcalc_context.cpp.

◆ Min()

void CFXJSE_FormCalcContext::Min ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1482 of file cfxjse_formcalc_context.cpp.

◆ minus_operator()

void CFXJSE_FormCalcContext::minus_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4656 of file cfxjse_formcalc_context.cpp.

◆ Mod()

void CFXJSE_FormCalcContext::Mod ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1504 of file cfxjse_formcalc_context.cpp.

References fxv8::IsNull().

Here is the call graph for this function:

◆ multiple_operator()

void CFXJSE_FormCalcContext::multiple_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4677 of file cfxjse_formcalc_context.cpp.

◆ negative_operator()

void CFXJSE_FormCalcContext::negative_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4742 of file cfxjse_formcalc_context.cpp.

◆ notequality_operator()

void CFXJSE_FormCalcContext::notequality_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4454 of file cfxjse_formcalc_context.cpp.

◆ NPV()

void CFXJSE_FormCalcContext::NPV ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2557 of file cfxjse_formcalc_context.cpp.

◆ Num2AllTime()

ByteString CFXJSE_FormCalcContext::Num2AllTime ( CFXJSE_HostObject * pThis,
int32_t iTime,
ByteStringView bsFormat,
ByteStringView bsLocale,
bool bGM )
static

Definition at line 2340 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::Format(), and IsoTime2Local().

Referenced by Num2GMTime(), and Num2Time().

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

◆ Num2Date()

void CFXJSE_FormCalcContext::Num2Date ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1851 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::Format(), and IsoDate2Local().

Here is the call graph for this function:

◆ Num2GMTime()

void CFXJSE_FormCalcContext::Num2GMTime ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1993 of file cfxjse_formcalc_context.cpp.

References Num2AllTime().

Here is the call graph for this function:

◆ Num2Time()

void CFXJSE_FormCalcContext::Num2Time ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2041 of file cfxjse_formcalc_context.cpp.

References Num2AllTime().

Here is the call graph for this function:

◆ Oneof()

void CFXJSE_FormCalcContext::Oneof ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2897 of file cfxjse_formcalc_context.cpp.

◆ Parse()

◆ plus_operator()

void CFXJSE_FormCalcContext::plus_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4636 of file cfxjse_formcalc_context.cpp.

◆ Pmt()

void CFXJSE_FormCalcContext::Pmt ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2600 of file cfxjse_formcalc_context.cpp.

◆ positive_operator()

void CFXJSE_FormCalcContext::positive_operator ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4725 of file cfxjse_formcalc_context.cpp.

◆ Post()

void CFXJSE_FormCalcContext::Post ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4233 of file cfxjse_formcalc_context.cpp.

References fxcrt::WideString::FromUTF8(), CXFA_FFNotify::GetAppProvider(), GetDocument(), CXFA_Document::GetNotify(), CXFA_FFApp::CallbackIface::PostRequestURL(), and fxcrt::WideString::ToUTF8().

Here is the call graph for this function:

◆ PPmt()

void CFXJSE_FormCalcContext::PPmt ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2632 of file cfxjse_formcalc_context.cpp.

◆ Put()

void CFXJSE_FormCalcContext::Put ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4290 of file cfxjse_formcalc_context.cpp.

References fxcrt::WideString::FromUTF8(), CXFA_FFNotify::GetAppProvider(), GetDocument(), CXFA_Document::GetNotify(), and CXFA_FFApp::CallbackIface::PutRequestURL().

Here is the call graph for this function:

◆ PV()

void CFXJSE_FormCalcContext::PV ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2693 of file cfxjse_formcalc_context.cpp.

◆ Rate()

void CFXJSE_FormCalcContext::Rate ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2725 of file cfxjse_formcalc_context.cpp.

◆ Ref()

void CFXJSE_FormCalcContext::Ref ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3001 of file cfxjse_formcalc_context.cpp.

◆ Replace()

void CFXJSE_FormCalcContext::Replace ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3786 of file cfxjse_formcalc_context.cpp.

◆ Right()

void CFXJSE_FormCalcContext::Right ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3817 of file cfxjse_formcalc_context.cpp.

◆ Round()

void CFXJSE_FormCalcContext::Round ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1539 of file cfxjse_formcalc_context.cpp.

References CFGAS_Decimal::CFGAS_Decimal(), fxv8::IsNull(), and CFGAS_Decimal::ToDouble().

Here is the call graph for this function:

◆ Rtrim()

void CFXJSE_FormCalcContext::Rtrim ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3840 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::TrimWhitespaceBack().

Here is the call graph for this function:

◆ Space()

void CFXJSE_FormCalcContext::Space ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3861 of file cfxjse_formcalc_context.cpp.

◆ Str()

void CFXJSE_FormCalcContext::Str ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3886 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::ByteString(), fxcrt::ByteString::Format(), fxcrt::ByteString::FormatInteger(), fxcrt::ByteString::operator+=(), fxcrt::ByteString::operator+=(), and fxcrt::ByteString::operator+=().

Here is the call graph for this function:

◆ Stuff()

void CFXJSE_FormCalcContext::Stuff ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4011 of file cfxjse_formcalc_context.cpp.

◆ Substr()

void CFXJSE_FormCalcContext::Substr ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4057 of file cfxjse_formcalc_context.cpp.

◆ Sum()

void CFXJSE_FormCalcContext::Sum ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 1582 of file cfxjse_formcalc_context.cpp.

◆ Term()

void CFXJSE_FormCalcContext::Term ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2756 of file cfxjse_formcalc_context.cpp.

◆ Time()

void CFXJSE_FormCalcContext::Time ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2089 of file cfxjse_formcalc_context.cpp.

References FXSYS_time().

Here is the call graph for this function:

◆ Time2Num()

◆ TimeFmt()

void CFXJSE_FormCalcContext::TimeFmt ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2190 of file cfxjse_formcalc_context.cpp.

References GetStandardTimeFormat().

Here is the call graph for this function:

◆ Translate()

std::optional< WideTextBuffer > CFXJSE_FormCalcContext::Translate ( cppgc::Heap * pHeap,
WideStringView wsFormcalc )
static

Definition at line 4998 of file cfxjse_formcalc_context.cpp.

References CXFA_FMParser::CXFA_FMParser(), CXFA_FMParser::HasError(), CXFA_FMParser::Parse(), and CXFA_FMToJavaScriptDepth::Reset().

Here is the call graph for this function:

◆ UnitType()

void CFXJSE_FormCalcContext::UnitType ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3047 of file cfxjse_formcalc_context.cpp.

References fxcrt::WideString::FromUTF8(), and fxcrt::ByteString::MakeLower().

Here is the call graph for this function:

◆ UnitValue()

void CFXJSE_FormCalcContext::UnitValue ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 3162 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::ByteString(), fxcrt::ByteString::MakeLower(), fxcrt::ByteString::operator=(), and fxcrt::ByteString::operator==().

Here is the call graph for this function:

◆ Upper()

void CFXJSE_FormCalcContext::Upper ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4118 of file cfxjse_formcalc_context.cpp.

References fxcrt::WideString::FromUTF8().

Here is the call graph for this function:

◆ Uuid()

void CFXJSE_FormCalcContext::Uuid ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4099 of file cfxjse_formcalc_context.cpp.

◆ Within()

void CFXJSE_FormCalcContext::Within ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 2916 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::Compare().

Here is the call graph for this function:

◆ WordNum()

void CFXJSE_FormCalcContext::WordNum ( CFXJSE_HostObject * pThis,
const v8::FunctionCallbackInfo< v8::Value > & info )
static

Definition at line 4151 of file cfxjse_formcalc_context.cpp.

References fxcrt::ByteString::Format().

Here is the call graph for this function:

◆ FormCalcContextTest_GenerateSomExpression_Test

friend class FormCalcContextTest_GenerateSomExpression_Test
friend

Definition at line 279 of file cfxjse_formcalc_context.h.

◆ FormCalcContextTest_IsIsoDateFormat_Test

friend class FormCalcContextTest_IsIsoDateFormat_Test
friend

Definition at line 280 of file cfxjse_formcalc_context.h.

◆ FormCalcContextTest_IsIsoTimeFormat_Test

friend class FormCalcContextTest_IsIsoTimeFormat_Test
friend

Definition at line 281 of file cfxjse_formcalc_context.h.


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