Home
last modified time | relevance | path

Searched refs:optStr (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/common/src/
H A Dcollection_option.cpp54 CollectionOption CollectionOption::ReadOption(const std::string &optStr, int &errCode) in ReadOption() argument
56 if (optStr.empty()) { in ReadOption()
60 std::string lowerCaseOptStr = optStr; in ReadOption()
102 option.option_ = optStr; in ReadOption()
/ohos5.0/foundation/ability/ability_lite/services/abilitymgr_lite/tools/src/
H A Dmain.cpp51 const char *optStr = "hap:n:e:"; in SetOptions() local
53 while ((para = getopt_long(argc, argv, optStr, options, &index)) != -1) { in SetOptions()
/ohos5.0/base/update/updater/services/ui/
H A Dupdater_ui_config.cpp75 auto optStr = subCfgPathNode.As<std::string>(); in SelectConfig() local
76 if (!optStr.has_value()) { in SelectConfig()
80 std::string subConfigPath = *optStr; in SelectConfig()
/ohos5.0/base/security/selinux_adapter/interfaces/tools/hap_restorecon/
H A Dtest.cpp68 const char *optStr = "hda:p:n:r:m:i"; in SetOptions() local
70 while ((para = getopt_long(argc, argv, optStr, options, &index)) != -1) { in SetOptions()
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/manager/
H A Ddump_implement.cpp205 const char optStr[] = "-ht:lcsa:epvT:"; in CmdParseWithParameter() local
225 int c = getopt_long(argc, argv, optStr, longOptions, &optionIndex); in CmdParseWithParameter()
237 CheckIncorrectCmdOption(optStr, argv); in CmdParseWithParameter()
703 void DumpImplement::CheckIncorrectCmdOption(const char *optStr, char *argv[]) in CheckIncorrectCmdOption() argument
707 } else if (!IsShortOptionReqArg(optStr)) { in CheckIncorrectCmdOption()
714 bool DumpImplement::IsShortOptionReqArg(const char *optStr) in IsShortOptionReqArg() argument
716 int len = strlen(optStr); in IsShortOptionReqArg()
718 if (optStr[i] == optopt) { in IsShortOptionReqArg()
719 SendErrorMessage(requireError_ + optStr[i]); in IsShortOptionReqArg()
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/include/manager/
H A Ddump_implement.h73 bool IsShortOptionReqArg(const char* optStr);
81 void CheckIncorrectCmdOption(const char* optStr, char* argv[]);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/common/include/
H A Dcollection_option.h24 static CollectionOption ReadOption(const std::string &optStr, int &errCode);
/ohos5.0/base/security/selinux_adapter/interfaces/tools/service_check/
H A Dtest.cpp69 const char *optStr = "dhlagrn:"; in SetOptions() local
71 while ((para = getopt_long(argc, argv, optStr, options, &index)) != -1) { in SetOptions()
/ohos5.0/base/security/selinux_adapter/interfaces/tools/param_check/
H A Dtest.cpp170 const char *optStr = "hgrwln:"; in SetOptions() local
172 while ((para = getopt_long(argc, argv, optStr, options, &index)) != -1) { in SetOptions()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/json_fuzzer/
H A Djson_fuzzer.cpp1529 std::string optStr = "{\"maxdoc\":" + optionStrData + "}"; in CreateCollectionFuzz() local
1530 GRD_CreateCollection(g_db, COLLECTION_NAME, optStr.c_str(), 0); in CreateCollectionFuzz()
1532 GRD_CreateCollection(g_db, COLLECTION_NAME, optStr.c_str(), MAX_SIZE_NUM); in CreateCollectionFuzz()
1533 optStr = "{\"maxdoc\": 5}"; in CreateCollectionFuzz()
1534 GRD_CreateCollection(g_db, COLLECTION_NAME, optStr.c_str(), 0); in CreateCollectionFuzz()
1535 GRD_CreateCollection(g_db, COLLECTION_NAME, optStr.c_str(), 1); in CreateCollectionFuzz()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/jsoninner_fuzzer/
H A Djsoninner_fuzzer.cpp1538 std::string optStr = "{\"maxdoc\":" + optionStrData + "}"; in CreateCollectionFuzz() local
1539 GRD_CreateCollectionInner(g_db, COLLECTION_NAME, optStr.c_str(), 0); in CreateCollectionFuzz()
1541 GRD_CreateCollectionInner(g_db, COLLECTION_NAME, optStr.c_str(), MAX_SIZE_NUM); in CreateCollectionFuzz()
1542 optStr = "{\"maxdoc\": 5}"; in CreateCollectionFuzz()
1543 GRD_CreateCollectionInner(g_db, COLLECTION_NAME, optStr.c_str(), 0); in CreateCollectionFuzz()
1544 GRD_CreateCollectionInner(g_db, COLLECTION_NAME, optStr.c_str(), 1); in CreateCollectionFuzz()