/ohos5.0/foundation/ability/ability_runtime/test/moduletest/module_test_dump_util/ |
H A D | module_test_dump_util.cpp | 38 findRgx_["Want"] = regex(".*Want\\[(.+)\\].*"); in MTDumpUtil() 39 findRgx_["AbilityName"] = regex(".*main name \\[(.+)\\].*"); in MTDumpUtil() 40 findRgx_["AppName"] = regex(".*app name \\[(.+)\\].*"); in MTDumpUtil() 47 findRgx_["State"] = regex(".*state #(.+) .*"); in MTDumpUtil() 50 findRgx_["UserID"] = regex(".*User ID #(.+)\\].*"); in MTDumpUtil() 51 findRgx_["Uri"] = regex(".*uri \\[(.+)\\].*"); in MTDumpUtil() 53 findRgx_["Bindings"] = regex(".+s: (\\d+).*"); in MTDumpUtil() 54 findRgx_["Component"] = regex(".*> (.+) .+#.+"); in MTDumpUtil() 55 findRgx_["BindState"] = regex(".*> .+/.+ #(.+)"); in MTDumpUtil() 87 bool MTDumpUtil::MatchRegex(const regex& regex, const string& str, string& result) in MatchRegex() argument [all …]
|
H A D | module_test_dump_util.h | 30 using std::regex; 94 std::unordered_map<string, regex> findRgx_; 96 inline bool MatchRegex(const regex& regex, const string& str, string& result);
|
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/test/ |
H A D | decorator_test.cpp | 50 const std::vector<std::regex> REGEXS = { 51 std::regex("^Date:$"), 52 std::regex("^\\d{4}-\\d{2}-\\d{2}$"), 53 std::regex("API statistics:"), 56 std::regex("\\w{1,}::\\w{1,}(-\\d)?\\s\\d+\\s\\d+\\s\\d+\\s\\d+\\s\\d+"), 57 std::regex("Hitrace API detail statistics:"), 60 std::regex("\\w{1,}\\s\\d+\\s\\d+\\s\\d+\\s\\d+\\s\\d+\\s\\d+"), 61 std::regex("Hitrace Traffic statistics:"), 64 std::regex("\\w{1,}\\s.{1,}\\.(sys|zip)\\s\\d+\\s\\d+\\s\\d+\\s\\d{16}"), 65 std::regex("Hitrace Traffic Compress Ratio:"), [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/media_query/ |
H A D | media_queryer.cpp | 34 … MediaQueryerRule(const std::regex& regex, const ConditionParser& parser, uint32_t matchResultSize) in MediaQueryerRule() argument 35 : regex_(regex), parser_(parser), matchResultSize_(matchResultSize) in MediaQueryerRule() 37 explicit MediaQueryerRule(const std::regex& regex) : regex_(regex) {} in MediaQueryerRule() argument 59 const std::regex regex_; 120 std::regex( 193 std::regex("\\(round-screen:([a-z]+)\\)"), 201 std::regex("\\(orientation:([a-z]+)\\)"), 209 std::regex("\\(device-type:([a-z]+)\\)"), 222 std::regex("\\(device-brand:([A-Z]+)\\)"), 231 std::regex("\\(dark-mode:([a-z]+)\\)"), [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/include/ |
H A D | exif_metadata_formatter.h | 58 static bool ValidRegex(const std::string &value, const std::string ®ex); 59 static bool ValidRegexWithComma(std::string &value, const std::string ®ex); 60 static bool ValidRegexWithRationalFormat(std::string &value, const std::string ®ex); 61 static bool ValidRegexWithCommaRationalFormat(std::string &value, const std::string ®ex); 62 static bool ValidRegexWithColonRationalFormat(std::string &value, const std::string ®ex); 63 static bool ValidRegexWithDot(std::string &value, const std::string ®ex); 65 static bool ValidRegexWithVersionFormat(std::string &value, const std::string ®ex); 66 static bool ValidRegxAndConvertRationalFormat(std::string &value, const std::string ®ex); 68 static bool ValidRegexWithGpsOneRationalFormat(std::string &value, const std::string ®ex); 69 static bool ValidRegexWithChannelFormat(std::string &value, const std::string ®ex); [all …]
|
/ohos5.0/base/hiviewdfx/hiview/utility/common_utils/ |
H A D | tbox.cpp | 69 regex reNew(res); in GetPartial() 85 if (regex_search(line, regex("^\\s+at (.*)\\(.*")) || in IsCallStack() 86 regex_search(line, regex("^\\s*at .*")) || in IsCallStack() 87 regex_search(line, regex("^\\s+- (.*)\\(.*")) || in IsCallStack() 88 regex_search(line, regex("\\s+#\\d+")) || in IsCallStack() 89 regex_search(line, regex("[0-9a-zA-Z_]+\\+0x[0-9a-f]+/0x[0-9a-f]+")) || in IsCallStack() 90 regex_search(line, regex("#\\d+")) || in IsCallStack() 91 regex_search(line, regex("\\.*"))) { in IsCallStack() 133 regex re("(.+?)-(.+)==(.+)"); in GetStackName() 168 int64_t Tbox::GetHappenTime(const string& src, const string& regex) in GetHappenTime() argument [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/theme/ |
H A D | theme_utils.cpp | 28 const std::regex THEME_ID_REGEX(R"(^\"@id([0-9]+)\"$)", std::regex::icase); // regex for "@id001" 30 const std::regex THEME_ATTR_REGEX(R"(\?theme:([a-zA-Z0-9_]+))"); // regex for "?theme:attr_color_em… 34 const std::regex OHOS_ID_REGEX(R"(^@ohos_id_([0-9]+)$)", std::regex::icase); // regex for "@ohos_id… 36 const std::regex SYS_TYPE_RES_ID_REGEX(R"(^@sys.(\w+).([0-9]+)$)", std::regex::icase); 39 const std::regex APP_TYPE_RES_NAME_REGEX(R"(^@app.(\w+).(\w+)$)", std::regex::icase); 43 const std::regex SYS_MEDIA_RES_ID_REGEX(R"(^@sys\.media\.([0-9]+)$)", std::regex::icase); 45 const std::regex APP_MEDIA_RES_NAME_REGEX(R"(^@app\.media\.(\w+)$)", std::regex::icase);
|
/ohos5.0/base/global/i18n/frameworks/intl/entity_recognition/date_time_recognition/include/ |
H A D | matched_date_time_info.h | 28 MatchedDateTimeInfo(int begin, int end, std::string& regex) in MatchedDateTimeInfo() argument 29 : _begin(begin), _end(end), regex(regex), type(0), isTimePeriod(false) {} in MatchedDateTimeInfo() 42 if (regex == "") { in IsTimePeriod() 46 int key = ConvertString2Int(regex, status); in IsTimePeriod() 73 return regex; in GetRegex() 100 std::string regex; variable
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/ |
H A D | exif_metadata_formatter.cpp | 651 std::regex ratPattern(regex); in ValidRegex() 662 std::regex pattern(regex); in ReplaceAsSpace() 668 std::regex pattern(regex); in ReplaceAsContent() 676 if (!ValidRegex(value, regex)) { in ValidRegexWithComma() 814 if (!ValidRegex(value, regex)) { in ValidRegexWithRationalFormat() 827 if (!ValidRegex(value, regex)) { in ValidRegexWithCommaRationalFormat() 843 if (!ValidRegex(value, regex)) { in ValidRegexWithColonRationalFormat() 858 if (!ValidRegex(value, regex)) { in ValidRegexWithDot() 868 if (!ValidRegex(value, regex)) { in ValidRegxWithCommaDecimalRationalFormat() 1370 std::regex ratPattern(regex); in IsForbiddenValue() [all …]
|
/ohos5.0/base/global/i18n/frameworks/intl/entity_recognition/phone_number_recognition/src/ |
H A D | find_rule.cpp | 21 FindRule::FindRule(icu::UnicodeString& regex, std::string& insensitive) in FindRule() argument 23 this->regex = regex; in FindRule() 26 if (regex.length() == 0) { in FindRule() 38 …return icu::RegexPattern::compile(this->regex, URegexpFlag::UREGEX_CASE_INSENSITIVE, this->status); in GetPattern() 40 return icu::RegexPattern::compile(this->regex, 0, this->status); in GetPattern()
|
H A D | negative_rule.cpp | 20 NegativeRule::NegativeRule(icu::UnicodeString& regex, std::string& insensitive) in NegativeRule() argument 22 this->regex = regex; in NegativeRule() 25 if (regex.length() == 0) { in NegativeRule() 34 …return icu::RegexPattern::compile(this->regex, URegexpFlag::UREGEX_CASE_INSENSITIVE, this->status); in GetPattern() 36 return icu::RegexPattern::compile(this->regex, 0, this->status); in GetPattern()
|
H A D | border_rule.cpp | 22 BorderRule::BorderRule(icu::UnicodeString& regex, std::string& insensitive, std::string& type) in BorderRule() argument 24 this->regex = regex; in BorderRule() 36 if (regex.length() == 0) { in BorderRule() 53 …return icu::RegexPattern::compile(this->regex, URegexpFlag::UREGEX_CASE_INSENSITIVE, this->status); in GetPattern() 55 return icu::RegexPattern::compile(this->regex, 0, this->status); in GetPattern()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/layout/ |
H A D | templates_parser.cpp | 32 const std::regex UNIT_PIXEL_REGEX(R"(^([0-9]\d*|[0-9]\d*.\d*|0\.\d*[0-9]\d*)px$)", std::regex::icas… 33 const std::regex UNIT_RATIO_REGEX(R"(^([0-9]\d*|[0-9]\d*.\d*|0\.\d*[0-9]\d*)fr$)", std::regex::icas… 34 const std::regex UNIT_PERCENT_REGEX(R"(^([0-9]\d*|[0-9]\d*.\d*|0\.\d*[0-9]\d*)%$)", std::regex::ica… 35 const std::regex AUTO_REGEX(R"(^repeat\((.+),(.+)\))", std::regex::icase); // regex for "rep… 36 const std::regex REPEAT_NUM_REGEX(R"(^repeat\((\d+),(.+)\))", std::regex::icase); // regex for "rep… 37 const std::regex TRIM_REGEX(R"(^ +| +$|(\"[^\"\\\\]*(?:\\\\[\\s\\S][^\"\\\\]*)*\")|( ) +)", std::re… 57 std::regex pattern(SIZE_PATTERN, std::regex::icase); in SplitTemplate() 76 std::regex pattern(REPEAT_WITH_AUTOFILL, std::regex::icase); in GetRepeat() 99 std::regex pattern(INVALID_PATTERN, std::regex::icase); in CheckRepeatAndSplitString() 170 std::regex patternFilter(PREFIX_PATTERN, std::regex::icase); in CheckAutoFillParameter() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | templates_parser.cpp | 42 const std::regex UNIT_PIXEL_REGEX(R"(^([0-9]\d*|[0-9]\d*.\d*|0\.\d*[0-9]\d*)px$)", std::regex::icas… 43 const std::regex UNIT_RATIO_REGEX(R"(^([0-9]\d*|[0-9]\d*.\d*|0\.\d*[0-9]\d*)fr$)", std::regex::icas… 44 const std::regex UNIT_PERCENT_REGEX(R"(^([0-9]\d*|[0-9]\d*.\d*|0\.\d*[0-9]\d*)%$)", std::regex::ica… 46 const std::regex REPEAT_NUM_REGEX(R"(^repeat\((\d+),(.+)\))", std::regex::icase); // regex for "rep… 47 const std::regex TRIM_REGEX(R"(^ +| +$|(\"[^\"\\\\]*(?:\\\\[\\s\\S][^\"\\\\]*)*\")|( ) +)", std::re… 119 std::regex pattern(SIZE_PATTERN, std::regex::icase); in SplitTemplate() 138 std::regex pattern(REPEAT_WITH_AUTOFILL_OR_AUTOFIT, std::regex::icase); in GetRepeat() 160 std::regex pattern(INVALID_PATTERN, std::regex::icase); in CheckRepeatAndSplitString() 192 std::regex patternFilter(PREFIX_PATTERN, std::regex::icase); in CheckAutoFillParameter() 198 std::regex pattern(REPEAT_WITH_AUTOFILL_OR_AUTOFIT, std::regex::icase); in CheckAutoFillParameter() [all …]
|
/ohos5.0/base/hiviewdfx/hiview/core/platform_config/ |
H A D | hiview_platform_config.cpp | 49 RegexList_.push_back(std::regex("DEFAULT_PLUGIN_CONFIG_NAME\\s*=\\s*\"(.*)\".*")); in InitData() 50 RegexList_.push_back(std::regex("PLUGIN_CONFIG_FILE_DIR\\s*=\\s*\"(.*)\".*")); in InitData() 51 RegexList_.push_back(std::regex("DYNAMIC_LIB_SEARCH_DIR\\s*=\\s*\"(.*)\".*")); in InitData() 52 RegexList_.push_back(std::regex("DYNAMIC_LIB64_SEARCH_DIR\\s*=\\s*\"(.*)\".*")); in InitData() 53 RegexList_.push_back(std::regex("WORK_DIR\\s*=\\s*\"(.*)\".*")); in InitData() 54 RegexList_.push_back(std::regex("COMMERCIAL_WORK_DIR\\s*=\\s*\"(.*)\".*")); in InitData() 55 RegexList_.push_back(std::regex("PERSIST_DIR\\s*=\\s*\"(.*)\".*")); in InitData()
|
/ohos5.0/base/hiviewdfx/hiview/test/unittest/unified_collection/utility/ |
H A D | memory_collector_test.cpp | 49 const std::regex RAW_DMA1("^[\\w\\.\\[\\]():/>-]{1,}(\\s{1,}\\d{1,}){5}(\\s{1,}\\w{1,}){3}$"); 50 const std::regex RAW_DMA2("^(Total dmabuf size of )[\\w\\.\\[\\]():/>-]{1,}(: )\\d{1,}( bytes)$"); 53 const std::regex RAW_MEM_INFO1("^[\\w()]{1,}:\\s{1,}\\d{1,}( kB)?$"); 54 const std::regex RAW_MEM_INFO2("^[\\w()]{1,}:\\s{1,}- kB$"); 57 const std::regex RAW_MEM_VIEW_INFO1("^[\\w\\s-]{1,}:?\\s{1,}\\w{1,}( kB| \\%)?$"); 58 const std::regex RAW_MEM_VIEW_INFO2("^\\w{1,}[-\\.]\\w{1,}(-\\w{1,})?\\s{1,}\\d{1,} \\(\\d{1,} in S… 63 const std::regex RAW_PAGE_TYPE_INFO1(RAW_PAGE_TYPE_STR1 + RAW_PAGE_TYPE_STR2); 64 const std::regex RAW_PAGE_TYPE_INFO2("^(\\w{1,}\\s{1,}){5,}$"); 70 const std::regex RAW_SLAB_INFO1(RAW_SLAB_STR1 + RAW_SLAB_STR2); 73 const std::regex RAW_SLAB_INFO2(RAW_SLAB_STR3 + RAW_SLAB_STR4); [all …]
|
H A D | io_collector_test.cpp | 39 const std::regex ALL_PROC_IO_STATS1("^\\d{1,}\\s{1,}[\\w/\\.:-]{1,}\\s{1,}\\d{1,}(\\s{1,}\\d{1,}\\.… 40 const std::regex ALL_PROC_IO_STATS2("^[\\d\\s]{12}[\\s\\w/\\.:-]{13,}[\\s\\d]{13}([\\s\\d\\.]{13}){… 42 const std::regex DISK_STATS1("^\\w{1,}(\\s{1,}\\d{1,}\\.\\d{2}){4}(\\s{1,}\\d{1,}\\.\\d{4}){2}\\s{1… 43 const std::regex DISK_STATS2("^[\\w\\s]{13,}([\\s\\d\\.]{13}){4}([\\s\\d\\.]{13}){2}[\\s\\d]{13}$"); 45 const std::regex EMMC_INFO1("^[\\w\\.]{1,}\\s{1,}\\w{1,}\\s{1,}[\\w\\s]{1,}\\w{1,}\\s{1,}\\d{1,}\\.… 46 const std::regex EMMC_INFO2("^[\\w\\.\\s]{15,}([\\w\\s]{10}){3}[\\s\\d\\.]{12}$"); 48 const std::regex SYS_IO_STATS1("^\\d{1,}\\.\\d{2}(\\s{1,}\\d{1,}\\.\\d{2}){5}$"); 49 const std::regex SYS_IO_STATS2("^[\\d\\s\\.]{12}([\\d\\s\\.]{13}){5}$"); 51 bool CheckFormat(const std::string &fileName, const std::regex ®1, const std::regex ®2) in CheckFormat()
|
/ohos5.0/base/global/i18n/frameworks/intl/test/fuzztest/regexrule_fuzzer/ |
H A D | regexrule_fuzzer.cpp | 32 icu::UnicodeString regex(input.c_str()); in DoSomethingInterestingWithMyAPI() local 33 RegexRule* regexRule = new RegexRule(regex, input, input, input, input); in DoSomethingInterestingWithMyAPI() 43 regexRule->Handle(possibleNumber, regex); in DoSomethingInterestingWithMyAPI() 44 regexRule->IsValid(possibleNumber, regex); in DoSomethingInterestingWithMyAPI() 45 regexRule->CountDigits(regex); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | string_expression.cpp | 34 std::regex space(" "); in CheckCalcIsValid() 39 std::regex pattern("(\\-|\\+|\\/|\\*)(\\({0,})(calc)"); in CheckCalcIsValid() 43 std::regex leftBracketPattern("\\("); in CheckCalcIsValid() 53 std::regex rightBracketPattern("\\)"); in CheckCalcIsValid() 71 std::regex pattern("(\\-|\\+)\\d+(\\.\\d+)?"); in ReplaceSignNumber() 99 std::regex pattern("(\\-|\\+)\\d+(\\.\\d+)?(px|vp|%|fp|lpx)"); in ReplaceSignNumberWithUnit() 195 std::regex calc("calc"); in ConvertDal2Rpn() 196 std::regex space(" "); in ConvertDal2Rpn()
|
/ohos5.0/base/telephony/core_service/services/sim/src/ |
H A D | operator_matching_rule.cpp | 25 return std::regex_match(iccidFromSim, std::regex(iccidRegex)); in IccidRegexMatch() 33 return std::regex_match(imsiFromSim, std::regex(imsiRegex)); in ImsiRegexMatch() 46 return std::regex_match(spnFromSim, std::regex(spnRegex)); in SpnRegexMatch()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | ohos_file.cpp | 58 const std::regex MEDIA_RES_ID_REGEX(R"(^\w+/([0-9]+)\.\w+$)", std::regex::icase); 59 const std::regex MEDIA_HAP_RES_PATH_REGEX(R"(^(.*)$)"); 60 const std::regex MEDIA_HAP_RES_ID_REGEX(R"(^.*/([0-9]+)\.\w+$)", std::regex::icase); 61 const std::regex MEDIA_RES_NAME_REGEX(R"(^.*/(\w+)\.\w+$)", std::regex::icase);
|
/ohos5.0/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/ |
H A D | log_util.cpp | 68 start = regex_search(line, regex(startReg)); in GetTrace() 75 if (regex_search(line, matches, regex(reg))) { in GetTrace() 134 if (regex_match(sourceFileName, result, regex(dirOrFileName)) || in IsTestModel() 135 regex_match(sourceFileName, result, regex(fileName))) { in IsTestModel()
|
/ohos5.0/base/global/i18n/frameworks/intl/test/unittest/ |
H A D | intl_test_extent.cpp | 555 icu::UnicodeString regex(regexStr.c_str()); variable 1096 icu::UnicodeString regex; variable 1130 icu::UnicodeString regex(regexStr.c_str()); variable 1212 icu::UnicodeString regex(regexStr.c_str()); variable 1244 icu::UnicodeString regex(regexStr.c_str()); variable 1285 icu::UnicodeString regex(regexStr.c_str()); variable 1316 icu::UnicodeString regex(regexStr.c_str()); variable 1346 icu::UnicodeString regex(regexStr.c_str()); variable 1375 icu::UnicodeString regex(str.c_str()); variable 1406 icu::UnicodeString regex(str.c_str()); variable [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/http_source_test/ |
H A D | downloader_unit_test.cpp | 144 string regex = ""; variable 145 bool result = IsRegexValid(regex); 151 string regex = "!@#$%^&*()"; variable 152 bool result = IsRegexValid(regex); 158 string regex = "abc123"; variable 159 bool result = IsRegexValid(regex);
|
/ohos5.0/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_strategy_manager/ |
H A D | avail_buffer_manager.cpp | 138 content = std::regex_replace(content, std::regex("\n+"), " "); // replace \n with space in UpdateZramEnableFromKernel() 139 std::regex re("SwapTotal:[[:s:]]*([[:d:]]+) kB[[:s:]]*"); in UpdateZramEnableFromKernel() 163 content = std::regex_replace(content, std::regex("\n+"), " "); // replace \n with space in UpdateMemTotalFromKernel() 164 std::regex re("MemTotal:[[:s:]]*([[:d:]]+) kB[[:s:]]*"); in UpdateMemTotalFromKernel()
|