Home
last modified time | relevance | path

Searched refs:optionName (Results 1 - 11 of 11) sorted by relevance

/base/global/i18n/interfaces/js/kits/src/
H A Dvariable_convertor.cpp36 void VariableConvertor::GetOptionValue(napi_env env, napi_value options, const std::string &optionName, in GetOptionValue() argument
47 napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetOptionValue()
49 status = napi_get_named_property(env, options, optionName.c_str(), &optionValue); in GetOptionValue()
64 bool VariableConvertor::GetBoolOptionValue(napi_env env, napi_value &options, const std::string &optionName, in GetBoolOptionValue() argument
71 ErrorUtil::NapiThrow(env, I18N_NOT_VALID, optionName, "a valid object", true); in GetBoolOptionValue()
75 status = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetBoolOptionValue()
77 HILOG_INFO_I18N("option don't have property %{public}s", optionName.c_str()); in GetBoolOptionValue()
81 status = napi_get_named_property(env, options, optionName.c_str(), &optionValue); in GetBoolOptionValue()
83 HILOG_INFO_I18N("get option %{public}s failed", optionName.c_str()); in GetBoolOptionValue()
H A Dintl_addon.cpp173 void GetOptionValue(napi_env env, napi_value options, const std::string &optionName, in GetOptionValue() argument
184 napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetOptionValue()
186 status = napi_get_named_property(env, options, optionName.c_str(), &optionValue); in GetOptionValue()
195 map.insert(make_pair(optionName, optionBuf.data())); in GetOptionValue()
200 int64_t GetIntegerOptionValue(napi_env env, napi_value options, const std::string &optionName, in GetIntegerOptionValue() argument
212 napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetIntegerOptionValue()
214 status = napi_get_named_property(env, options, optionName.c_str(), &optionValue); in GetIntegerOptionValue()
218 map.insert(make_pair(optionName, std::to_string(integerValue))); in GetIntegerOptionValue()
225 void GetBoolOptionValue(napi_env env, napi_value options, const std::string &optionName, in GetBoolOptionValue() argument
236 napi_status propStatus = napi_has_named_property(env, options, optionName in GetBoolOptionValue()
[all...]
/base/startup/init/services/begetctl/
H A Dsandbox.cpp208 std::string optionName = g_options[optIndex].name; in main_cmd() local
209 if (optionName == "service_name") { in main_cmd()
211 } else if (optionName == "help") { in main_cmd()
213 } else if (optionName == "namespace_name") { in main_cmd()
215 } else if (optionName == "process_name") { in main_cmd()
217 } else if (optionName == "process_pid") { in main_cmd()
/base/global/i18n/interfaces/js/kits/include/
H A Dvariable_convertor.h32 static void GetOptionValue(napi_env env, napi_value options, const std::string &optionName, std::string &value);
33 static bool GetBoolOptionValue(napi_env env, napi_value &options, const std::string &optionName, bool &boolVal);
H A Dintl_addon.h34 void GetOptionValue(napi_env env, napi_value options, const std::string &optionName,
36 void GetBoolOptionValue(napi_env env, napi_value options, const std::string &optionName,
38 int64_t GetIntegerOptionValue(napi_env env, napi_value options, const std::string &optionName,
H A Di18n_addon.h37 void GetOptionValue(napi_env env, napi_value options, const std::string &optionName,
/base/print/print_fwk/frameworks/helper/scan_helper/include/
H A Dscan_option_descriptor.h31 void SetOptionName(const std::string &optionName);
/base/print/print_fwk/frameworks/helper/scan_helper/src/
H A Dscan_option_descriptor.cpp63 void ScanOptionDescriptor::SetOptionName(const std::string &optionName) in SetOptionName() argument
65 optionName_ = optionName; in SetOptionName()
235 SCAN_HILOGD("optionName = %{public}s", optionName_.c_str()); in Dump()
H A Dscan_option_descriptor_helper.cpp22 static constexpr const char *PARAM_OPTION_NAME = "optionName";
84 std::string optionName = NapiScanUtils::GetStringPropertyUtf8(env, jsValue, PARAM_OPTION_NAME); in GetValueFromJs() local
85 nativeObj->SetOptionName(optionName); in GetValueFromJs()
/base/hiviewdfx/hidumper/frameworks/native/src/manager/
H A Ddump_implement.cpp323 std::string optionName = RemoveCharacterFromStr(argv[optind - 1], '-'); in SetCmdParameter() local
324 std::string errorStr = unrecognizedError_ + optionName; in SetCmdParameter()
462 std::string optionName = RemoveCharacterFromStr(argv[optind - 1], '-'); in ParseCmdOptionForA() local
463 std::string errorStr = unrecognizedError_ + optionName; in ParseCmdOptionForA()
/base/print/print_fwk/test/fuzztest/scanhelper_fuzzer/
H A Dscanhelper_fuzzer.cpp43 std::string optionName = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in TestSetOptionName() local
44 scanOptDes.SetOptionName(optionName); in TestSetOptionName()
45 optionName = scanOptDes.GetOptionName(); in TestSetOptionName()
136 std::string optionName = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in TestSetOptionConstraintRange() local
137 scanOptDes.SetOptionName(optionName); in TestSetOptionConstraintRange()

Completed in 9 milliseconds