• Home
  • Raw
  • Download

Lines Matching refs:pThis

618 void CFXJSE_FormCalcContext::Abs(CFXJSE_Value* pThis,  in Abs()  argument
622 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Abs"); in Abs()
627 if (ValueIsNull(pThis, argOne.get())) { in Abs()
632 double dValue = ValueToDouble(pThis, argOne.get()); in Abs()
640 void CFXJSE_FormCalcContext::Avg(CFXJSE_Value* pThis, in Avg() argument
649 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in Avg()
658 dSum += ValueToDouble(pThis, argValue.get()); in Avg()
680 dSum += ValueToDouble(pThis, defaultPropValue.get()); in Avg()
692 dSum += ValueToDouble(pThis, newPropertyValue.get()); in Avg()
707 void CFXJSE_FormCalcContext::Ceil(CFXJSE_Value* pThis, in Ceil() argument
711 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Ceil"); in Ceil()
715 std::unique_ptr<CFXJSE_Value> argValue = GetSimpleValue(pThis, args, 0); in Ceil()
716 if (ValueIsNull(pThis, argValue.get())) { in Ceil()
721 args.GetReturnValue()->SetFloat(ceil(ValueToFloat(pThis, argValue.get()))); in Ceil()
725 void CFXJSE_FormCalcContext::Count(CFXJSE_Value* pThis, in Count() argument
728 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Count()
779 void CFXJSE_FormCalcContext::Floor(CFXJSE_Value* pThis, in Floor() argument
783 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Floor"); in Floor()
787 std::unique_ptr<CFXJSE_Value> argValue = GetSimpleValue(pThis, args, 0); in Floor()
788 if (ValueIsNull(pThis, argValue.get())) { in Floor()
793 args.GetReturnValue()->SetFloat(floor(ValueToFloat(pThis, argValue.get()))); in Floor()
797 void CFXJSE_FormCalcContext::Max(CFXJSE_Value* pThis, in Max() argument
800 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Max()
831 double dValue = ValueToDouble(pThis, newPropertyValue.get()); in Max()
843 double dValue = ValueToDouble(pThis, newPropertyValue.get()); in Max()
854 double dValue = ValueToDouble(pThis, newPropertyValue.get()); in Max()
858 double dValue = ValueToDouble(pThis, argValue.get()); in Max()
871 void CFXJSE_FormCalcContext::Min(CFXJSE_Value* pThis, in Min() argument
874 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Min()
905 double dValue = ValueToDouble(pThis, newPropertyValue.get()); in Min()
917 double dValue = ValueToDouble(pThis, newPropertyValue.get()); in Min()
928 double dValue = ValueToDouble(pThis, newPropertyValue.get()); in Min()
932 double dValue = ValueToDouble(pThis, argValue.get()); in Min()
945 void CFXJSE_FormCalcContext::Mod(CFXJSE_Value* pThis, in Mod() argument
948 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Mod()
962 double dDividend = ExtractDouble(pThis, argOne.get(), &argOneResult); in Mod()
964 double dDivisor = ExtractDouble(pThis, argTwo.get(), &argTwoResult); in Mod()
980 void CFXJSE_FormCalcContext::Round(CFXJSE_Value* pThis, in Round() argument
983 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Round()
997 double dValue = ExtractDouble(pThis, argOne.get(), &dValueRet); in Round()
1012 double dPrecision = ExtractDouble(pThis, argTwo.get(), &dPrecisionRet); in Round()
1026 void CFXJSE_FormCalcContext::Sum(CFXJSE_Value* pThis, in Sum() argument
1035 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Sum()
1064 dSum += ValueToDouble(pThis, jsObjectValue.get()); in Sum()
1075 dSum += ValueToDouble(pThis, newPropertyValue.get()); in Sum()
1085 dSum += ValueToDouble(pThis, argValue.get()); in Sum()
1088 dSum += ValueToDouble(pThis, argValue.get()); in Sum()
1101 void CFXJSE_FormCalcContext::Date(CFXJSE_Value* pThis, in Date() argument
1105 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Date"); in Date()
1120 void CFXJSE_FormCalcContext::Date2Num(CFXJSE_Value* pThis, in Date2Num() argument
1125 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Date2Num"); in Date2Num()
1129 std::unique_ptr<CFXJSE_Value> dateValue = GetSimpleValue(pThis, args, 0); in Date2Num()
1130 if (ValueIsNull(pThis, dateValue.get())) { in Date2Num()
1138 std::unique_ptr<CFXJSE_Value> formatValue = GetSimpleValue(pThis, args, 1); in Date2Num()
1139 if (ValueIsNull(pThis, formatValue.get())) { in Date2Num()
1148 std::unique_ptr<CFXJSE_Value> localValue = GetSimpleValue(pThis, args, 2); in Date2Num()
1149 if (ValueIsNull(pThis, localValue.get())) { in Date2Num()
1157 Local2IsoDate(pThis, dateString.AsStringView(), in Date2Num()
1164 void CFXJSE_FormCalcContext::DateFmt(CFXJSE_Value* pThis, in DateFmt() argument
1169 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Date2Num"); in DateFmt()
1175 std::unique_ptr<CFXJSE_Value> argStyle = GetSimpleValue(pThis, args, 0); in DateFmt()
1181 iStyle = (int32_t)ValueToFloat(pThis, argStyle.get()); in DateFmt()
1188 std::unique_ptr<CFXJSE_Value> argLocal = GetSimpleValue(pThis, args, 1); in DateFmt()
1197 GetStandardDateFormat(pThis, iStyle, szLocal.AsStringView()); in DateFmt()
1202 void CFXJSE_FormCalcContext::IsoDate2Num(CFXJSE_Value* pThis, in IsoDate2Num() argument
1206 ToJSContext(pThis, nullptr) in IsoDate2Num()
1210 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in IsoDate2Num()
1220 void CFXJSE_FormCalcContext::IsoTime2Num(CFXJSE_Value* pThis, in IsoTime2Num() argument
1223 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in IsoTime2Num()
1229 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in IsoTime2Num()
1230 if (ValueIsNull(pThis, argOne.get())) { in IsoTime2Num()
1274 void CFXJSE_FormCalcContext::LocalDateFmt(CFXJSE_Value* pThis, in LocalDateFmt() argument
1279 ToJSContext(pThis, nullptr) in LocalDateFmt()
1286 std::unique_ptr<CFXJSE_Value> argStyle = GetSimpleValue(pThis, args, 0); in LocalDateFmt()
1291 iStyle = (int32_t)ValueToFloat(pThis, argStyle.get()); in LocalDateFmt()
1298 std::unique_ptr<CFXJSE_Value> argLocal = GetSimpleValue(pThis, args, 1); in LocalDateFmt()
1307 GetLocalDateFormat(pThis, iStyle, szLocal.AsStringView(), false); in LocalDateFmt()
1312 void CFXJSE_FormCalcContext::LocalTimeFmt(CFXJSE_Value* pThis, in LocalTimeFmt() argument
1317 ToJSContext(pThis, nullptr) in LocalTimeFmt()
1324 std::unique_ptr<CFXJSE_Value> argStyle = GetSimpleValue(pThis, args, 0); in LocalTimeFmt()
1329 iStyle = (int32_t)ValueToFloat(pThis, argStyle.get()); in LocalTimeFmt()
1336 std::unique_ptr<CFXJSE_Value> argLocal = GetSimpleValue(pThis, args, 1); in LocalTimeFmt()
1345 GetLocalTimeFormat(pThis, iStyle, szLocal.AsStringView(), false); in LocalTimeFmt()
1350 void CFXJSE_FormCalcContext::Num2Date(CFXJSE_Value* pThis, in Num2Date() argument
1355 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Num2Date"); in Num2Date()
1359 std::unique_ptr<CFXJSE_Value> dateValue = GetSimpleValue(pThis, args, 0); in Num2Date()
1360 if (ValueIsNull(pThis, dateValue.get())) { in Num2Date()
1364 int32_t dDate = (int32_t)ValueToFloat(pThis, dateValue.get()); in Num2Date()
1372 std::unique_ptr<CFXJSE_Value> formatValue = GetSimpleValue(pThis, args, 1); in Num2Date()
1373 if (ValueIsNull(pThis, formatValue.get())) { in Num2Date()
1382 std::unique_ptr<CFXJSE_Value> localValue = GetSimpleValue(pThis, args, 2); in Num2Date()
1383 if (ValueIsNull(pThis, localValue.get())) { in Num2Date()
1483 pThis, in Num2Date()
1490 void CFXJSE_FormCalcContext::Num2GMTime(CFXJSE_Value* pThis, in Num2GMTime() argument
1495 ToJSContext(pThis, nullptr) in Num2GMTime()
1500 std::unique_ptr<CFXJSE_Value> timeValue = GetSimpleValue(pThis, args, 0); in Num2GMTime()
1505 int32_t iTime = (int32_t)ValueToFloat(pThis, timeValue.get()); in Num2GMTime()
1513 std::unique_ptr<CFXJSE_Value> formatValue = GetSimpleValue(pThis, args, 1); in Num2GMTime()
1523 std::unique_ptr<CFXJSE_Value> localValue = GetSimpleValue(pThis, args, 2); in Num2GMTime()
1532 Num2AllTime(pThis, iTime, formatString.AsStringView(), in Num2GMTime()
1538 void CFXJSE_FormCalcContext::Num2Time(CFXJSE_Value* pThis, in Num2Time() argument
1543 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Num2Time"); in Num2Time()
1547 std::unique_ptr<CFXJSE_Value> timeValue = GetSimpleValue(pThis, args, 0); in Num2Time()
1552 float fTime = ValueToFloat(pThis, timeValue.get()); in Num2Time()
1560 std::unique_ptr<CFXJSE_Value> formatValue = GetSimpleValue(pThis, args, 1); in Num2Time()
1570 std::unique_ptr<CFXJSE_Value> localValue = GetSimpleValue(pThis, args, 2); in Num2Time()
1578 ByteString szLocalTimeString = Num2AllTime(pThis, static_cast<int32_t>(fTime), in Num2Time()
1585 void CFXJSE_FormCalcContext::Time(CFXJSE_Value* pThis, in Time() argument
1589 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Time"); in Time()
1602 void CFXJSE_FormCalcContext::Time2Num(CFXJSE_Value* pThis, in Time2Num() argument
1607 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Time2Num"); in Time2Num()
1612 std::unique_ptr<CFXJSE_Value> timeValue = GetSimpleValue(pThis, args, 0); in Time2Num()
1613 if (ValueIsNull(pThis, timeValue.get())) { in Time2Num()
1621 std::unique_ptr<CFXJSE_Value> formatValue = GetSimpleValue(pThis, args, 1); in Time2Num()
1622 if (ValueIsNull(pThis, formatValue.get())) { in Time2Num()
1631 std::unique_ptr<CFXJSE_Value> localValue = GetSimpleValue(pThis, args, 2); in Time2Num()
1632 if (ValueIsNull(pThis, localValue.get())) { in Time2Num()
1639 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in Time2Num()
1687 void CFXJSE_FormCalcContext::TimeFmt(CFXJSE_Value* pThis, in TimeFmt() argument
1692 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"TimeFmt"); in TimeFmt()
1698 std::unique_ptr<CFXJSE_Value> argStyle = GetSimpleValue(pThis, args, 0); in TimeFmt()
1703 iStyle = (int32_t)ValueToFloat(pThis, argStyle.get()); in TimeFmt()
1710 std::unique_ptr<CFXJSE_Value> argLocal = GetSimpleValue(pThis, args, 1); in TimeFmt()
1719 GetStandardTimeFormat(pThis, iStyle, szLocal.AsStringView()); in TimeFmt()
1992 CFXJSE_Value* pThis, in Local2IsoDate() argument
1996 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in Local2IsoDate()
2016 CFXJSE_Value* pThis, in IsoDate2Local() argument
2020 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in IsoDate2Local()
2038 CFXJSE_Value* pThis, in IsoTime2Local() argument
2042 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in IsoTime2Local()
2120 CFXJSE_Value* pThis, in GetLocalDateFormat() argument
2124 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in GetLocalDateFormat()
2143 CFXJSE_Value* pThis, in GetLocalTimeFormat() argument
2147 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in GetLocalTimeFormat()
2166 CFXJSE_Value* pThis, in GetStandardDateFormat() argument
2169 return GetLocalDateFormat(pThis, iStyle, szLocalStr, true); in GetStandardDateFormat()
2174 CFXJSE_Value* pThis, in GetStandardTimeFormat() argument
2177 return GetLocalTimeFormat(pThis, iStyle, szLocalStr, true); in GetStandardTimeFormat()
2181 ByteString CFXJSE_FormCalcContext::Num2AllTime(CFXJSE_Value* pThis, in Num2AllTime() argument
2204 pThis, in Num2AllTime()
2224 void CFXJSE_FormCalcContext::Apr(CFXJSE_Value* pThis, in Apr() argument
2227 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Apr()
2233 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Apr()
2234 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Apr()
2235 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Apr()
2236 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in Apr()
2237 ValueIsNull(pThis, argThree.get())) { in Apr()
2242 double nPrincipal = ValueToDouble(pThis, argOne.get()); in Apr()
2243 double nPayment = ValueToDouble(pThis, argTwo.get()); in Apr()
2244 double nPeriods = ValueToDouble(pThis, argThree.get()); in Apr()
2277 void CFXJSE_FormCalcContext::CTerm(CFXJSE_Value* pThis, in CTerm() argument
2280 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in CTerm()
2286 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in CTerm()
2287 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in CTerm()
2288 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in CTerm()
2289 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in CTerm()
2290 ValueIsNull(pThis, argThree.get())) { in CTerm()
2295 float nRate = ValueToFloat(pThis, argOne.get()); in CTerm()
2296 float nFutureValue = ValueToFloat(pThis, argTwo.get()); in CTerm()
2297 float nInitAmount = ValueToFloat(pThis, argThree.get()); in CTerm()
2308 void CFXJSE_FormCalcContext::FV(CFXJSE_Value* pThis, in FV() argument
2311 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in FV()
2317 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in FV()
2318 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in FV()
2319 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in FV()
2320 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in FV()
2321 ValueIsNull(pThis, argThree.get())) { in FV()
2326 double nAmount = ValueToDouble(pThis, argOne.get()); in FV()
2327 double nRate = ValueToDouble(pThis, argTwo.get()); in FV()
2328 double nPeriod = ValueToDouble(pThis, argThree.get()); in FV()
2349 void CFXJSE_FormCalcContext::IPmt(CFXJSE_Value* pThis, in IPmt() argument
2352 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in IPmt()
2358 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in IPmt()
2359 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in IPmt()
2360 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in IPmt()
2361 std::unique_ptr<CFXJSE_Value> argFour = GetSimpleValue(pThis, args, 3); in IPmt()
2362 std::unique_ptr<CFXJSE_Value> argFive = GetSimpleValue(pThis, args, 4); in IPmt()
2363 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in IPmt()
2364 ValueIsNull(pThis, argThree.get()) || ValueIsNull(pThis, argFour.get()) || in IPmt()
2365 ValueIsNull(pThis, argFive.get())) { in IPmt()
2370 float nPrincipalAmount = ValueToFloat(pThis, argOne.get()); in IPmt()
2371 float nRate = ValueToFloat(pThis, argTwo.get()); in IPmt()
2372 float nPayment = ValueToFloat(pThis, argThree.get()); in IPmt()
2373 float nFirstMonth = ValueToFloat(pThis, argFour.get()); in IPmt()
2374 float nNumberOfMonths = ValueToFloat(pThis, argFive.get()); in IPmt()
2406 void CFXJSE_FormCalcContext::NPV(CFXJSE_Value* pThis, in NPV() argument
2409 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in NPV()
2418 argValues.push_back(GetSimpleValue(pThis, args, i)); in NPV()
2419 if (ValueIsNull(pThis, argValues[i].get())) { in NPV()
2425 double nRate = ValueToDouble(pThis, argValues[0].get()); in NPV()
2433 data.push_back(ValueToDouble(pThis, argValues[i].get())); in NPV()
2449 void CFXJSE_FormCalcContext::Pmt(CFXJSE_Value* pThis, in Pmt() argument
2452 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Pmt()
2458 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Pmt()
2459 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Pmt()
2460 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Pmt()
2461 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in Pmt()
2462 ValueIsNull(pThis, argThree.get())) { in Pmt()
2467 float nPrincipal = ValueToFloat(pThis, argOne.get()); in Pmt()
2468 float nRate = ValueToFloat(pThis, argTwo.get()); in Pmt()
2469 float nPeriods = ValueToFloat(pThis, argThree.get()); in Pmt()
2484 void CFXJSE_FormCalcContext::PPmt(CFXJSE_Value* pThis, in PPmt() argument
2487 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in PPmt()
2493 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in PPmt()
2494 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in PPmt()
2495 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in PPmt()
2496 std::unique_ptr<CFXJSE_Value> argFour = GetSimpleValue(pThis, args, 3); in PPmt()
2497 std::unique_ptr<CFXJSE_Value> argFive = GetSimpleValue(pThis, args, 4); in PPmt()
2498 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in PPmt()
2499 ValueIsNull(pThis, argThree.get()) || ValueIsNull(pThis, argFour.get()) || in PPmt()
2500 ValueIsNull(pThis, argFive.get())) { in PPmt()
2505 float nPrincipalAmount = ValueToFloat(pThis, argOne.get()); in PPmt()
2506 float nRate = ValueToFloat(pThis, argTwo.get()); in PPmt()
2507 float nPayment = ValueToFloat(pThis, argThree.get()); in PPmt()
2508 float nFirstMonth = ValueToFloat(pThis, argFour.get()); in PPmt()
2509 float nNumberOfMonths = ValueToFloat(pThis, argFive.get()); in PPmt()
2542 void CFXJSE_FormCalcContext::PV(CFXJSE_Value* pThis, in PV() argument
2545 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in PV()
2551 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in PV()
2552 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in PV()
2553 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in PV()
2554 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in PV()
2555 ValueIsNull(pThis, argThree.get())) { in PV()
2560 double nAmount = ValueToDouble(pThis, argOne.get()); in PV()
2561 double nRate = ValueToDouble(pThis, argTwo.get()); in PV()
2562 double nPeriod = ValueToDouble(pThis, argThree.get()); in PV()
2577 void CFXJSE_FormCalcContext::Rate(CFXJSE_Value* pThis, in Rate() argument
2580 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Rate()
2586 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Rate()
2587 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Rate()
2588 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Rate()
2589 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in Rate()
2590 ValueIsNull(pThis, argThree.get())) { in Rate()
2595 float nFuture = ValueToFloat(pThis, argOne.get()); in Rate()
2596 float nPresent = ValueToFloat(pThis, argTwo.get()); in Rate()
2597 float nTotalNumber = ValueToFloat(pThis, argThree.get()); in Rate()
2608 void CFXJSE_FormCalcContext::Term(CFXJSE_Value* pThis, in Term() argument
2611 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Term()
2617 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Term()
2618 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Term()
2619 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Term()
2620 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get()) || in Term()
2621 ValueIsNull(pThis, argThree.get())) { in Term()
2626 float nMount = ValueToFloat(pThis, argOne.get()); in Term()
2627 float nRate = ValueToFloat(pThis, argTwo.get()); in Term()
2628 float nFuture = ValueToFloat(pThis, argThree.get()); in Term()
2639 void CFXJSE_FormCalcContext::Choose(CFXJSE_Value* pThis, in Choose() argument
2642 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Choose()
2650 if (ValueIsNull(pThis, argOne.get())) { in Choose()
2655 int32_t iIndex = (int32_t)ValueToFloat(pThis, argOne.get()); in Choose()
2708 void CFXJSE_FormCalcContext::Exists(CFXJSE_Value* pThis, in Exists() argument
2712 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Exists"); in Exists()
2719 void CFXJSE_FormCalcContext::HasValue(CFXJSE_Value* pThis, in HasValue() argument
2723 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"HasValue"); in HasValue()
2727 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in HasValue()
2740 void CFXJSE_FormCalcContext::Oneof(CFXJSE_Value* pThis, in Oneof() argument
2744 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Oneof"); in Oneof()
2749 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Oneof()
2751 unfoldArgs(pThis, args, &parameterValues, 1); in Oneof()
2753 if (simpleValueCompare(pThis, argOne.get(), value.get())) { in Oneof()
2763 void CFXJSE_FormCalcContext::Within(CFXJSE_Value* pThis, in Within() argument
2767 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Within"); in Within()
2771 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Within()
2777 std::unique_ptr<CFXJSE_Value> argLow = GetSimpleValue(pThis, args, 1); in Within()
2778 std::unique_ptr<CFXJSE_Value> argHigh = GetSimpleValue(pThis, args, 2); in Within()
2780 float oneNumber = ValueToFloat(pThis, argOne.get()); in Within()
2781 float lowNumber = ValueToFloat(pThis, argLow.get()); in Within()
2782 float heightNumber = ValueToFloat(pThis, argHigh.get()); in Within()
2797 void CFXJSE_FormCalcContext::If(CFXJSE_Value* pThis, in If() argument
2801 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"If"); in If()
2805 args.GetReturnValue()->Assign(GetSimpleValue(pThis, args, 0)->ToBoolean() in If()
2806 ? GetSimpleValue(pThis, args, 1).get() in If()
2807 : GetSimpleValue(pThis, args, 2).get()); in If()
2811 void CFXJSE_FormCalcContext::Eval(CFXJSE_Value* pThis, in Eval() argument
2814 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Eval()
2821 std::unique_ptr<CFXJSE_Value> scriptValue = GetSimpleValue(pThis, args, 0); in Eval()
2847 void CFXJSE_FormCalcContext::Ref(CFXJSE_Value* pThis, in Ref() argument
2850 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Ref()
2905 void CFXJSE_FormCalcContext::UnitType(CFXJSE_Value* pThis, in UnitType() argument
2909 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"UnitType"); in UnitType()
2913 std::unique_ptr<CFXJSE_Value> unitspanValue = GetSimpleValue(pThis, args, 0); in UnitType()
3012 void CFXJSE_FormCalcContext::UnitValue(CFXJSE_Value* pThis, in UnitValue() argument
3017 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"UnitValue"); in UnitValue()
3021 std::unique_ptr<CFXJSE_Value> unitspanValue = GetSimpleValue(pThis, args, 0); in UnitValue()
3062 std::unique_ptr<CFXJSE_Value> unitValue = GetSimpleValue(pThis, args, 1); in UnitValue()
3151 void CFXJSE_FormCalcContext::At(CFXJSE_Value* pThis, in At() argument
3155 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"At"); in At()
3159 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in At()
3160 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in At()
3161 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get())) { in At()
3178 void CFXJSE_FormCalcContext::Concat(CFXJSE_Value* pThis, in Concat() argument
3183 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Concat"); in Concat()
3190 std::unique_ptr<CFXJSE_Value> value = GetSimpleValue(pThis, args, i); in Concat()
3191 if (ValueIsNull(pThis, value.get())) in Concat()
3207 void CFXJSE_FormCalcContext::Decode(CFXJSE_Value* pThis, in Decode() argument
3212 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Decode"); in Decode()
3217 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Decode()
3218 if (ValueIsNull(pThis, argOne.get())) { in Decode()
3231 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Decode()
3232 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Decode()
3233 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get())) { in Decode()
3460 void CFXJSE_FormCalcContext::Encode(CFXJSE_Value* pThis, in Encode() argument
3465 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Encode"); in Encode()
3470 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Encode()
3471 if (ValueIsNull(pThis, argOne.get())) { in Encode()
3482 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Encode()
3483 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Encode()
3484 if (ValueIsNull(pThis, argOne.get()) || ValueIsNull(pThis, argTwo.get())) { in Encode()
3751 void CFXJSE_FormCalcContext::Format(CFXJSE_Value* pThis, in Format() argument
3754 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Format()
3760 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Format()
3763 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Format()
3832 void CFXJSE_FormCalcContext::Left(CFXJSE_Value* pThis, in Left() argument
3836 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Left"); in Left()
3840 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Left()
3841 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Left()
3842 if ((ValueIsNull(pThis, argOne.get())) || in Left()
3843 (ValueIsNull(pThis, argTwo.get()))) { in Left()
3849 int32_t count = std::max(0, ValueToInteger(pThis, argTwo.get())); in Left()
3854 void CFXJSE_FormCalcContext::Len(CFXJSE_Value* pThis, in Len() argument
3858 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Len"); in Len()
3862 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Len()
3863 if (ValueIsNull(pThis, argOne.get())) { in Len()
3873 void CFXJSE_FormCalcContext::Lower(CFXJSE_Value* pThis, in Lower() argument
3878 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Lower"); in Lower()
3882 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Lower()
3883 if (ValueIsNull(pThis, argOne.get())) { in Lower()
3910 void CFXJSE_FormCalcContext::Ltrim(CFXJSE_Value* pThis, in Ltrim() argument
3914 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Ltrim"); in Ltrim()
3918 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Ltrim()
3919 if (ValueIsNull(pThis, argOne.get())) { in Ltrim()
3930 void CFXJSE_FormCalcContext::Parse(CFXJSE_Value* pThis, in Parse() argument
3933 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Parse()
3939 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Parse()
3940 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Parse()
3941 if (ValueIsNull(pThis, argTwo.get())) { in Parse()
4064 void CFXJSE_FormCalcContext::Replace(CFXJSE_Value* pThis, in Replace() argument
4069 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Replace"); in Replace()
4073 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Replace()
4074 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Replace()
4077 if (!ValueIsNull(pThis, argOne.get()) && !ValueIsNull(pThis, argTwo.get())) { in Replace()
4084 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Replace()
4123 void CFXJSE_FormCalcContext::Right(CFXJSE_Value* pThis, in Right() argument
4127 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Right"); in Right()
4131 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Right()
4132 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Right()
4133 if ((ValueIsNull(pThis, argOne.get())) || in Right()
4134 (ValueIsNull(pThis, argTwo.get()))) { in Right()
4140 int32_t count = std::max(0, ValueToInteger(pThis, argTwo.get())); in Right()
4145 void CFXJSE_FormCalcContext::Rtrim(CFXJSE_Value* pThis, in Rtrim() argument
4149 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Rtrim"); in Rtrim()
4153 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Rtrim()
4154 if (ValueIsNull(pThis, argOne.get())) { in Rtrim()
4165 void CFXJSE_FormCalcContext::Space(CFXJSE_Value* pThis, in Space() argument
4169 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Space"); in Space()
4173 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Space()
4179 int32_t count = std::max(0, ValueToInteger(pThis, argOne.get())); in Space()
4191 void CFXJSE_FormCalcContext::Str(CFXJSE_Value* pThis, in Str() argument
4196 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Str"); in Str()
4200 std::unique_ptr<CFXJSE_Value> numberValue = GetSimpleValue(pThis, args, 0); in Str()
4205 float fNumber = ValueToFloat(pThis, numberValue.get()); in Str()
4209 std::unique_ptr<CFXJSE_Value> widthValue = GetSimpleValue(pThis, args, 1); in Str()
4210 iWidth = static_cast<int32_t>(ValueToFloat(pThis, widthValue.get())); in Str()
4216 GetSimpleValue(pThis, args, 2); in Str()
4218 0, static_cast<int32_t>(ValueToFloat(pThis, precisionValue.get()))); in Str()
4306 void CFXJSE_FormCalcContext::Stuff(CFXJSE_Value* pThis, in Stuff() argument
4311 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Stuff"); in Stuff()
4320 std::unique_ptr<CFXJSE_Value> sourceValue = GetSimpleValue(pThis, args, 0); in Stuff()
4321 std::unique_ptr<CFXJSE_Value> startValue = GetSimpleValue(pThis, args, 1); in Stuff()
4322 std::unique_ptr<CFXJSE_Value> deleteValue = GetSimpleValue(pThis, args, 2); in Stuff()
4328 static_cast<int32_t>(ValueToFloat(pThis, startValue.get())), 1, in Stuff()
4331 0, static_cast<int32_t>(ValueToFloat(pThis, deleteValue.get()))); in Stuff()
4335 std::unique_ptr<CFXJSE_Value> insertValue = GetSimpleValue(pThis, args, 3); in Stuff()
4357 void CFXJSE_FormCalcContext::Substr(CFXJSE_Value* pThis, in Substr() argument
4361 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Substr"); in Substr()
4365 std::unique_ptr<CFXJSE_Value> stringValue = GetSimpleValue(pThis, args, 0); in Substr()
4366 std::unique_ptr<CFXJSE_Value> startValue = GetSimpleValue(pThis, args, 1); in Substr()
4367 std::unique_ptr<CFXJSE_Value> endValue = GetSimpleValue(pThis, args, 2); in Substr()
4368 if (ValueIsNull(pThis, stringValue.get()) || in Substr()
4369 (ValueIsNull(pThis, startValue.get())) || in Substr()
4370 (ValueIsNull(pThis, endValue.get()))) { in Substr()
4385 iLength, 1, static_cast<int32_t>(ValueToFloat(pThis, startValue.get()))); in Substr()
4387 std::max(0, static_cast<int32_t>(ValueToFloat(pThis, endValue.get()))); in Substr()
4395 void CFXJSE_FormCalcContext::Uuid(CFXJSE_Value* pThis, in Uuid() argument
4400 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Uuid"); in Uuid()
4406 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Uuid()
4407 iNum = static_cast<int32_t>(ValueToFloat(pThis, argOne.get())); in Uuid()
4413 void CFXJSE_FormCalcContext::Upper(CFXJSE_Value* pThis, in Upper() argument
4418 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"Upper"); in Upper()
4422 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Upper()
4423 if (ValueIsNull(pThis, argOne.get())) { in Upper()
4450 void CFXJSE_FormCalcContext::WordNum(CFXJSE_Value* pThis, in WordNum() argument
4455 ToJSContext(pThis, nullptr)->ThrowParamCountMismatchException(L"WordNum"); in WordNum()
4459 std::unique_ptr<CFXJSE_Value> numberValue = GetSimpleValue(pThis, args, 0); in WordNum()
4464 float fNumber = ValueToFloat(pThis, numberValue.get()); in WordNum()
4469 GetSimpleValue(pThis, args, 1); in WordNum()
4475 static_cast<int32_t>(ValueToFloat(pThis, identifierValue.get())); in WordNum()
4480 std::unique_ptr<CFXJSE_Value> localeValue = GetSimpleValue(pThis, args, 2); in WordNum()
4649 void CFXJSE_FormCalcContext::Get(CFXJSE_Value* pThis, in Get() argument
4652 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Get()
4666 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Get()
4680 void CFXJSE_FormCalcContext::Post(CFXJSE_Value* pThis, in Post() argument
4683 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Post()
4698 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Post()
4701 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Post()
4706 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Post()
4712 std::unique_ptr<CFXJSE_Value> argFour = GetSimpleValue(pThis, args, 3); in Post()
4718 std::unique_ptr<CFXJSE_Value> argFive = GetSimpleValue(pThis, args, 4); in Post()
4736 void CFXJSE_FormCalcContext::Put(CFXJSE_Value* pThis, in Put() argument
4739 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in Put()
4754 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in Put()
4757 std::unique_ptr<CFXJSE_Value> argTwo = GetSimpleValue(pThis, args, 1); in Put()
4762 std::unique_ptr<CFXJSE_Value> argThree = GetSimpleValue(pThis, args, 2); in Put()
4779 CFXJSE_Value* pThis, in assign_value_operator() argument
4782 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in assign_value_operator()
4789 std::unique_ptr<CFXJSE_Value> rValue = GetSimpleValue(pThis, args, 1); in assign_value_operator()
4824 CFXJSE_Value* pThis, in logical_or_operator() argument
4828 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in logical_or_operator()
4832 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in logical_or_operator()
4833 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in logical_or_operator()
4839 float first = ValueToFloat(pThis, argFirst.get()); in logical_or_operator()
4840 float second = ValueToFloat(pThis, argSecond.get()); in logical_or_operator()
4846 CFXJSE_Value* pThis, in logical_and_operator() argument
4850 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in logical_and_operator()
4854 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in logical_and_operator()
4855 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in logical_and_operator()
4861 float first = ValueToFloat(pThis, argFirst.get()); in logical_and_operator()
4862 float second = ValueToFloat(pThis, argSecond.get()); in logical_and_operator()
4867 void CFXJSE_FormCalcContext::equality_operator(CFXJSE_Value* pThis, in equality_operator() argument
4871 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in equality_operator()
4875 if (fm_ref_equal(pThis, args)) { in equality_operator()
4880 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in equality_operator()
4881 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in equality_operator()
4894 double first = ValueToDouble(pThis, argFirst.get()); in equality_operator()
4895 double second = ValueToDouble(pThis, argSecond.get()); in equality_operator()
4901 CFXJSE_Value* pThis, in notequality_operator() argument
4905 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in notequality_operator()
4909 if (fm_ref_equal(pThis, args)) { in notequality_operator()
4914 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in notequality_operator()
4915 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in notequality_operator()
4928 double first = ValueToDouble(pThis, argFirst.get()); in notequality_operator()
4929 double second = ValueToDouble(pThis, argSecond.get()); in notequality_operator()
4934 bool CFXJSE_FormCalcContext::fm_ref_equal(CFXJSE_Value* pThis, in fm_ref_equal() argument
4941 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in fm_ref_equal()
4961 void CFXJSE_FormCalcContext::less_operator(CFXJSE_Value* pThis, in less_operator() argument
4965 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in less_operator()
4969 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in less_operator()
4970 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in less_operator()
4983 double first = ValueToDouble(pThis, argFirst.get()); in less_operator()
4984 double second = ValueToDouble(pThis, argSecond.get()); in less_operator()
4990 CFXJSE_Value* pThis, in lessequal_operator() argument
4994 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in lessequal_operator()
4998 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in lessequal_operator()
4999 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in lessequal_operator()
5013 double first = ValueToDouble(pThis, argFirst.get()); in lessequal_operator()
5014 double second = ValueToDouble(pThis, argSecond.get()); in lessequal_operator()
5019 void CFXJSE_FormCalcContext::greater_operator(CFXJSE_Value* pThis, in greater_operator() argument
5023 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in greater_operator()
5027 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in greater_operator()
5028 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in greater_operator()
5041 double first = ValueToDouble(pThis, argFirst.get()); in greater_operator()
5042 double second = ValueToDouble(pThis, argSecond.get()); in greater_operator()
5048 CFXJSE_Value* pThis, in greaterequal_operator() argument
5052 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in greaterequal_operator()
5056 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in greaterequal_operator()
5057 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in greaterequal_operator()
5071 double first = ValueToDouble(pThis, argFirst.get()); in greaterequal_operator()
5072 double second = ValueToDouble(pThis, argSecond.get()); in greaterequal_operator()
5077 void CFXJSE_FormCalcContext::plus_operator(CFXJSE_Value* pThis, in plus_operator() argument
5081 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in plus_operator()
5087 if (ValueIsNull(pThis, argFirst.get()) && in plus_operator()
5088 ValueIsNull(pThis, argSecond.get())) { in plus_operator()
5093 double first = ValueToDouble(pThis, argFirst.get()); in plus_operator()
5094 double second = ValueToDouble(pThis, argSecond.get()); in plus_operator()
5099 void CFXJSE_FormCalcContext::minus_operator(CFXJSE_Value* pThis, in minus_operator() argument
5103 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in minus_operator()
5107 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in minus_operator()
5108 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in minus_operator()
5114 double first = ValueToDouble(pThis, argFirst.get()); in minus_operator()
5115 double second = ValueToDouble(pThis, argSecond.get()); in minus_operator()
5120 void CFXJSE_FormCalcContext::multiple_operator(CFXJSE_Value* pThis, in multiple_operator() argument
5124 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in multiple_operator()
5128 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in multiple_operator()
5129 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in multiple_operator()
5135 double first = ValueToDouble(pThis, argFirst.get()); in multiple_operator()
5136 double second = ValueToDouble(pThis, argSecond.get()); in multiple_operator()
5141 void CFXJSE_FormCalcContext::divide_operator(CFXJSE_Value* pThis, in divide_operator() argument
5144 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in divide_operator()
5150 std::unique_ptr<CFXJSE_Value> argFirst = GetSimpleValue(pThis, args, 0); in divide_operator()
5151 std::unique_ptr<CFXJSE_Value> argSecond = GetSimpleValue(pThis, args, 1); in divide_operator()
5157 double second = ValueToDouble(pThis, argSecond.get()); in divide_operator()
5163 double first = ValueToDouble(pThis, argFirst.get()); in divide_operator()
5168 void CFXJSE_FormCalcContext::positive_operator(CFXJSE_Value* pThis, in positive_operator() argument
5172 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in positive_operator()
5176 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in positive_operator()
5181 args.GetReturnValue()->SetDouble(0.0 + ValueToDouble(pThis, argOne.get())); in positive_operator()
5185 void CFXJSE_FormCalcContext::negative_operator(CFXJSE_Value* pThis, in negative_operator() argument
5189 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in negative_operator()
5193 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in negative_operator()
5198 args.GetReturnValue()->SetDouble(0.0 - ValueToDouble(pThis, argOne.get())); in negative_operator()
5203 CFXJSE_Value* pThis, in logical_not_operator() argument
5207 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in logical_not_operator()
5211 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in logical_not_operator()
5217 double first = ValueToDouble(pThis, argOne.get()); in logical_not_operator()
5222 void CFXJSE_FormCalcContext::dot_accessor(CFXJSE_Value* pThis, in dot_accessor() argument
5225 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in dot_accessor()
5237 iIndexValue = ValueToInteger(pThis, args.GetValue(4).get()); in dot_accessor()
5263 if (ResolveObjects(pThis, hJSObjValue.get(), szSomExp.AsStringView(), in dot_accessor()
5265 ParseResolveResult(pThis, resolveNodeRS, hJSObjValue.get(), in dot_accessor()
5303 iRet = ResolveObjects(pThis, argAccessor.get(), szSomExp.AsStringView(), in dot_accessor()
5306 GetObjectForName(pThis, argAccessor.get(), in dot_accessor()
5308 iRet = ResolveObjects(pThis, argAccessor.get(), szSomExp.AsStringView(), in dot_accessor()
5320 ParseResolveResult(pThis, resolveNodeRS, argAccessor.get(), &resolveValues, in dot_accessor()
5340 void CFXJSE_FormCalcContext::dotdot_accessor(CFXJSE_Value* pThis, in dotdot_accessor() argument
5343 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in dotdot_accessor()
5355 iIndexValue = ValueToInteger(pThis, args.GetValue(4).get()); in dotdot_accessor()
5381 if (ResolveObjects(pThis, hJSObjValue.get(), szSomExp.AsStringView(), in dotdot_accessor()
5383 ParseResolveResult(pThis, resolveNodeRS, hJSObjValue.get(), in dotdot_accessor()
5421 iRet = ResolveObjects(pThis, argAccessor.get(), szSomExp.AsStringView(), in dotdot_accessor()
5424 GetObjectForName(pThis, argAccessor.get(), in dotdot_accessor()
5426 iRet = ResolveObjects(pThis, argAccessor.get(), szSomExp.AsStringView(), in dotdot_accessor()
5438 ParseResolveResult(pThis, resolveNodeRS, argAccessor.get(), &resolveValues, in dotdot_accessor()
5458 void CFXJSE_FormCalcContext::eval_translation(CFXJSE_Value* pThis, in eval_translation() argument
5461 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in eval_translation()
5467 std::unique_ptr<CFXJSE_Value> argOne = GetSimpleValue(pThis, args, 0); in eval_translation()
5487 void CFXJSE_FormCalcContext::is_fm_object(CFXJSE_Value* pThis, in is_fm_object() argument
5500 void CFXJSE_FormCalcContext::is_fm_array(CFXJSE_Value* pThis, in is_fm_array() argument
5513 void CFXJSE_FormCalcContext::get_fm_value(CFXJSE_Value* pThis, in get_fm_value() argument
5516 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in get_fm_value()
5548 void CFXJSE_FormCalcContext::get_fm_jsobj(CFXJSE_Value* pThis, in get_fm_jsobj() argument
5552 ToJSContext(pThis, nullptr)->ThrowCompilerErrorException(); in get_fm_jsobj()
5563 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in get_fm_jsobj()
5574 void CFXJSE_FormCalcContext::fm_var_filter(CFXJSE_Value* pThis, in fm_var_filter() argument
5577 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in fm_var_filter()
5586 std::unique_ptr<CFXJSE_Value> simpleValue = GetSimpleValue(pThis, args, 0); in fm_var_filter()
5601 std::unique_ptr<CFXJSE_Value> simpleValue = GetSimpleValue(pThis, args, 0); in fm_var_filter()
5628 void CFXJSE_FormCalcContext::concat_fm_object(CFXJSE_Value* pThis, in concat_fm_object() argument
5631 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in concat_fm_object()
5670 CFXJSE_Value* pThis, in GetSimpleValue() argument
5673 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in GetSimpleValue()
5710 bool CFXJSE_FormCalcContext::ValueIsNull(CFXJSE_Value* pThis, in ValueIsNull() argument
5718 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in ValueIsNull()
5720 int32_t iLength = hvalue_get_array_length(pThis, arg); in ValueIsNull()
5746 int32_t CFXJSE_FormCalcContext::hvalue_get_array_length(CFXJSE_Value* pThis, in hvalue_get_array_length() argument
5751 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in hvalue_get_array_length()
5758 bool CFXJSE_FormCalcContext::simpleValueCompare(CFXJSE_Value* pThis, in simpleValueCompare() argument
5770 float first = ValueToFloat(pThis, firstValue); in simpleValueCompare()
5771 float second = ValueToFloat(pThis, secondValue); in simpleValueCompare()
5782 CFXJSE_Value* pThis, in unfoldArgs() argument
5789 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in unfoldArgs()
5903 CFXJSE_Value* pThis, in GetObjectForName() argument
5906 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in GetObjectForName()
5927 bool CFXJSE_FormCalcContext::ResolveObjects(CFXJSE_Value* pThis, in ResolveObjects() argument
5933 CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument(); in ResolveObjects()
5978 CFXJSE_Value* pThis, in ParseResolveResult() argument
5987 CFXJSE_FormCalcContext* pContext = ToJSContext(pThis, nullptr); in ParseResolveResult()
6023 int32_t CFXJSE_FormCalcContext::ValueToInteger(CFXJSE_Value* pThis, in ValueToInteger() argument
6028 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in ValueToInteger()
6037 return ValueToInteger(pThis, newPropertyValue.get()); in ValueToInteger()
6042 return ValueToInteger(pThis, newPropertyValue.get()); in ValueToInteger()
6047 return ValueToInteger(pThis, newPropertyValue.get()); in ValueToInteger()
6055 float CFXJSE_FormCalcContext::ValueToFloat(CFXJSE_Value* pThis, in ValueToFloat() argument
6060 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in ValueToFloat()
6069 return ValueToFloat(pThis, newPropertyValue.get()); in ValueToFloat()
6073 return ValueToFloat(pThis, newPropertyValue.get()); in ValueToFloat()
6078 return ValueToFloat(pThis, newPropertyValue.get()); in ValueToFloat()
6091 double CFXJSE_FormCalcContext::ValueToDouble(CFXJSE_Value* pThis, in ValueToDouble() argument
6096 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in ValueToDouble()
6105 return ValueToDouble(pThis, newPropertyValue.get()); in ValueToDouble()
6109 return ValueToDouble(pThis, newPropertyValue.get()); in ValueToDouble()
6114 return ValueToDouble(pThis, newPropertyValue.get()); in ValueToDouble()
6124 double CFXJSE_FormCalcContext::ExtractDouble(CFXJSE_Value* pThis, in ExtractDouble() argument
6134 return ValueToDouble(pThis, src); in ExtractDouble()
6136 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in ExtractDouble()
6150 return ValueToDouble(pThis, jsObjectValue.get()); in ExtractDouble()
6155 return ValueToDouble(pThis, newPropertyValue.get()); in ExtractDouble()