• Home
  • Raw
  • Download

Lines Matching refs:pThis

511 void CXFA_FM2JSContext::Abs(CFXJSE_Value* pThis,  in Abs()  argument
515 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Abs"); in Abs()
520 if (ValueIsNull(pThis, argOne.get())) { in Abs()
525 FX_DOUBLE dValue = ValueToDouble(pThis, argOne.get()); in Abs()
533 void CXFA_FM2JSContext::Avg(CFXJSE_Value* pThis, in Avg() argument
542 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in Avg()
551 dSum += ValueToDouble(pThis, argValue.get()); in Avg()
573 dSum += ValueToDouble(pThis, defaultPropValue.get()); in Avg()
585 dSum += ValueToDouble(pThis, newPropertyValue.get()); in Avg()
600 void CXFA_FM2JSContext::Ceil(CFXJSE_Value* pThis, in Ceil() argument
604 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Ceil"); in Ceil()
608 std::unique_ptr<CFXJSE_Value> argValue = GetSimpleValue(pThis, args, 0); in Ceil()
609 if (ValueIsNull(pThis, argValue.get())) { in Ceil()
615 FXSYS_ceil(ValueToFloat(pThis, argValue.get()))); in Ceil()
619 void CXFA_FM2JSContext::Count(CFXJSE_Value* pThis, in Count() argument
622 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Count()
673 void CXFA_FM2JSContext::Floor(CFXJSE_Value* pThis, in Floor() argument
677 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Floor"); in Floor()
681 std::unique_ptr<CFXJSE_Value> argValue = GetSimpleValue(pThis, args, 0); in Floor()
682 if (ValueIsNull(pThis, argValue.get())) { in Floor()
688 FXSYS_floor(ValueToFloat(pThis, argValue.get()))); in Floor()
692 void CXFA_FM2JSContext::Max(CFXJSE_Value* pThis, in Max() argument
695 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Max()
726 FX_DOUBLE dValue = ValueToDouble(pThis, newPropertyValue.get()); in Max()
738 FX_DOUBLE dValue = ValueToDouble(pThis, newPropertyValue.get()); in Max()
749 FX_DOUBLE dValue = ValueToDouble(pThis, newPropertyValue.get()); in Max()
753 FX_DOUBLE dValue = ValueToDouble(pThis, argValue.get()); in Max()
766 void CXFA_FM2JSContext::Min(CFXJSE_Value* pThis, in Min() argument
769 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Min()
800 FX_DOUBLE dValue = ValueToDouble(pThis, newPropertyValue.get()); in Min()
812 FX_DOUBLE dValue = ValueToDouble(pThis, newPropertyValue.get()); in Min()
823 FX_DOUBLE dValue = ValueToDouble(pThis, newPropertyValue.get()); in Min()
827 FX_DOUBLE dValue = ValueToDouble(pThis, argValue.get()); in Min()
840 void CXFA_FM2JSContext::Mod(CFXJSE_Value* pThis, in Mod() argument
843 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Mod()
857 FX_DOUBLE dDividend = ExtractDouble(pThis, argOne.get(), &argOneResult); in Mod()
859 FX_DOUBLE dDivisor = ExtractDouble(pThis, argTwo.get(), &argTwoResult); in Mod()
875 void CXFA_FM2JSContext::Round(CFXJSE_Value* pThis, in Round() argument
878 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Round()
892 FX_DOUBLE dValue = ExtractDouble(pThis, argOne.get(), &dValueRet); in Round()
907 FX_DOUBLE dPrecision = ExtractDouble(pThis, argTwo.get(), &dPrecisionRet); in Round()
923 void CXFA_FM2JSContext::Sum(CFXJSE_Value* pThis, in Sum() argument
932 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Sum()
961 dSum += ValueToDouble(pThis, jsObjectValue.get()); in Sum()
972 dSum += ValueToDouble(pThis, newPropertyValue.get()); in Sum()
982 dSum += ValueToDouble(pThis, argValue.get()); in Sum()
985 dSum += ValueToDouble(pThis, argValue.get()); in Sum()
998 void CXFA_FM2JSContext::Date(CFXJSE_Value* pThis, in Date() argument
1002 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Date"); in Date()
1022 void CXFA_FM2JSContext::Date2Num(CFXJSE_Value* pThis, in Date2Num() argument
1027 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Date2Num"); in Date2Num()
1031 std::unique_ptr<CFXJSE_Value> dateValue = GetSimpleValue(pThis, args, 0); in Date2Num()
1032 if (ValueIsNull(pThis, dateValue.get())) { in Date2Num()
1042 std::unique_ptr<CFXJSE_Value> formatValue = GetSimpleValue(pThis, args, 1); in Date2Num()
1043 if (ValueIsNull(pThis, formatValue.get())) { in Date2Num()
1052 std::unique_ptr<CFXJSE_Value> localValue = GetSimpleValue(pThis, args, 2); in Date2Num()
1053 if (ValueIsNull(pThis, localValue.get())) { in Date2Num()
1061 if (!Local2IsoDate(pThis, dateString.AsStringC(), formatString.AsStringC(), in Date2Num()
1072 void CXFA_FM2JSContext::DateFmt(CFXJSE_Value* pThis, in DateFmt() argument
1077 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Date2Num"); in DateFmt()
1083 std::unique_ptr<CFXJSE_Value> argStyle = GetSimpleValue(pThis, args, 0); in DateFmt()
1089 iStyle = (int32_t)ValueToFloat(pThis, argStyle.get()); in DateFmt()
1096 std::unique_ptr<CFXJSE_Value> argLocal = GetSimpleValue(pThis, args, 1); in DateFmt()
1105 GetStandardDateFormat(pThis, iStyle, szLocal.AsStringC(), formatStr); in DateFmt()
1110 void CXFA_FM2JSContext::IsoDate2Num(CFXJSE_Value* pThis, in IsoDate2Num() argument
1114 ToJSContext(pThis, nullptr) in IsoDate2Num()
1119 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in IsoDate2Num()
1131 void CXFA_FM2JSContext::IsoTime2Num(CFXJSE_Value* pThis, in IsoTime2Num() argument
1134 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in IsoTime2Num()
1140 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in IsoTime2Num()
1141 if (ValueIsNull(pThis, argOne.get())) { in IsoTime2Num()
1189 void CXFA_FM2JSContext::LocalDateFmt(CFXJSE_Value* pThis, in LocalDateFmt() argument
1194 ToJSContext(pThis, nullptr) in LocalDateFmt()
1201 std::unique_ptr<CFXJSE_Value> argStyle = GetSimpleValue(pThis, args, 0); in LocalDateFmt()
1206 iStyle = (int32_t)ValueToFloat(pThis, argStyle.get()); in LocalDateFmt()
1213 std::unique_ptr<CFXJSE_Value> argLocal = GetSimpleValue(pThis, args, 1); in LocalDateFmt()
1222 GetLocalDateFormat(pThis, iStyle, szLocal.AsStringC(), formatStr, false); in LocalDateFmt()
1227 void CXFA_FM2JSContext::LocalTimeFmt(CFXJSE_Value* pThis, in LocalTimeFmt() argument
1232 ToJSContext(pThis, nullptr) in LocalTimeFmt()
1239 std::unique_ptr<CFXJSE_Value> argStyle = GetSimpleValue(pThis, args, 0); in LocalTimeFmt()
1244 iStyle = (int32_t)ValueToFloat(pThis, argStyle.get()); in LocalTimeFmt()
1251 std::unique_ptr<CFXJSE_Value> argLocal = GetSimpleValue(pThis, args, 1); in LocalTimeFmt()
1260 GetLocalTimeFormat(pThis, iStyle, szLocal.AsStringC(), formatStr, false); in LocalTimeFmt()
1265 void CXFA_FM2JSContext::Num2Date(CFXJSE_Value* pThis, in Num2Date() argument
1270 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Num2Date"); in Num2Date()
1274 std::unique_ptr<CFXJSE_Value> dateValue = GetSimpleValue(pThis, args, 0); in Num2Date()
1275 if (ValueIsNull(pThis, dateValue.get())) { in Num2Date()
1279 int32_t dDate = (int32_t)ValueToFloat(pThis, dateValue.get()); in Num2Date()
1287 std::unique_ptr<CFXJSE_Value> formatValue = GetSimpleValue(pThis, args, 1); in Num2Date()
1288 if (ValueIsNull(pThis, formatValue.get())) { in Num2Date()
1297 std::unique_ptr<CFXJSE_Value> localValue = GetSimpleValue(pThis, args, 2); in Num2Date()
1298 if (ValueIsNull(pThis, localValue.get())) { in Num2Date()
1400 IsoDate2Local(pThis, szIsoDateString.AsStringC(), formatString.AsStringC(), in Num2Date()
1406 void CXFA_FM2JSContext::Num2GMTime(CFXJSE_Value* pThis, in Num2GMTime() argument
1411 ToJSContext(pThis, nullptr) in Num2GMTime()
1416 std::unique_ptr<CFXJSE_Value> timeValue = GetSimpleValue(pThis, args, 0); in Num2GMTime()
1421 int32_t iTime = (int32_t)ValueToFloat(pThis, timeValue.get()); in Num2GMTime()
1429 std::unique_ptr<CFXJSE_Value> formatValue = GetSimpleValue(pThis, args, 1); in Num2GMTime()
1439 std::unique_ptr<CFXJSE_Value> localValue = GetSimpleValue(pThis, args, 2); in Num2GMTime()
1448 Num2AllTime(pThis, iTime, formatString.AsStringC(), localString.AsStringC(), in Num2GMTime()
1454 void CXFA_FM2JSContext::Num2Time(CFXJSE_Value* pThis, in Num2Time() argument
1459 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Num2Time"); in Num2Time()
1463 std::unique_ptr<CFXJSE_Value> timeValue = GetSimpleValue(pThis, args, 0); in Num2Time()
1468 FX_FLOAT fTime = ValueToFloat(pThis, timeValue.get()); in Num2Time()
1476 std::unique_ptr<CFXJSE_Value> formatValue = GetSimpleValue(pThis, args, 1); in Num2Time()
1486 std::unique_ptr<CFXJSE_Value> localValue = GetSimpleValue(pThis, args, 2); in Num2Time()
1495 Num2AllTime(pThis, (int32_t)fTime, formatString.AsStringC(), in Num2Time()
1501 void CXFA_FM2JSContext::Time(CFXJSE_Value* pThis, in Time() argument
1505 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Time"); in Time()
1518 void CXFA_FM2JSContext::Time2Num(CFXJSE_Value* pThis, in Time2Num() argument
1523 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Time2Num"); in Time2Num()
1528 std::unique_ptr<CFXJSE_Value> timeValue = GetSimpleValue(pThis, args, 0); in Time2Num()
1529 if (ValueIsNull(pThis, timeValue.get())) { in Time2Num()
1537 std::unique_ptr<CFXJSE_Value> formatValue = GetSimpleValue(pThis, args, 1); in Time2Num()
1538 if (ValueIsNull(pThis, formatValue.get())) { in Time2Num()
1547 std::unique_ptr<CFXJSE_Value> localValue = GetSimpleValue(pThis, args, 2); in Time2Num()
1548 if (ValueIsNull(pThis, localValue.get())) { in Time2Num()
1555 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in Time2Num()
1608 void CXFA_FM2JSContext::TimeFmt(CFXJSE_Value* pThis, in TimeFmt() argument
1613 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"TimeFmt"); in TimeFmt()
1619 std::unique_ptr<CFXJSE_Value> argStyle = GetSimpleValue(pThis, args, 0); in TimeFmt()
1624 iStyle = (int32_t)ValueToFloat(pThis, argStyle.get()); in TimeFmt()
1631 std::unique_ptr<CFXJSE_Value> argLocal = GetSimpleValue(pThis, args, 1); in TimeFmt()
1640 GetStandardTimeFormat(pThis, iStyle, szLocal.AsStringC(), formatStr); in TimeFmt()
1920 bool CXFA_FM2JSContext::Local2IsoDate(CFXJSE_Value* pThis, in Local2IsoDate() argument
1925 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in Local2IsoDate()
1957 bool CXFA_FM2JSContext::Local2IsoTime(CFXJSE_Value* pThis, in Local2IsoTime() argument
1962 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in Local2IsoTime()
1996 bool CXFA_FM2JSContext::IsoDate2Local(CFXJSE_Value* pThis, in IsoDate2Local() argument
2001 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in IsoDate2Local()
2034 bool CXFA_FM2JSContext::IsoTime2Local(CFXJSE_Value* pThis, in IsoTime2Local() argument
2039 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in IsoTime2Local()
2073 bool CXFA_FM2JSContext::GetGMTTime(CFXJSE_Value* pThis, in GetGMTTime() argument
2078 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in GetGMTTime()
2169 void CXFA_FM2JSContext::GetLocalDateFormat(CFXJSE_Value* pThis, in GetLocalDateFormat() argument
2191 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in GetLocalDateFormat()
2220 void CXFA_FM2JSContext::GetLocalTimeFormat(CFXJSE_Value* pThis, in GetLocalTimeFormat() argument
2242 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in GetLocalTimeFormat()
2271 void CXFA_FM2JSContext::GetStandardDateFormat(CFXJSE_Value* pThis, in GetStandardDateFormat() argument
2275 GetLocalDateFormat(pThis, iStyle, szLocalStr, strFormat, true); in GetStandardDateFormat()
2279 void CXFA_FM2JSContext::GetStandardTimeFormat(CFXJSE_Value* pThis, in GetStandardTimeFormat() argument
2283 GetLocalTimeFormat(pThis, iStyle, szLocalStr, strFormat, true); in GetStandardTimeFormat()
2287 void CXFA_FM2JSContext::Num2AllTime(CFXJSE_Value* pThis, in Num2AllTime() argument
2315 GetGMTTime(pThis, strIsoTime.AsStringC(), szFormat, szLocale, strTime); in Num2AllTime()
2317 iRet = IsoTime2Local(pThis, strIsoTime.AsStringC(), szFormat, szLocale, in Num2AllTime()
2339 void CXFA_FM2JSContext::Apr(CFXJSE_Value* pThis, in Apr() argument
2342 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Apr()
2348 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Apr()
2349 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Apr()
2350 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Apr()
2351 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in Apr()
2352 ValueIsNull(pThis, argThree.get())) { in Apr()
2357 FX_DOUBLE nPrincipal = ValueToDouble(pThis, argOne.get()); in Apr()
2358 FX_DOUBLE nPayment = ValueToDouble(pThis, argTwo.get()); in Apr()
2359 FX_DOUBLE nPeriods = ValueToDouble(pThis, argThree.get()); in Apr()
2393 void CXFA_FM2JSContext::CTerm(CFXJSE_Value* pThis, in CTerm() argument
2396 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in CTerm()
2402 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in CTerm()
2403 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in CTerm()
2404 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in CTerm()
2405 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in CTerm()
2406 ValueIsNull(pThis, argThree.get())) { in CTerm()
2411 FX_FLOAT nRate = ValueToFloat(pThis, argOne.get()); in CTerm()
2412 FX_FLOAT nFutureValue = ValueToFloat(pThis, argTwo.get()); in CTerm()
2413 FX_FLOAT nInitAmount = ValueToFloat(pThis, argThree.get()); in CTerm()
2425 void CXFA_FM2JSContext::FV(CFXJSE_Value* pThis, in FV() argument
2428 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in FV()
2434 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in FV()
2435 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in FV()
2436 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in FV()
2437 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in FV()
2438 ValueIsNull(pThis, argThree.get())) { in FV()
2443 FX_DOUBLE nAmount = ValueToDouble(pThis, argOne.get()); in FV()
2444 FX_DOUBLE nRate = ValueToDouble(pThis, argTwo.get()); in FV()
2445 FX_DOUBLE nPeriod = ValueToDouble(pThis, argThree.get()); in FV()
2466 void CXFA_FM2JSContext::IPmt(CFXJSE_Value* pThis, in IPmt() argument
2469 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in IPmt()
2475 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in IPmt()
2476 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in IPmt()
2477 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in IPmt()
2478 std::unique_ptr<CFXJSE_Value> argFour = GetSimpleValue(pThis, args, 3); in IPmt()
2479 std::unique_ptr<CFXJSE_Value> argFive = GetSimpleValue(pThis, args, 4); in IPmt()
2480 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in IPmt()
2481 ValueIsNull(pThis, argThree.get()) || ValueIsNull(pThis, argFour.get()) || in IPmt()
2482 ValueIsNull(pThis, argFive.get())) { in IPmt()
2487 FX_FLOAT nPrincipalAmount = ValueToFloat(pThis, argOne.get()); in IPmt()
2488 FX_FLOAT nRate = ValueToFloat(pThis, argTwo.get()); in IPmt()
2489 FX_FLOAT nPayment = ValueToFloat(pThis, argThree.get()); in IPmt()
2490 FX_FLOAT nFirstMonth = ValueToFloat(pThis, argFour.get()); in IPmt()
2491 FX_FLOAT nNumberOfMonths = ValueToFloat(pThis, argFive.get()); in IPmt()
2523 void CXFA_FM2JSContext::NPV(CFXJSE_Value* pThis, in NPV() argument
2526 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in NPV()
2535 argValues.push_back(GetSimpleValue(pThis, args, i)); in NPV()
2536 if (ValueIsNull(pThis, argValues[i].get())) { in NPV()
2542 FX_DOUBLE nRate = ValueToDouble(pThis, argValues[0].get()); in NPV()
2550 data.push_back(ValueToDouble(pThis, argValues[i].get())); in NPV()
2566 void CXFA_FM2JSContext::Pmt(CFXJSE_Value* pThis, in Pmt() argument
2569 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Pmt()
2575 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Pmt()
2576 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Pmt()
2577 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Pmt()
2578 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in Pmt()
2579 ValueIsNull(pThis, argThree.get())) { in Pmt()
2584 FX_FLOAT nPrincipal = ValueToFloat(pThis, argOne.get()); in Pmt()
2585 FX_FLOAT nRate = ValueToFloat(pThis, argTwo.get()); in Pmt()
2586 FX_FLOAT nPeriods = ValueToFloat(pThis, argThree.get()); in Pmt()
2601 void CXFA_FM2JSContext::PPmt(CFXJSE_Value* pThis, in PPmt() argument
2604 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in PPmt()
2610 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in PPmt()
2611 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in PPmt()
2612 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in PPmt()
2613 std::unique_ptr<CFXJSE_Value> argFour = GetSimpleValue(pThis, args, 3); in PPmt()
2614 std::unique_ptr<CFXJSE_Value> argFive = GetSimpleValue(pThis, args, 4); in PPmt()
2615 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in PPmt()
2616 ValueIsNull(pThis, argThree.get()) || ValueIsNull(pThis, argFour.get()) || in PPmt()
2617 ValueIsNull(pThis, argFive.get())) { in PPmt()
2622 FX_FLOAT nPrincipalAmount = ValueToFloat(pThis, argOne.get()); in PPmt()
2623 FX_FLOAT nRate = ValueToFloat(pThis, argTwo.get()); in PPmt()
2624 FX_FLOAT nPayment = ValueToFloat(pThis, argThree.get()); in PPmt()
2625 FX_FLOAT nFirstMonth = ValueToFloat(pThis, argFour.get()); in PPmt()
2626 FX_FLOAT nNumberOfMonths = ValueToFloat(pThis, argFive.get()); in PPmt()
2659 void CXFA_FM2JSContext::PV(CFXJSE_Value* pThis, in PV() argument
2662 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in PV()
2668 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in PV()
2669 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in PV()
2670 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in PV()
2671 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in PV()
2672 ValueIsNull(pThis, argThree.get())) { in PV()
2677 FX_DOUBLE nAmount = ValueToDouble(pThis, argOne.get()); in PV()
2678 FX_DOUBLE nRate = ValueToDouble(pThis, argTwo.get()); in PV()
2679 FX_DOUBLE nPeriod = ValueToDouble(pThis, argThree.get()); in PV()
2694 void CXFA_FM2JSContext::Rate(CFXJSE_Value* pThis, in Rate() argument
2697 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Rate()
2703 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Rate()
2704 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Rate()
2705 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Rate()
2706 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in Rate()
2707 ValueIsNull(pThis, argThree.get())) { in Rate()
2712 FX_FLOAT nFuture = ValueToFloat(pThis, argOne.get()); in Rate()
2713 FX_FLOAT nPresent = ValueToFloat(pThis, argTwo.get()); in Rate()
2714 FX_FLOAT nTotalNumber = ValueToFloat(pThis, argThree.get()); in Rate()
2726 void CXFA_FM2JSContext::Term(CFXJSE_Value* pThis, in Term() argument
2729 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Term()
2735 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Term()
2736 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Term()
2737 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Term()
2738 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in Term()
2739 ValueIsNull(pThis, argThree.get())) { in Term()
2744 FX_FLOAT nMount = ValueToFloat(pThis, argOne.get()); in Term()
2745 FX_FLOAT nRate = ValueToFloat(pThis, argTwo.get()); in Term()
2746 FX_FLOAT nFuture = ValueToFloat(pThis, argThree.get()); in Term()
2758 void CXFA_FM2JSContext::Choose(CFXJSE_Value* pThis, in Choose() argument
2761 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Choose()
2769 if (ValueIsNull(pThis, argOne.get())) { in Choose()
2774 int32_t iIndex = (int32_t)ValueToFloat(pThis, argOne.get()); in Choose()
2829 void CXFA_FM2JSContext::Exists(CFXJSE_Value* pThis, in Exists() argument
2833 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Exists"); in Exists()
2840 void CXFA_FM2JSContext::HasValue(CFXJSE_Value* pThis, in HasValue() argument
2844 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"HasValue"); in HasValue()
2848 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in HasValue()
2861 void CXFA_FM2JSContext::Oneof(CFXJSE_Value* pThis, in Oneof() argument
2865 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Oneof"); in Oneof()
2870 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Oneof()
2872 unfoldArgs(pThis, args, &parameterValues, 1); in Oneof()
2874 if (simpleValueCompare(pThis, argOne.get(), value.get())) { in Oneof()
2884 void CXFA_FM2JSContext::Within(CFXJSE_Value* pThis, in Within() argument
2888 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Within"); in Within()
2892 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Within()
2898 std::unique_ptr<CFXJSE_Value> argLow = GetSimpleValue(pThis, args, 1); in Within()
2899 std::unique_ptr<CFXJSE_Value> argHigh = GetSimpleValue(pThis, args, 2); in Within()
2901 FX_FLOAT oneNumber = ValueToFloat(pThis, argOne.get()); in Within()
2902 FX_FLOAT lowNumber = ValueToFloat(pThis, argLow.get()); in Within()
2903 FX_FLOAT heightNumber = ValueToFloat(pThis, argHigh.get()); in Within()
2921 void CXFA_FM2JSContext::If(CFXJSE_Value* pThis, in If() argument
2925 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"If"); in If()
2929 args.GetReturnValue()->Assign(GetSimpleValue(pThis, args, 0)->ToBoolean() in If()
2930 ? GetSimpleValue(pThis, args, 1).get() in If()
2931 : GetSimpleValue(pThis, args, 2).get()); in If()
2935 void CXFA_FM2JSContext::Eval(CFXJSE_Value* pThis, in Eval() argument
2938 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Eval()
2945 std::unique_ptr<CFXJSE_Value> scriptValue = GetSimpleValue(pThis, args, 0); in Eval()
2969 void CXFA_FM2JSContext::Ref(CFXJSE_Value* pThis, in Ref() argument
2972 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Ref()
3027 void CXFA_FM2JSContext::UnitType(CFXJSE_Value* pThis, in UnitType() argument
3031 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"UnitType"); in UnitType()
3035 std::unique_ptr<CFXJSE_Value> unitspanValue = GetSimpleValue(pThis, args, 0); in UnitType()
3139 void CXFA_FM2JSContext::UnitValue(CFXJSE_Value* pThis, in UnitValue() argument
3144 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"UnitValue"); in UnitValue()
3148 std::unique_ptr<CFXJSE_Value> unitspanValue = GetSimpleValue(pThis, args, 0); in UnitValue()
3192 std::unique_ptr<CFXJSE_Value> unitValue = GetSimpleValue(pThis, args, 1); in UnitValue()
3283 void CXFA_FM2JSContext::At(CFXJSE_Value* pThis, in At() argument
3287 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"At"); in At()
3291 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in At()
3292 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in At()
3293 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get())) { in At()
3312 void CXFA_FM2JSContext::Concat(CFXJSE_Value* pThis, in Concat() argument
3317 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Concat"); in Concat()
3324 std::unique_ptr<CFXJSE_Value> value = GetSimpleValue(pThis, args, i); in Concat()
3325 if (ValueIsNull(pThis, value.get())) in Concat()
3344 void CXFA_FM2JSContext::Decode(CFXJSE_Value* pThis, in Decode() argument
3349 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Decode"); in Decode()
3354 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Decode()
3355 if (ValueIsNull(pThis, argOne.get())) { in Decode()
3368 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Decode()
3369 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Decode()
3370 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get())) { in Decode()
3611 void CXFA_FM2JSContext::Encode(CFXJSE_Value* pThis, in Encode() argument
3616 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Encode"); in Encode()
3621 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Encode()
3622 if (ValueIsNull(pThis, argOne.get())) { in Encode()
3635 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Encode()
3636 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Encode()
3637 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get())) { in Encode()
3923 void CXFA_FM2JSContext::Format(CFXJSE_Value* pThis, in Format() argument
3926 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Format()
3932 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Format()
3936 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Format()
4001 void CXFA_FM2JSContext::Left(CFXJSE_Value* pThis, in Left() argument
4005 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Left"); in Left()
4009 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Left()
4010 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Left()
4011 if ((ValueIsNull(pThis, argOne.get())) || in Left()
4012 (ValueIsNull(pThis, argTwo.get()))) { in Left()
4019 int32_t count = std::max(0, ValueToInteger(pThis, argTwo.get())); in Left()
4024 void CXFA_FM2JSContext::Len(CFXJSE_Value* pThis, in Len() argument
4028 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Len"); in Len()
4032 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Len()
4033 if (ValueIsNull(pThis, argOne.get())) { in Len()
4044 void CXFA_FM2JSContext::Lower(CFXJSE_Value* pThis, in Lower() argument
4049 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Lower"); in Lower()
4054 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Lower()
4055 if (ValueIsNull(pThis, argOne.get())) { in Lower()
4082 void CXFA_FM2JSContext::Ltrim(CFXJSE_Value* pThis, in Ltrim() argument
4086 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Ltrim"); in Ltrim()
4090 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Ltrim()
4091 if (ValueIsNull(pThis, argOne.get())) { in Ltrim()
4103 void CXFA_FM2JSContext::Parse(CFXJSE_Value* pThis, in Parse() argument
4106 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Parse()
4112 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Parse()
4113 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Parse()
4114 if (ValueIsNull(pThis, argTwo.get())) { in Parse()
4234 void CXFA_FM2JSContext::Replace(CFXJSE_Value* pThis, in Replace() argument
4239 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Replace"); in Replace()
4243 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Replace()
4244 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Replace()
4247 if (!ValueIsNull(pThis, argOne.get()) && !ValueIsNull(pThis, argTwo.get())) { in Replace()
4254 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Replace()
4293 void CXFA_FM2JSContext::Right(CFXJSE_Value* pThis, in Right() argument
4297 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Right"); in Right()
4301 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Right()
4302 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Right()
4303 if ((ValueIsNull(pThis, argOne.get())) || in Right()
4304 (ValueIsNull(pThis, argTwo.get()))) { in Right()
4311 int32_t count = std::max(0, ValueToInteger(pThis, argTwo.get())); in Right()
4316 void CXFA_FM2JSContext::Rtrim(CFXJSE_Value* pThis, in Rtrim() argument
4320 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Rtrim"); in Rtrim()
4324 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Rtrim()
4325 if (ValueIsNull(pThis, argOne.get())) { in Rtrim()
4337 void CXFA_FM2JSContext::Space(CFXJSE_Value* pThis, in Space() argument
4341 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Space"); in Space()
4345 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Space()
4351 int32_t count = std::max(0, ValueToInteger(pThis, argOne.get())); in Space()
4363 void CXFA_FM2JSContext::Str(CFXJSE_Value* pThis, in Str() argument
4368 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Str"); in Str()
4372 std::unique_ptr<CFXJSE_Value> numberValue = GetSimpleValue(pThis, args, 0); in Str()
4377 FX_FLOAT fNumber = ValueToFloat(pThis, numberValue.get()); in Str()
4381 std::unique_ptr<CFXJSE_Value> widthValue = GetSimpleValue(pThis, args, 1); in Str()
4382 iWidth = static_cast<int32_t>(ValueToFloat(pThis, widthValue.get())); in Str()
4388 GetSimpleValue(pThis, args, 2); in Str()
4390 0, static_cast<int32_t>(ValueToFloat(pThis, precisionValue.get()))); in Str()
4479 void CXFA_FM2JSContext::Stuff(CFXJSE_Value* pThis, in Stuff() argument
4484 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Stuff"); in Stuff()
4493 std::unique_ptr<CFXJSE_Value> sourceValue = GetSimpleValue(pThis, args, 0); in Stuff()
4494 std::unique_ptr<CFXJSE_Value> startValue = GetSimpleValue(pThis, args, 1); in Stuff()
4495 std::unique_ptr<CFXJSE_Value> deleteValue = GetSimpleValue(pThis, args, 2); in Stuff()
4501 pThis, startValue.get())))); in Stuff()
4503 0, static_cast<int32_t>(ValueToFloat(pThis, deleteValue.get()))); in Stuff()
4507 std::unique_ptr<CFXJSE_Value> insertValue = GetSimpleValue(pThis, args, 3); in Stuff()
4529 void CXFA_FM2JSContext::Substr(CFXJSE_Value* pThis, in Substr() argument
4533 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Substr"); in Substr()
4537 std::unique_ptr<CFXJSE_Value> stringValue = GetSimpleValue(pThis, args, 0); in Substr()
4538 std::unique_ptr<CFXJSE_Value> startValue = GetSimpleValue(pThis, args, 1); in Substr()
4539 std::unique_ptr<CFXJSE_Value> endValue = GetSimpleValue(pThis, args, 2); in Substr()
4540 if (ValueIsNull(pThis, stringValue.get()) || in Substr()
4541 (ValueIsNull(pThis, startValue.get())) || in Substr()
4542 (ValueIsNull(pThis, endValue.get()))) { in Substr()
4559 std::max(1, static_cast<int32_t>(ValueToFloat(pThis, startValue.get())))); in Substr()
4561 std::max(0, static_cast<int32_t>(ValueToFloat(pThis, endValue.get()))); in Substr()
4568 void CXFA_FM2JSContext::Uuid(CFXJSE_Value* pThis, in Uuid() argument
4573 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Uuid"); in Uuid()
4579 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Uuid()
4580 iNum = static_cast<int32_t>(ValueToFloat(pThis, argOne.get())); in Uuid()
4591 void CXFA_FM2JSContext::Upper(CFXJSE_Value* pThis, in Upper() argument
4596 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Upper"); in Upper()
4600 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Upper()
4601 if (ValueIsNull(pThis, argOne.get())) { in Upper()
4630 void CXFA_FM2JSContext::WordNum(CFXJSE_Value* pThis, in WordNum() argument
4635 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"WordNum"); in WordNum()
4639 std::unique_ptr<CFXJSE_Value> numberValue = GetSimpleValue(pThis, args, 0); in WordNum()
4644 FX_FLOAT fNumber = ValueToFloat(pThis, numberValue.get()); in WordNum()
4649 GetSimpleValue(pThis, args, 1); in WordNum()
4655 static_cast<int32_t>(ValueToFloat(pThis, identifierValue.get())); in WordNum()
4660 std::unique_ptr<CFXJSE_Value> localeValue = GetSimpleValue(pThis, args, 2); in WordNum()
4830 void CXFA_FM2JSContext::Get(CFXJSE_Value* pThis, in Get() argument
4833 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Get()
4847 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Get()
4862 void CXFA_FM2JSContext::Post(CFXJSE_Value* pThis, in Post() argument
4865 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Post()
4881 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Post()
4885 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Post()
4890 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Post()
4896 std::unique_ptr<CFXJSE_Value> argFour = GetSimpleValue(pThis, args, 3); in Post()
4902 std::unique_ptr<CFXJSE_Value> argFive = GetSimpleValue(pThis, args, 4); in Post()
4920 void CXFA_FM2JSContext::Put(CFXJSE_Value* pThis, in Put() argument
4923 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in Put()
4939 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Put()
4943 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Put()
4948 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Put()
4964 void CXFA_FM2JSContext::assign_value_operator(CFXJSE_Value* pThis, in assign_value_operator() argument
4967 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in assign_value_operator()
4974 std::unique_ptr<CFXJSE_Value> rValue = GetSimpleValue(pThis, args, 1); in assign_value_operator()
5008 void CXFA_FM2JSContext::logical_or_operator(CFXJSE_Value* pThis, in logical_or_operator() argument
5012 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in logical_or_operator()
5016 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in logical_or_operator()
5017 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in logical_or_operator()
5023 FX_FLOAT first = ValueToFloat(pThis, argFirst.get()); in logical_or_operator()
5024 FX_FLOAT second = ValueToFloat(pThis, argSecond.get()); in logical_or_operator()
5029 void CXFA_FM2JSContext::logical_and_operator(CFXJSE_Value* pThis, in logical_and_operator() argument
5033 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in logical_and_operator()
5037 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in logical_and_operator()
5038 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in logical_and_operator()
5044 FX_FLOAT first = ValueToFloat(pThis, argFirst.get()); in logical_and_operator()
5045 FX_FLOAT second = ValueToFloat(pThis, argSecond.get()); in logical_and_operator()
5050 void CXFA_FM2JSContext::equality_operator(CFXJSE_Value* pThis, in equality_operator() argument
5054 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in equality_operator()
5058 if (fm_ref_equal(pThis, args)) { in equality_operator()
5063 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in equality_operator()
5064 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in equality_operator()
5077 FX_DOUBLE first = ValueToDouble(pThis, argFirst.get()); in equality_operator()
5078 FX_DOUBLE second = ValueToDouble(pThis, argSecond.get()); in equality_operator()
5083 void CXFA_FM2JSContext::notequality_operator(CFXJSE_Value* pThis, in notequality_operator() argument
5087 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in notequality_operator()
5091 if (fm_ref_equal(pThis, args)) { in notequality_operator()
5096 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in notequality_operator()
5097 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in notequality_operator()
5110 FX_DOUBLE first = ValueToDouble(pThis, argFirst.get()); in notequality_operator()
5111 FX_DOUBLE second = ValueToDouble(pThis, argSecond.get()); in notequality_operator()
5116 bool CXFA_FM2JSContext::fm_ref_equal(CFXJSE_Value* pThis, in fm_ref_equal() argument
5123 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in fm_ref_equal()
5143 void CXFA_FM2JSContext::less_operator(CFXJSE_Value* pThis, in less_operator() argument
5147 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in less_operator()
5151 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in less_operator()
5152 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in less_operator()
5164 FX_DOUBLE first = ValueToDouble(pThis, argFirst.get()); in less_operator()
5165 FX_DOUBLE second = ValueToDouble(pThis, argSecond.get()); in less_operator()
5170 void CXFA_FM2JSContext::lessequal_operator(CFXJSE_Value* pThis, in lessequal_operator() argument
5174 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in lessequal_operator()
5178 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in lessequal_operator()
5179 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in lessequal_operator()
5192 FX_DOUBLE first = ValueToDouble(pThis, argFirst.get()); in lessequal_operator()
5193 FX_DOUBLE second = ValueToDouble(pThis, argSecond.get()); in lessequal_operator()
5198 void CXFA_FM2JSContext::greater_operator(CFXJSE_Value* pThis, in greater_operator() argument
5202 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in greater_operator()
5206 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in greater_operator()
5207 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in greater_operator()
5219 FX_DOUBLE first = ValueToDouble(pThis, argFirst.get()); in greater_operator()
5220 FX_DOUBLE second = ValueToDouble(pThis, argSecond.get()); in greater_operator()
5225 void CXFA_FM2JSContext::greaterequal_operator(CFXJSE_Value* pThis, in greaterequal_operator() argument
5229 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in greaterequal_operator()
5233 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in greaterequal_operator()
5234 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in greaterequal_operator()
5247 FX_DOUBLE first = ValueToDouble(pThis, argFirst.get()); in greaterequal_operator()
5248 FX_DOUBLE second = ValueToDouble(pThis, argSecond.get()); in greaterequal_operator()
5253 void CXFA_FM2JSContext::plus_operator(CFXJSE_Value* pThis, in plus_operator() argument
5257 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in plus_operator()
5263 if (ValueIsNull(pThis, argFirst.get()) && in plus_operator()
5264 ValueIsNull(pThis, argSecond.get())) { in plus_operator()
5269 FX_DOUBLE first = ValueToDouble(pThis, argFirst.get()); in plus_operator()
5270 FX_DOUBLE second = ValueToDouble(pThis, argSecond.get()); in plus_operator()
5275 void CXFA_FM2JSContext::minus_operator(CFXJSE_Value* pThis, in minus_operator() argument
5279 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in minus_operator()
5283 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in minus_operator()
5284 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in minus_operator()
5290 FX_DOUBLE first = ValueToDouble(pThis, argFirst.get()); in minus_operator()
5291 FX_DOUBLE second = ValueToDouble(pThis, argSecond.get()); in minus_operator()
5296 void CXFA_FM2JSContext::multiple_operator(CFXJSE_Value* pThis, in multiple_operator() argument
5300 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in multiple_operator()
5304 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in multiple_operator()
5305 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in multiple_operator()
5311 FX_DOUBLE first = ValueToDouble(pThis, argFirst.get()); in multiple_operator()
5312 FX_DOUBLE second = ValueToDouble(pThis, argSecond.get()); in multiple_operator()
5317 void CXFA_FM2JSContext::divide_operator(CFXJSE_Value* pThis, in divide_operator() argument
5320 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in divide_operator()
5326 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in divide_operator()
5327 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in divide_operator()
5333 FX_DOUBLE second = ValueToDouble(pThis, argSecond.get()); in divide_operator()
5339 FX_DOUBLE first = ValueToDouble(pThis, argFirst.get()); in divide_operator()
5344 void CXFA_FM2JSContext::positive_operator(CFXJSE_Value* pThis, in positive_operator() argument
5348 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in positive_operator()
5352 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in positive_operator()
5357 args.GetReturnValue()->SetDouble(0.0 + ValueToDouble(pThis, argOne.get())); in positive_operator()
5361 void CXFA_FM2JSContext::negative_operator(CFXJSE_Value* pThis, in negative_operator() argument
5365 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in negative_operator()
5369 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in negative_operator()
5374 args.GetReturnValue()->SetDouble(0.0 - ValueToDouble(pThis, argOne.get())); in negative_operator()
5378 void CXFA_FM2JSContext::logical_not_operator(CFXJSE_Value* pThis, in logical_not_operator() argument
5382 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in logical_not_operator()
5386 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in logical_not_operator()
5392 FX_DOUBLE first = ValueToDouble(pThis, argOne.get()); in logical_not_operator()
5397 void CXFA_FM2JSContext::dot_accessor(CFXJSE_Value* pThis, in dot_accessor() argument
5400 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in dot_accessor()
5412 iIndexValue = ValueToInteger(pThis, args.GetValue(4).get()); in dot_accessor()
5439 if (ResolveObjects(pThis, hJSObjValue.get(), szSomExp.AsStringC(), in dot_accessor()
5441 ParseResolveResult(pThis, resoveNodeRS, hJSObjValue.get(), in dot_accessor()
5479 iRet = ResolveObjects(pThis, argAccessor.get(), szSomExp.AsStringC(), in dot_accessor()
5482 GetObjectForName(pThis, argAccessor.get(), in dot_accessor()
5484 iRet = ResolveObjects(pThis, argAccessor.get(), szSomExp.AsStringC(), in dot_accessor()
5496 ParseResolveResult(pThis, resoveNodeRS, argAccessor.get(), &resolveValues, in dot_accessor()
5516 void CXFA_FM2JSContext::dotdot_accessor(CFXJSE_Value* pThis, in dotdot_accessor() argument
5519 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in dotdot_accessor()
5531 iIndexValue = ValueToInteger(pThis, args.GetValue(4).get()); in dotdot_accessor()
5558 if (ResolveObjects(pThis, hJSObjValue.get(), szSomExp.AsStringC(), in dotdot_accessor()
5560 ParseResolveResult(pThis, resoveNodeRS, hJSObjValue.get(), in dotdot_accessor()
5598 iRet = ResolveObjects(pThis, argAccessor.get(), szSomExp.AsStringC(), in dotdot_accessor()
5601 GetObjectForName(pThis, argAccessor.get(), in dotdot_accessor()
5603 iRet = ResolveObjects(pThis, argAccessor.get(), szSomExp.AsStringC(), in dotdot_accessor()
5615 ParseResolveResult(pThis, resoveNodeRS, argAccessor.get(), &resolveValues, in dotdot_accessor()
5635 void CXFA_FM2JSContext::eval_translation(CFXJSE_Value* pThis, in eval_translation() argument
5638 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in eval_translation()
5644 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in eval_translation()
5667 void CXFA_FM2JSContext::is_fm_object(CFXJSE_Value* pThis, in is_fm_object() argument
5680 void CXFA_FM2JSContext::is_fm_array(CFXJSE_Value* pThis, in is_fm_array() argument
5693 void CXFA_FM2JSContext::get_fm_value(CFXJSE_Value* pThis, in get_fm_value() argument
5696 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in get_fm_value()
5728 void CXFA_FM2JSContext::get_fm_jsobj(CFXJSE_Value* pThis, in get_fm_jsobj() argument
5732 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in get_fm_jsobj()
5743 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in get_fm_jsobj()
5754 void CXFA_FM2JSContext::fm_var_filter(CFXJSE_Value* pThis, in fm_var_filter() argument
5757 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in fm_var_filter()
5766 std::unique_ptr<CFXJSE_Value> simpleValue = GetSimpleValue(pThis, args, 0); in fm_var_filter()
5781 std::unique_ptr<CFXJSE_Value> simpleValue = GetSimpleValue(pThis, args, 0); in fm_var_filter()
5808 void CXFA_FM2JSContext::concat_fm_object(CFXJSE_Value* pThis, in concat_fm_object() argument
5811 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in concat_fm_object()
5850 CFXJSE_Value* pThis, in GetSimpleValue() argument
5853 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in GetSimpleValue()
5890 bool CXFA_FM2JSContext::ValueIsNull(CFXJSE_Value* pThis, CFXJSE_Value* arg) { in ValueIsNull() argument
5897 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in ValueIsNull()
5899 int32_t iLength = hvalue_get_array_length(pThis, arg); in ValueIsNull()
5925 int32_t CXFA_FM2JSContext::hvalue_get_array_length(CFXJSE_Value* pThis, in hvalue_get_array_length() argument
5930 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in hvalue_get_array_length()
5937 bool CXFA_FM2JSContext::simpleValueCompare(CFXJSE_Value* pThis, in simpleValueCompare() argument
5950 FX_FLOAT first = ValueToFloat(pThis, firstValue); in simpleValueCompare()
5951 FX_FLOAT second = ValueToFloat(pThis, secondValue); in simpleValueCompare()
5962 CFXJSE_Value* pThis, in unfoldArgs() argument
5969 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in unfoldArgs()
6080 CFXJSE_Value* pThis, in GetObjectForName() argument
6083 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in GetObjectForName()
6104 int32_t CXFA_FM2JSContext::ResolveObjects(CFXJSE_Value* pThis, in ResolveObjects() argument
6110 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in ResolveObjects()
6151 CFXJSE_Value* pThis, in ParseResolveResult() argument
6160 CXFA_FM2JSContext* pContext = ToJSContext(pThis, nullptr); in ParseResolveResult()
6194 int32_t CXFA_FM2JSContext::ValueToInteger(CFXJSE_Value* pThis, in ValueToInteger() argument
6199 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in ValueToInteger()
6208 return ValueToInteger(pThis, newPropertyValue.get()); in ValueToInteger()
6213 return ValueToInteger(pThis, newPropertyValue.get()); in ValueToInteger()
6218 return ValueToInteger(pThis, newPropertyValue.get()); in ValueToInteger()
6226 FX_FLOAT CXFA_FM2JSContext::ValueToFloat(CFXJSE_Value* pThis, in ValueToFloat() argument
6231 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in ValueToFloat()
6240 return ValueToFloat(pThis, newPropertyValue.get()); in ValueToFloat()
6244 return ValueToFloat(pThis, newPropertyValue.get()); in ValueToFloat()
6249 return ValueToFloat(pThis, newPropertyValue.get()); in ValueToFloat()
6260 FX_DOUBLE CXFA_FM2JSContext::ValueToDouble(CFXJSE_Value* pThis, in ValueToDouble() argument
6265 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in ValueToDouble()
6274 return ValueToDouble(pThis, newPropertyValue.get()); in ValueToDouble()
6278 return ValueToDouble(pThis, newPropertyValue.get()); in ValueToDouble()
6283 return ValueToDouble(pThis, newPropertyValue.get()); in ValueToDouble()
6293 double CXFA_FM2JSContext::ExtractDouble(CFXJSE_Value* pThis, in ExtractDouble() argument
6303 return ValueToDouble(pThis, src); in ExtractDouble()
6305 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in ExtractDouble()
6319 return ValueToDouble(pThis, jsObjectValue.get()); in ExtractDouble()
6324 return ValueToDouble(pThis, newPropertyValue.get()); in ExtractDouble()