Lines Matching refs:pRuntime
122 CJS_Runtime* pRuntime = in JSGlobalFunc() local
124 if (!pRuntime) in JSGlobalFunc()
131 CJS_Return result = (*F)(pRuntime, parameters); in JSGlobalFunc()
133 pRuntime->Error( in JSGlobalFunc()
317 CJS_Runtime* pRuntime, in AF_MakeArrayFromList() argument
320 return pRuntime->ToArray(val); in AF_MakeArrayFromList()
322 WideString wsStr = pRuntime->ToWideString(val); in AF_MakeArrayFromList()
327 v8::Local<v8::Array> StrArray = pRuntime->NewArray(); in AF_MakeArrayFromList()
331 pRuntime->PutArrayElement( in AF_MakeArrayFromList()
333 pRuntime->NewString(StrTrim(ByteString(p)).c_str())); in AF_MakeArrayFromList()
337 pRuntime->PutArrayElement( in AF_MakeArrayFromList()
339 pRuntime->NewString(StrTrim(ByteString(p, pTemp - p)).c_str())); in AF_MakeArrayFromList()
866 CJS_Runtime* pRuntime, in AFNumber_Format() argument
873 pRuntime->GetCurrentEventContext()->GetEventHandler(); in AFNumber_Format()
882 int iDec = abs(pRuntime->ToInt32(params[0])); in AFNumber_Format()
883 int iSepStyle = ValidStyleOrZero(pRuntime->ToInt32(params[1])); in AFNumber_Format()
884 int iNegStyle = ValidStyleOrZero(pRuntime->ToInt32(params[2])); in AFNumber_Format()
886 WideString wstrCurrency = pRuntime->ToWideString(params[4]); in AFNumber_Format()
887 bool bCurrencyPrepend = pRuntime->ToBoolean(params[5]); in AFNumber_Format()
940 v8::Local<v8::Array> arColor = pRuntime->NewArray(); in AFNumber_Format()
941 pRuntime->PutArrayElement(arColor, 0, pRuntime->NewString(L"RGB")); in AFNumber_Format()
942 pRuntime->PutArrayElement(arColor, 1, pRuntime->NewNumber(1)); in AFNumber_Format()
943 pRuntime->PutArrayElement(arColor, 2, pRuntime->NewNumber(0)); in AFNumber_Format()
944 pRuntime->PutArrayElement(arColor, 3, pRuntime->NewNumber(0)); in AFNumber_Format()
945 fTarget->set_text_color(pRuntime, arColor); in AFNumber_Format()
951 v8::Local<v8::Array> arColor = pRuntime->NewArray(); in AFNumber_Format()
952 pRuntime->PutArrayElement(arColor, 0, pRuntime->NewString(L"RGB")); in AFNumber_Format()
953 pRuntime->PutArrayElement(arColor, 1, pRuntime->NewNumber(0)); in AFNumber_Format()
954 pRuntime->PutArrayElement(arColor, 2, pRuntime->NewNumber(0)); in AFNumber_Format()
955 pRuntime->PutArrayElement(arColor, 3, pRuntime->NewNumber(0)); in AFNumber_Format()
957 CJS_Return result = fTarget->get_text_color(pRuntime); in AFNumber_Format()
959 pRuntime, pRuntime->ToArray(result.Return())); in AFNumber_Format()
960 CFX_Color crColor = color::ConvertArrayToPWLColor(pRuntime, arColor); in AFNumber_Format()
962 fTarget->set_text_color(pRuntime, arColor); in AFNumber_Format()
973 CJS_Runtime* pRuntime, in AFNumber_Keystroke() argument
978 CJS_EventContext* pContext = pRuntime->GetCurrentEventContext(); in AFNumber_Keystroke()
1018 int iSepStyle = ValidStyleOrZero(pRuntime->ToInt32(params[1])); in AFNumber_Keystroke()
1061 CJS_Runtime* pRuntime, in AFPercent_Format() argument
1068 pRuntime->GetCurrentEventContext()->GetEventHandler(); in AFPercent_Format()
1077 int iDec = abs(pRuntime->ToInt32(params[0])); in AFPercent_Format()
1078 int iSepStyle = ValidStyleOrZero(pRuntime->ToInt32(params[1])); in AFPercent_Format()
1139 CJS_Runtime* pRuntime, in AFPercent_Keystroke() argument
1141 return AFNumber_Keystroke(pRuntime, params); in AFPercent_Keystroke()
1146 CJS_Runtime* pRuntime, in AFDate_FormatEx() argument
1151 CJS_EventContext* pContext = pRuntime->GetCurrentEventContext(); in AFDate_FormatEx()
1161 WideString sFormat = pRuntime->ToWideString(params[0]); in AFDate_FormatEx()
1221 CJS_Runtime* pRuntime, in AFDate_KeystrokeEx() argument
1228 CJS_EventContext* pContext = pRuntime->GetCurrentEventContext(); in AFDate_KeystrokeEx()
1238 WideString sFormat = pRuntime->ToWideString(params[0]); in AFDate_KeystrokeEx()
1254 CJS_Runtime* pRuntime, in AFDate_Format() argument
1275 WithinBoundsOrZero(pRuntime->ToInt32(params[0]), FX_ArraySize(cFormats)); in AFDate_Format()
1277 newParams.push_back(pRuntime->NewString(cFormats[iIndex])); in AFDate_Format()
1278 return AFDate_FormatEx(pRuntime, newParams); in AFDate_Format()
1283 CJS_Runtime* pRuntime, in AFDate_Keystroke() argument
1304 WithinBoundsOrZero(pRuntime->ToInt32(params[0]), FX_ArraySize(cFormats)); in AFDate_Keystroke()
1306 newParams.push_back(pRuntime->NewString(cFormats[iIndex])); in AFDate_Keystroke()
1307 return AFDate_KeystrokeEx(pRuntime, newParams); in AFDate_Keystroke()
1312 CJS_Runtime* pRuntime, in AFTime_Format() argument
1321 WithinBoundsOrZero(pRuntime->ToInt32(params[0]), FX_ArraySize(cFormats)); in AFTime_Format()
1323 newParams.push_back(pRuntime->NewString(cFormats[iIndex])); in AFTime_Format()
1324 return AFDate_FormatEx(pRuntime, newParams); in AFTime_Format()
1328 CJS_Runtime* pRuntime, in AFTime_Keystroke() argument
1337 WithinBoundsOrZero(pRuntime->ToInt32(params[0]), FX_ArraySize(cFormats)); in AFTime_Keystroke()
1339 newParams.push_back(pRuntime->NewString(cFormats[iIndex])); in AFTime_Keystroke()
1340 return AFDate_KeystrokeEx(pRuntime, newParams); in AFTime_Keystroke()
1344 CJS_Runtime* pRuntime, in AFTime_FormatEx() argument
1346 return AFDate_FormatEx(pRuntime, params); in AFTime_FormatEx()
1350 CJS_Runtime* pRuntime, in AFTime_KeystrokeEx() argument
1352 return AFDate_KeystrokeEx(pRuntime, params); in AFTime_KeystrokeEx()
1357 CJS_Runtime* pRuntime, in AFSpecial_Format() argument
1363 pRuntime->GetCurrentEventContext()->GetEventHandler(); in AFSpecial_Format()
1369 switch (pRuntime->ToInt32(params[0])) { in AFSpecial_Format()
1393 CJS_Runtime* pRuntime, in AFSpecial_KeystrokeEx() argument
1398 CJS_EventContext* pContext = pRuntime->GetCurrentEventContext(); in AFSpecial_KeystrokeEx()
1404 WideString wstrMask = pRuntime->ToWideString(params[0]); in AFSpecial_KeystrokeEx()
1472 CJS_Runtime* pRuntime, in AFSpecial_Keystroke() argument
1478 pRuntime->GetCurrentEventContext()->GetEventHandler(); in AFSpecial_Keystroke()
1483 switch (pRuntime->ToInt32(params[0])) { in AFSpecial_Keystroke()
1502 params2.push_back(pRuntime->NewString(cFormat)); in AFSpecial_Keystroke()
1503 return AFSpecial_KeystrokeEx(pRuntime, params2); in AFSpecial_Keystroke()
1507 CJS_Runtime* pRuntime, in AFMergeChange() argument
1513 pRuntime->GetCurrentEventContext()->GetEventHandler(); in AFMergeChange()
1520 return CJS_Return(pRuntime->NewString(swValue.c_str())); in AFMergeChange()
1524 return CJS_Return(pRuntime->NewString(merged.c_str())); in AFMergeChange()
1528 CJS_Runtime* pRuntime, in AFParseDateEx() argument
1533 WideString sValue = pRuntime->ToWideString(params[0]); in AFParseDateEx()
1534 WideString sFormat = pRuntime->ToWideString(params[1]); in AFParseDateEx()
1539 AlertIfPossible(pRuntime->GetCurrentEventContext(), swMsg.c_str()); in AFParseDateEx()
1542 return CJS_Return(pRuntime->NewNumber(dDate)); in AFParseDateEx()
1546 CJS_Runtime* pRuntime, in AFSimple() argument
1551 return CJS_Return(pRuntime->NewNumber(static_cast<double>(AF_Simple( in AFSimple()
1552 pRuntime->ToWideString(params[0]).c_str(), pRuntime->ToDouble(params[1]), in AFSimple()
1553 pRuntime->ToDouble(params[2]))))); in AFSimple()
1557 CJS_Runtime* pRuntime, in AFMakeNumber() argument
1562 WideString ws = pRuntime->ToWideString(params[0]); in AFMakeNumber()
1566 pRuntime->MaybeCoerceToNumber(pRuntime->NewString(ws.c_str())); in AFMakeNumber()
1568 return CJS_Return(pRuntime->NewNumber(0)); in AFMakeNumber()
1573 CJS_Runtime* pRuntime, in AFSimple_Calculate() argument
1582 pRuntime->GetFormFillEnv()->GetInterForm(); in AFSimple_Calculate()
1585 WideString sFunction = pRuntime->ToWideString(params[0]); in AFSimple_Calculate()
1589 AF_MakeArrayFromList(pRuntime, params[0]); in AFSimple_Calculate()
1591 for (size_t i = 0; i < pRuntime->GetArrayLength(FieldNameArray); ++i) { in AFSimple_Calculate()
1593 pRuntime->ToWideString(pRuntime->GetArrayElement(FieldNameArray, i)); in AFSimple_Calculate()
1654 CJS_EventContext* pContext = pRuntime->GetCurrentEventContext(); in AFSimple_Calculate()
1657 pRuntime->ToWideString(pRuntime->NewNumber(dValue)); in AFSimple_Calculate()
1666 CJS_Runtime* pRuntime, in AFRange_Validate() argument
1671 CJS_EventContext* pContext = pRuntime->GetCurrentEventContext(); in AFRange_Validate()
1680 bool bGreaterThan = pRuntime->ToBoolean(params[0]); in AFRange_Validate()
1681 double dGreaterThan = pRuntime->ToDouble(params[1]); in AFRange_Validate()
1682 bool bLessThan = pRuntime->ToBoolean(params[2]); in AFRange_Validate()
1683 double dLessThan = pRuntime->ToDouble(params[3]); in AFRange_Validate()
1690 pRuntime->ToWideString(params[1]).c_str(), in AFRange_Validate()
1691 pRuntime->ToWideString(params[3]).c_str()); in AFRange_Validate()
1696 pRuntime->ToWideString(params[1]).c_str()); in AFRange_Validate()
1701 pRuntime->ToWideString(params[3]).c_str()); in AFRange_Validate()
1712 CJS_Runtime* pRuntime, in AFExtractNums() argument
1717 WideString str = pRuntime->ToWideString(params[0]); in AFExtractNums()
1722 v8::Local<v8::Array> nums = pRuntime->NewArray(); in AFExtractNums()
1728 pRuntime->PutArrayElement(nums, nIndex, in AFExtractNums()
1729 pRuntime->NewString(sPart.c_str())); in AFExtractNums()
1735 pRuntime->PutArrayElement(nums, nIndex, pRuntime->NewString(sPart.c_str())); in AFExtractNums()
1737 if (pRuntime->GetArrayLength(nums) > 0) in AFExtractNums()
1739 return CJS_Return(pRuntime->NewUndefined()); in AFExtractNums()