Home
last modified time | relevance | path

Searched refs:match (Results 1 - 25 of 54) sorted by relevance

123

/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A 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, nameRege in GetInterfaceConfig()
377 std::smatch match; ExtractPingResult() local
400 ExtractPingHeader(const std::smatch &match, NetDiagPingResult &pingResult) ExtractPingHeader() argument
419 ExtractIcmpSeqInfo(const std::smatch &match, NetDiagPingResult &pingResult) ExtractIcmpSeqInfo() argument
443 ExtractPingStatistics(const std::smatch &match, NetDiagPingResult &pingResult) ExtractPingStatistics() argument
457 ExtractRouteTableInfo(const std::smatch &match, std::list<NetDiagRouteTable> &routeTables) ExtractRouteTableInfo() argument
487 ExtractNetProtoSocketsInfo(const std::smatch &match, NetDiagSocketsInfo &socketsInfo) ExtractNetProtoSocketsInfo() argument
518 ExtractUnixSocketsInfo(const std::smatch &match, NetDiagSocketsInfo &socketsInfo) ExtractUnixSocketsInfo() argument
545 ExtractIfaceName(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo) ExtractIfaceName() argument
569 ExtractIfaceInet(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo) ExtractIfaceInet() argument
589 ExtractIfaceInet6(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo) ExtractIfaceInet6() argument
599 ExtractIfaceMtu(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo) ExtractIfaceMtu() argument
611 ExtractIfaceTxQueueLen(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo) ExtractIfaceTxQueueLen() argument
624 ExtractIfaceTransDataBytes(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo) ExtractIfaceTransDataBytes() argument
[all...]
/foundation/ability/ability_base/interfaces/kits/native/want/src/
H A Dpatterns_matcher.cpp82 * @return Returns either a valid match constant.
84 bool PatternsMatcher::match(std::string match) in match() argument
86 return MatchPattern(pattern_, match, type_); in match()
93 * @param match The full data string to match against.
96 * @return Returns either a valid match constant.
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()
132 GlobPattern(std::string pattern, std::string match) GlobPattern() argument
[all...]
H A Dskills.cpp312 * @param matchType the specified match type.
365 * @param matchType the specified match type.
537 * @param matchType the specified match type.
626 * @param matchType the specified match type.
646 * @param want The desired want data to match for.
670 * skills, the match fails.
675 * @return If all entities match (success), null; else the name of the
676 * first entity that didn't match.
695 * specify any actions, the match will always fail.
711 * @param data The full data string to match agains
723 int match = RESULT_EMPTY; MatchData() local
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A 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, NetDiagIfaceConfi
[all...]
/foundation/ability/ability_base/test/unittest/want/
H A Dpatterns_matcher_test.cpp121 EXPECT_EQ(PatternsMatcherIn_->match("abcdefg"), true); in HWTEST_F()
122 EXPECT_EQ(PatternsMatcherIn_->match("Abcdefg"), false); in HWTEST_F()
135 EXPECT_EQ(PatternsMatcherIn_->match("abcdefgABCDEFG"), true); in HWTEST_F()
136 EXPECT_EQ(PatternsMatcherIn_->match("AbcdefgABCDEFG"), false); in HWTEST_F()
149 EXPECT_EQ(PatternsMatcherIn_->match("abcdefgG"), true); in HWTEST_F()
150 EXPECT_EQ(PatternsMatcherIn_->match("abcccccdefgG"), true); in HWTEST_F()
151 EXPECT_EQ(PatternsMatcherIn_->match("abcdefg"), false); in HWTEST_F()
152 EXPECT_EQ(PatternsMatcherIn_->match("ABCDEFG"), false); in HWTEST_F()
165 EXPECT_EQ(PatternsMatcherIn_->match("abcABC123"), true); in HWTEST_F()
166 EXPECT_EQ(PatternsMatcherIn_->match("abcdefgABCDEFG12 in HWTEST_F()
[all...]
/foundation/multimodalinput/input/service/libinput_adapter/src/
H A Dlibinput_adapter.cpp122 std::smatch match;
124 if (std::regex_search(str_path, match, re)) {
125 id = std::stoi(match[0]);
227 std::smatch match; in OnDeviceAdded() local
229 if (std::regex_search(str_path, match, re)) { in OnDeviceAdded()
230 id = std::stoi(match[0]); in OnDeviceAdded()
252 std::smatch match; in OnDeviceRemoved() local
254 if (std::regex_search(str_path, match, re)) { in OnDeviceRemoved()
255 id = std::stoi(match[0]); in OnDeviceRemoved()
/foundation/ability/ability_base/interfaces/kits/native/want/include/
H A Dpatterns_matcher.h70 * @return Returns either a valid match constant.
72 bool match(std::string str);
78 * @param match The full data string to match against.
81 * @return Returns either a valid match constant.
83 static bool MatchPattern(std::string pattern, std::string match, MatchType type);
108 * @param match The full data string to match against.
110 * @return Returns either a valid match constant.
112 static bool GlobPattern(std::string pattern, std::string match);
[all...]
/foundation/resourceschedule/ffrt/tools/ffrt_trace_process/
H A 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
[all...]
H A 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/arkui/ace_engine/frameworks/bridge/common/utils/
H A Dengine_helper.cpp115 std::pair<int32_t, int32_t> EngineHelper::StringToPair(const std::string& match) in StringToPair() argument
119 StringUtils::SplitStr(match, ":", arr); in StringToPair()
135 std::smatch match; in GetPositionOnJsCode() local
136 if (std::regex_search(stack, match, reg)) { in GetPositionOnJsCode()
137 return StringToPair(match[0].str()); in GetPositionOnJsCode()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A 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/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dexif_metadata_formatter.cpp688 std::smatch match; in RationalFormat() local
689 if (!std::regex_search(value, match, pattern)) { in RationalFormat()
695 result += match.str() + "/1"; // appending '/1' to integer in RationalFormat()
696 value = match.suffix().str(); // skip handled value part in RationalFormat()
733 std::smatch match = *it; in DecimalRationalFormat() local
741 if (ValidRegex(match[0], "\\d+")) { in DecimalRationalFormat()
743 result += match.str() + "/1"; in DecimalRationalFormat()
745 if (ValidRegex(match[0], "\\d+\\.\\d+")) { in DecimalRationalFormat()
747 result += GetFractionFromStr(match[0]); in DecimalRationalFormat()
763 std::smatch match in ConvertRationalFormat() local
898 std::smatch match = *it; ValidRegexWithVersionFormat() local
924 std::smatch match = *it; ValidRegexWithChannelFormat() local
1384 std::smatch match = *i; ExtractValue() local
[all...]
/foundation/multimodalinput/input/service/device_config/src/
H A Ddevice_config_file_parser.cpp107 std::smatch match; in ReadConfigFile() local
108 bool isNumber = std::regex_search(tmp, match, std::regex("\\d+")); in ReadConfigFile()
112 configList[ConfigItemName2Id(key)] = std::stoi(match[0]); in ReadConfigFile()
/foundation/arkui/ace_engine/frameworks/base/i18n/
H A Ddate_time_sequence.cpp103 std::smatch match; in GetDateTimeOrder() local
104 bool found = std::regex_search(result, match, pattrn); in GetDateTimeOrder()
150 std::smatch match; in GetAmPmTimeOrder() local
151 bool found = std::regex_search(result, match, pattrn); in GetAmPmTimeOrder()
/foundation/arkui/ace_engine/interfaces/napi/kits/component_test/
H A Djs_component_test_utils.cpp58 std::smatch match; in GetComponentTestEtsPosition() local
59 if (std::regex_search(stack, match, reg)) { in GetComponentTestEtsPosition()
60 LOGI("position %{public}s", match[1].str().c_str()); in GetComponentTestEtsPosition()
61 return (match[1].str()); in GetComponentTestEtsPosition()
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtsp/include/
H A 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/distributeddatamgr/pasteboard/framework/innerkits/src/
H A Dpasteboard_web_controller.cpp120 std::smatch match; variable
126 while (std::regex_search(iterStart, iterEnd, match, re)) {
127 std::string tmp = match[0];
128 iterStart = match[0].second;
129 uint32_t offset = static_cast<uint32_t>(match[0].first - node.first.begin());
/foundation/multimodalinput/input/frameworks/proxy/events/test/
H A Dinput_manager_filter_manual_test.cpp189 std::smatch match; in GetSelfHidumperFilter() local
190 if (!std::regex_match(line, match, itemRegex)) { in GetSelfHidumperFilter()
191 MMI_HILOGI("Not match line:%{public}s", line.c_str()); in GetSelfHidumperFilter()
194 MMI_HILOGI("Line match: %{public}s", line.c_str()); in GetSelfHidumperFilter()
195 if (match.size() != matchSize) { in GetSelfHidumperFilter()
199 std::string priority = match[1].str(); in GetSelfHidumperFilter()
200 std::string filterId = match[2].str(); in GetSelfHidumperFilter()
201 std::string pidStr = match[3].str(); in GetSelfHidumperFilter()
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/demo/
H A 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/multimedia/media_foundation/services/media_monitor/client/src/
H A Dmedia_monitor_manager.cpp150 bool match = false; in GetMediaParameters() local
155 match = true; in GetMediaParameters()
160 FALSE_RETURN_V_MSG_E(match, ERROR, "get media param invalid param"); in GetMediaParameters()
/foundation/arkui/ace_engine/build/tools/
H A Dgen_uicontext_ohos.py36 class_name = re.match(r"class\s+(\w+)", line).group(1)
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/PathDrawingSample/
H A 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/multimedia/player_framework/services/utils/
H A Dtime_format_utils.cpp37 std::smatch match; in FormatDateTimeByTimeZone() local
38 if (!std::regex_match(iso8601Str, match, pattern)) { in FormatDateTimeByTimeZone()
/foundation/communication/bluetooth_service/test/example/bluetoothtest/
H A 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/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dtemplates_parser.cpp91 std::smatch match; in ParseUnit() local
96 } else if (val.str.find(UNIT_VP) != std::string::npos || std::regex_match(val.str, match, pattern)) { in ParseUnit()
454 std::smatch match;
455 if (std::regex_match(args, match, pattern)) {
456 if (match.size() == STRETCH_MATCH_SIZE) {
457 track.str = match[1].str();

Completed in 13 milliseconds

123