Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 55) sorted by relevance

123

/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
Dnet_diag_wrapper.cpp134 std::smatch match; in GetRouteTable() local
135 if (!std::regex_search(line, match, routeRegex)) { in GetRouteTable()
138 ExtractRouteTableInfo(match, routeTables); in GetRouteTable()
178 std::smatch match; in GetSocketsInfo() local
179 if (std::regex_search(line, match, netProtoRegex)) { in GetSocketsInfo()
180 ExtractNetProtoSocketsInfo(match, socketsInfo); in GetSocketsInfo()
184 if (std::regex_search(line, match, unixRegex)) { in GetSocketsInfo()
185 ExtractUnixSocketsInfo(match, socketsInfo); in GetSocketsInfo()
210 std::smatch match; in GetInterfaceConfig() local
216 if (std::regex_search(line, match, nameRegex)) { in GetInterfaceConfig()
[all …]
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
Dnet_diag_wrapper.h55 void ExtractPingHeader(const std::smatch &match, NetDiagPingResult &pingResult);
56 void ExtractIcmpSeqInfo(const std::smatch &match, NetDiagPingResult &pingResult);
57 void ExtractPingStatistics(const std::smatch &match, NetDiagPingResult &pingResult);
58 void ExtractRouteTableInfo(const std::smatch &match, std::list<NetDiagRouteTable> &routeTables);
59 void ExtractNetProtoSocketsInfo(const std::smatch &match, NetDiagSocketsInfo &socketsInfo);
60 void ExtractUnixSocketsInfo(const std::smatch &match, NetDiagSocketsInfo &socketsInfo);
61 void ExtractIfaceName(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo);
62 void ExtractIfaceInet(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo);
63 void ExtractIfaceInet6(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo);
64 void ExtractIfaceMtu(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo);
[all …]
/foundation/bundlemanager/app_domain_verify/interfaces/inner_api/common/src/utils/
Ddomain_url_util.cpp37 std::smatch match; in GetHost() local
38 if (std::regex_match(url, match, HOST_PATTERN)) { in GetHost()
39 … return match.size() >= HOST_PATTERN_MATCH_SIZE ? match[HOST_PATTERN_MATCH_SIZE - 1].str() : ""; in GetHost()
45 std::smatch match; in GetScheme() local
46 if (std::regex_search(url, match, SCHEME_PATTERN)) { in GetScheme()
47 …return match.size() >= SCHEME_PATTERN_MATCH_SIZE ? match[SCHEME_PATTERN_MATCH_SIZE - 1].str() : ""; in GetScheme()
/foundation/ability/ability_base/test/unittest/want/
Dpatterns_matcher_test.cpp121 EXPECT_EQ(PatternsMatcherIn_->match("abcdefg"), true);
122 EXPECT_EQ(PatternsMatcherIn_->match("Abcdefg"), false);
135 EXPECT_EQ(PatternsMatcherIn_->match("abcdefgABCDEFG"), true);
136 EXPECT_EQ(PatternsMatcherIn_->match("AbcdefgABCDEFG"), false);
149 EXPECT_EQ(PatternsMatcherIn_->match("abcdefgG"), true);
150 EXPECT_EQ(PatternsMatcherIn_->match("abcccccdefgG"), true);
151 EXPECT_EQ(PatternsMatcherIn_->match("abcdefg"), false);
152 EXPECT_EQ(PatternsMatcherIn_->match("ABCDEFG"), false);
165 EXPECT_EQ(PatternsMatcherIn_->match("abcABC123"), true);
166 EXPECT_EQ(PatternsMatcherIn_->match("abcdefgABCDEFG123"), true);
[all …]
/foundation/ability/ability_base/interfaces/kits/native/want/src/
Dpatterns_matcher.cpp84 bool PatternsMatcher::match(std::string match) in match() function in OHOS::AAFwk::PatternsMatcher
86 return MatchPattern(pattern_, match, type_); in match()
98 bool PatternsMatcher::MatchPattern(std::string pattern, std::string match, MatchType type) in MatchPattern() argument
100 if (match.empty()) { in MatchPattern()
105 return pattern == match; in MatchPattern()
108 return match.find(pattern) == 0; in MatchPattern()
112 return regex_match(match, regex_); in MatchPattern()
115 return GlobPattern(pattern, match); in MatchPattern()
132 bool PatternsMatcher::GlobPattern(std::string pattern, std::string match) in GlobPattern() argument
149 size_t find_pos_m = match.find(p, indexM); in GlobPattern()
[all …]
Dskills.cpp723 int match = RESULT_EMPTY; in MatchData() local
732 match = RESULT_SCHEME; in MatchData()
739match = HasSchemeSpecificPart(data.GetSchemeSpecificPart()) ? RESULT_SCHEME_SPECIFIC_PART : DISMAT… in MatchData()
741 if (match != RESULT_SCHEME_SPECIFIC_PART) { in MatchData()
750 match = authMatch; in MatchData()
752 match = RESULT_PATH; in MatchData()
758 if (match == DISMATCH_DATA) { in MatchData()
769 match = RESULT_TYPE; in MatchData()
779 return match + RESULT_NORMAL; in MatchData()
/foundation/ability/ability_base/interfaces/kits/native/want/include/
Dpatterns_matcher.h72 bool match(std::string str);
83 static bool MatchPattern(std::string pattern, std::string match, MatchType type);
112 static bool GlobPattern(std::string pattern, std::string match);
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
Dengine_helper.cpp123 std::pair<int32_t, int32_t> EngineHelper::StringToPair(const std::string& match) in StringToPair() argument
127 StringUtils::SplitStr(match, ":", arr); in StringToPair()
143 std::smatch match; in GetPositionOnJsCode() local
144 if (std::regex_search(stack, match, reg)) { in GetPositionOnJsCode()
145 return StringToPair(match[0].str()); in GetPositionOnJsCode()
Dengine_helper.h82 static std::pair<int32_t, int32_t> StringToPair(const std::string& match);
/foundation/resourceschedule/ffrt/tools/ffrt_trace_process/
Dffrt_trace_process.py54 match = m.group()
55 if '-' in match:
58 return int(match.split(')')[0].lstrip('('))
69 match = m.group()
71 return int(match.split(']')[0].split('[')[-1])
82 match = m.group()
84 … return int(match.strip().split('.')[0]) * int(1e6) + int(match.strip().rstrip(':').split('.')[-1])
94 match = m.group()
96 return (match.split('|')[-2], int(match.split('|')[-1]))
101 match = m.group()
[all …]
Dffrt_trace_recover.py33 match = m.group()
35 return match.strip()[:-1]
46 match = m.group()
48 return match.split(']')[0].split('[')[-1]
177 match = re.search(" \(.+\)\s+\[\d", log)
178 if match is not None:
179 tid = int(log[:match.span()[0]].split('-')[-1])
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
Dskia_runtime_effect.cpp37 std::smatch match; in GlslToSksl() local
39 while (std::regex_search(searchStart, glsl.cend(), match, functionRegex)) { in GlslToSksl()
40 childNames.emplace_back(match[1].str()); in GlslToSksl()
41 searchStart = match.suffix().first; in GlslToSksl()
/foundation/multimodalinput/input/service/device_config/src/
Ddevice_config_file_parser.cpp106 std::smatch match; in ReadConfigFile() local
107 bool isNumber = std::regex_search(tmp, match, std::regex("\\d+")); in ReadConfigFile()
111 configList[ConfigItemName2Id(key)] = std::stoi(match[0]); in ReadConfigFile()
/foundation/distributeddatamgr/pasteboard/framework/innerkits/src/
Dpasteboard_web_controller.cpp117 std::smatch match; in SplitHtmlWithImgSrcLabel() local
123 while (std::regex_search(iterStart, iterEnd, match, re)) { in SplitHtmlWithImgSrcLabel()
124 std::string tmp = match[0]; in SplitHtmlWithImgSrcLabel()
125 iterStart = match[0].second; in SplitHtmlWithImgSrcLabel()
126 uint32_t offset = static_cast<uint32_t>(match[0].first - node.first.begin()); in SplitHtmlWithImgSrcLabel()
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtsp/include/
Drtsp_url.h40 std::regex match("^rtsp://(([a-zA-Z0-9]+):([a-zA-Z0-9]+)@)?([a-zA-Z0-9.-]+)(:([0-9]+))?"); in Parse()
42 if (!std::regex_search(url, sm, match)) { in Parse()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
Dexif_metadata_formatter.cpp687 std::smatch match; in RationalFormat() local
688 if (!std::regex_search(value, match, pattern)) { in RationalFormat()
694 result += match.str() + "/1"; // appending '/1' to integer in RationalFormat()
695 value = match.suffix().str(); // skip handled value part in RationalFormat()
732 std::smatch match = *it; in DecimalRationalFormat() local
733 IMAGE_LOGD("Matched value: %{public}s", ((std::string)match[0]).c_str()); in DecimalRationalFormat()
741 if (ValidRegex(match[0], "\\d+")) { in DecimalRationalFormat()
743 result += match.str() + "/1"; in DecimalRationalFormat()
744 IMAGE_LOGD("Matched integer value: %{public}s", ((std::string)match[0]).c_str()); in DecimalRationalFormat()
746 if (ValidRegex(match[0], "\\d+\\.\\d+")) { in DecimalRationalFormat()
[all …]
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/demo/
Dhvigorw.bat34 echo Please set the NODE_HOME variable in your environment to match the
47 echo Please set the NODE_HOME variable in your environment to match the
/foundation/multimodalinput/input/frameworks/proxy/events/test/
Dinput_manager_filter_manual_test.cpp194 std::smatch match; in GetSelfHidumperFilter() local
195 if (!std::regex_match(line, match, itemRegex)) { in GetSelfHidumperFilter()
200 if (match.size() != matchSize) { in GetSelfHidumperFilter()
204 std::string priority = match[1].str(); in GetSelfHidumperFilter()
205 std::string filterId = match[2].str(); in GetSelfHidumperFilter()
206 std::string pidStr = match[3].str(); in GetSelfHidumperFilter()
/foundation/multimedia/player_framework/services/utils/
Dtime_format_utils.cpp37 std::smatch match; in FormatDateTimeByTimeZone() local
38 if (!std::regex_match(iso8601Str, match, pattern)) { in FormatDateTimeByTimeZone()
/foundation/arkui/ace_engine/interfaces/napi/kits/mediaquery/
Djs_media_query.cpp39 MediaQueryResult(bool match, const std::string& media) : matches_(match), media_(media) {} in MediaQueryResult()
64 MediaQueryListener(bool match, const std::string& media) : MediaQueryResult(match, media) {} in MediaQueryListener() argument
/foundation/communication/bluetooth_service/test/example/bluetoothtest/
Dhvigorw.bat48 echo Please set the NODE_HOME variable in your environment to match the
61 echo Please set the NODE_HOME variable in your environment to match the
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/PathDrawingSample/
Dhvigorw.bat47 echo Please set the NODE_HOME variable in your environment to match the
60 echo Please set the NODE_HOME variable in your environment to match the
/foundation/arkui/ace_engine/test/mock/base/
Dmock_engine_helper.cpp67 std::pair<int32_t, int32_t> EngineHelper::StringToPair(const std::string& match) in StringToPair() argument
/foundation/communication/wifi/wifi/application/wifi_direct_demo/
Dgradlew.bat47 echo Please set the JAVA_HOME variable in your environment to match the
61 echo Please set the JAVA_HOME variable in your environment to match the
/foundation/ability/form_fwk/services/src/
Dform_util.cpp261 std::smatch match; in ConvertStringToInt64() local
262 if (regex_match(strInfo, match, pattern)) { in ConvertStringToInt64()

123