Lines Matching refs:pRuntime
81 CJS_Return util::printf(CJS_Runtime* pRuntime, in printf() argument
87 std::wstring unsafe_fmt_string(pRuntime->ToWideString(params[0]).c_str()); in printf()
121 pRuntime->ToInt32(params[iIndex])); in printf()
125 pRuntime->ToDouble(params[iIndex])); in printf()
130 pRuntime->ToWideString(params[iIndex]).c_str()); in printf()
140 return CJS_Return(pRuntime->NewString(c_strResult.c_str())); in printf()
143 CJS_Return util::printd(CJS_Runtime* pRuntime, in printd() argument
153 if (v8_date.IsEmpty() || std::isnan(pRuntime->ToDouble(v8_date))) { in printd()
158 double date = JS_LocalTime(pRuntime->ToDouble(v8_date)); in printd()
168 switch (pRuntime->ToInt32(params[0])) { in printd()
185 return CJS_Return(pRuntime->NewString(swResult.c_str())); in printd()
190 if (iSize > 2 && pRuntime->ToBoolean(params[2])) in printd()
196 pRuntime->ToWideString(params[0]).c_str(); in printd()
247 return CJS_Return(pRuntime->NewString(cFormat.c_str())); in printd()
253 CJS_Return util::printx(CJS_Runtime* pRuntime, in printx() argument
259 pRuntime->NewString(printx(pRuntime->ToWideString(params[0]), in printx()
260 pRuntime->ToWideString(params[1])) in printx()
362 CJS_Return util::scand(CJS_Runtime* pRuntime, in scand() argument
367 WideString sFormat = pRuntime->ToWideString(params[0]); in scand()
368 WideString sDate = pRuntime->ToWideString(params[1]); in scand()
374 return CJS_Return(pRuntime->NewUndefined()); in scand()
375 return CJS_Return(pRuntime->NewDate(dDate)); in scand()
378 CJS_Return util::byteToChar(CJS_Runtime* pRuntime, in byteToChar() argument
383 int arg = pRuntime->ToInt32(params[0]); in byteToChar()
388 return CJS_Return(pRuntime->NewString(wStr.c_str())); in byteToChar()