/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | net_diag_wrapper.cpp | 134 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 D | patterns_matcher.cpp | 82 * @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...] |
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/ |
H A D | net_diag_wrapper.h | 55 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 D | patterns_matcher_test.cpp | 121 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...] |
/device/soc/rockchip/common/sdk_linux/drivers/media/v4l2-core/ |
H A D | v4l2-async.c | 59 return client && asd->match.i2c.adapter_id == client->adapter->nr && asd->match.i2c.address == client->addr; in match_i2c() 67 return !strcmp(asd->match.device_name, dev_name(sd->dev)); in match_devname() 83 if (sd->fwnode == asd->match.fwnode) { in match_fwnode() 89 * endpoint or a device. If they're of the same type, there's no match. in match_fwnode() 93 * match unconnected endpoints. in match_fwnode() 96 asd_fwnode_is_ep = fwnode_graph_is_endpoint(asd->match.fwnode); in match_fwnode() 107 other_fwnode = asd->match.fwnode; in match_fwnode() 109 dev_fwnode = fwnode_graph_get_port_parent(asd->match.fwnode); in match_fwnode() 120 * We have a heterogeneous match in match_fwnode() [all...] |
/foundation/multimodalinput/input/service/libinput_adapter/src/ |
H A D | libinput_adapter.cpp | 122 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()
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
H A D | bcmnvram.h | 131 * @param name name of variable to match 132 * @param match value to compare against value of variable 134 * to match or FALSE otherwise 137 nvram_match(const char *name, const char *match) in nvram_match() argument 143 * resulting in 'match' being an unused parameter. in nvram_match() 144 * Make a ref to 'match' to quiet the compiler warning. in nvram_match() 147 BCM_REFERENCE(match); in nvram_match() 149 return (value && !strcmp(value, match)); in nvram_match() 154 * @param name name of variable to match 156 * @param match valu 161 nvram_match_bitflag(const char *name, const int bit, const char *match) nvram_match_bitflag() argument [all...] |
/foundation/ability/ability_base/interfaces/kits/native/want/include/ |
H A D | patterns_matcher.h | 70 * @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 D | ffrt_trace_process.py | 54 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...] |
/device/soc/rockchip/common/vendor/drivers/rockchip/ |
H A D | grf.c | 208 const struct of_device_id *match;
in rockchip_grf_init() local 213 np = of_find_matching_node_and_match(NULL, rockchip_grf_dt_match, &match);
in rockchip_grf_init() 217 if (!match || !match->data) {
in rockchip_grf_init() 222 grf_info = match->data;
in rockchip_grf_init()
|
/device/soc/rockchip/common/sdk_linux/drivers/soc/rockchip/ |
H A D | grf.c | 208 const struct of_device_id *match;
in rockchip_grf_init() local 213 np = of_find_matching_node_and_match(NULL, rockchip_grf_dt_match, &match);
in rockchip_grf_init() 217 if (!match || !match->data) {
in rockchip_grf_init() 223 grf_info = match->data;
in rockchip_grf_init()
|
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | engine_helper.cpp | 115 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()
|
/device/soc/rockchip/common/sdk_linux/drivers/cpufreq/ |
H A D | cpufreq-dt-platdev.c | 403 const struct of_device_id *match; in cpufreq_dt_platdev_init() local 410 match = of_match_node(whitelist, np); in cpufreq_dt_platdev_init() 411 if (match) { in cpufreq_dt_platdev_init() 412 data = match->data; in cpufreq_dt_platdev_init()
|
/device/soc/rockchip/rk3588/kernel/scripts/ |
H A D | mkbootimg | 200 match = re.search(r'^(\d{1,3})(?:\.(\d{1,3})(?:\.(\d{1,3}))?)?', x) 201 if match: 202 a = int(match.group(1)) 204 if match.lastindex >= 2: 205 b = int(match.group(2)) 206 if match.lastindex == 3: 207 c = int(match.group(3)) 217 match = re.search(r'^(\d{4})-(\d{2})(?:-(\d{2}))?', x) 218 if match: 219 y = int(match [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/regulator/ |
H A D | of_regulator.c | 319 * @matches: match table for the regulators 320 * @num_matches: number of entries in match table 322 * This function uses a match table specified by the regulator driver to 327 * or otherwise the child node's name. Note that the match table is modified 357 struct of_regulator_match *match = &matches[i]; in of_regulator_match() local 358 match->init_data = NULL; in of_regulator_match() 359 match->of_node = NULL; in of_regulator_match() 369 struct of_regulator_match *match = &matches[i]; in of_regulator_match() local 370 if (match->of_node) { in of_regulator_match() 374 if (strcmp(match in of_regulator_match() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_runtime_effect.cpp | 37 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 D | exif_metadata_formatter.cpp | 688 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 D | device_config_file_parser.cpp | 107 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()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/ |
H A D | mk_prim_xml_step1.py | 140 match=re.search('PRIM_XML_HI_DIAG_LOG_MSG_', line)
141 if match:
153 match=re.search('_PRIM_PRI_', line)
154 if match:
|
/device/soc/rockchip/rk3588/kernel/drivers/clk/rockchip/ |
H A D | clk-link.c | 132 const struct of_device_id *match; in rockchip_clk_link_probe() local 137 match = of_match_node(rockchip_clk_link_of_match, node); in rockchip_clk_link_probe() 138 if (!match) in rockchip_clk_link_probe() 146 priv->link = match->data; in rockchip_clk_link_probe()
|
/foundation/arkui/ace_engine/frameworks/base/i18n/ |
H A D | date_time_sequence.cpp | 103 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 D | js_component_test_utils.cpp | 58 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()
|
/device/soc/rockchip/common/sdk_linux/include/media/ |
H A D | v4l2-async.h | 22 * in order to identify a match 25 * v4l2_async_subdev.match ops 31 * algorithm that will be used to match an asynchronous device. 43 * @match_type: type of match that will be used 44 * @match: union of per-bus type matching data sets 45 * @match.fwnode: 48 * @match.device_name: 51 * @match.i2c: embedded struct with I2C parameters to be matched. 52 * Both @match.i2c.adapter_id and @match 89 bool (*match)(struct device *dev, struct v4l2_async_subdev *sd); global() member 92 } match; global() member [all...] |
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtsp/include/ |
H A D | rtsp_url.h | 40 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 D | pasteboard_web_controller.cpp | 120 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());
|