#include "fxjs/cjs_util.h"
#include <math.h>
#include <time.h>
#include <algorithm>
#include <string>
#include <vector>
#include "build/build_config.h"
#include "core/fxcrt/check_op.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/fx_extension.h"
#include "core/fxcrt/span.h"
#include "fxjs/cjs_event_context.h"
#include "fxjs/cjs_object.h"
#include "fxjs/cjs_publicmethods.h"
#include "fxjs/cjs_runtime.h"
#include "fxjs/fx_date_helpers.h"
#include "fxjs/fxv8.h"
#include "fxjs/js_define.h"
#include "fxjs/js_resources.h"
#include "v8/include/v8-date.h"
#if BUILDFLAG(IS_ANDROID)
#include <ctype.h>
#endif
namespace {
struct TbConvert { … };
struct TbConvertAdditional { … };
const TbConvert kTbConvertTable[] = …;
enum CaseMode { … };
wchar_t TranslateCase(wchar_t input, CaseMode eMode) { … }
}
const JSMethodSpec CJS_Util::MethodSpecs[] = …;
uint32_t CJS_Util::ObjDefnID = …;
const char CJS_Util::kName[] = …;
uint32_t CJS_Util::GetObjDefnID() { … }
void CJS_Util::DefineJSObjects(CFXJS_Engine* pEngine) { … }
CJS_Util::CJS_Util(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime)
: … { … }
CJS_Util::~CJS_Util() = default;
CJS_Result CJS_Util::printf(CJS_Runtime* pRuntime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJS_Util::printd(CJS_Runtime* pRuntime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJS_Util::printx(CJS_Runtime* pRuntime,
pdfium::span<v8::Local<v8::Value>> params) { … }
WideString CJS_Util::StringPrintx(const WideString& wsFormat,
const WideString& wsSource) { … }
CJS_Result CJS_Util::scand(CJS_Runtime* pRuntime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJS_Util::byteToChar(CJS_Runtime* pRuntime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Util::DataType CJS_Util::ParseDataType(WideString* sFormat) { … }