/foundation/arkui/ace_engine/frameworks/core/components/theme/ |
H A D | theme_utils.cpp | 60 std::smatch matches; in ParseThemeIdReference() local 62 if (str.size() > THEME_ID_MIN_SIZE && std::regex_match(str, matches, THEME_ID_REGEX) && in ParseThemeIdReference() 63 matches.size() == THEME_ID_MATCH_SIZE) { in ParseThemeIdReference() 65 result.id = static_cast<uint32_t>(std::stoul(matches[1].str())); in ParseThemeIdReference() 70 if (str.size() > THEME_ATTR_MIN_SIZE && std::regex_match(str, matches, THEME_ATTR_REGEX) && in ParseThemeIdReference() 71 matches.size() == THEME_ID_MATCH_SIZE) { in ParseThemeIdReference() 72 result.refAttr = matches[1].str(); in ParseThemeIdReference() 77 if (str.size() > OHOS_ID_MIN_SIZE && std::regex_match(str, matches, OHOS_ID_REGEX) && in ParseThemeIdReference() 78 matches.size() == THEME_ID_MATCH_SIZE) { in ParseThemeIdReference() 80 result.id = static_cast<uint32_t>(std::stoul(matches[ in ParseThemeIdReference() 143 std::smatch matches; ProcessImageSource() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | color.cpp | 90 std::smatch matches; in FromString() local 92 if (std::regex_match(colorStr, matches, COLOR_WITH_MAGIC)) { in FromString() 102 if (std::regex_match(colorStr, matches, COLOR_WITH_MAGIC_MINI)) { in FromString() 118 if (std::regex_match(colorStr, matches, COLOR_WITH_RGB)) { in FromString() 119 if (matches.size() == RGB_SUB_MATCH_SIZE) { in FromString() 120 auto red = static_cast<uint8_t>(std::stoi(matches[1])); // red value. in FromString() 121 auto green = static_cast<uint8_t>(std::stoi(matches[2])); // green value. in FromString() 122 auto blue = static_cast<uint8_t>(std::stoi(matches[3])); // blue value. in FromString() 127 if (std::regex_match(colorStr, matches, COLOR_WITH_RGBA)) { in FromString() 128 if (matches in FromString() [all...] |
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/stream/src/local/src/ |
H A D | cast_local_file_channel_common.cpp | 116 std::smatch matches; in ParseHttpRangeHeader() local 117 if (!std::regex_search(range, matches, regex)) { in ParseHttpRangeHeader() 121 if (!ParseStringToInt64(matches[RANGE_START_IDX].str(), start) || start <= INVALID_END_POS) { in ParseHttpRangeHeader() 126 if (matches[RANGE_END_IDX].str().empty()) { in ParseHttpRangeHeader() 131 if (!ParseStringToInt64(matches[RANGE_END_IDX].str(), end)) { in ParseHttpRangeHeader() 156 std::smatch matches; in IsLocalFile() local 157 return std::regex_search(url, matches, regex); in IsLocalFile() 280 std::smatch matches; in ParseHttpResponse() local 281 if (!std::regex_search(response[CONTENT_RANGE], matches, regexRange)) { in ParseHttpResponse() 284 response.insert({ HTTP_RSP_CONTENT_RANGE_START, matches[ in ParseHttpResponse() [all...] |
/foundation/CastEngine/castengine_cast_plus_stream/src/stream/src/local/src/ |
H A D | cast_local_file_channel_common.cpp | 116 std::smatch matches; in ParseHttpRangeHeader() local 117 if (!std::regex_search(range, matches, regex)) { in ParseHttpRangeHeader() 121 if (!ParseStringToInt64(matches[RANGE_START_IDX].str(), start) || start <= INVALID_END_POS) { in ParseHttpRangeHeader() 126 if (matches[RANGE_END_IDX].str().empty()) { in ParseHttpRangeHeader() 131 if (!ParseStringToInt64(matches[RANGE_END_IDX].str(), end)) { in ParseHttpRangeHeader() 156 std::smatch matches; in IsLocalFile() local 157 return std::regex_search(url, matches, regex); in IsLocalFile() 280 std::smatch matches; in ParseHttpResponse() local 281 if (!std::regex_search(response[CONTENT_RANGE], matches, regexRange)) { in ParseHttpResponse() 284 response.insert({ HTTP_RSP_CONTENT_RANGE_START, matches[ in ParseHttpResponse() [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | ohos_file.cpp | 252 std::smatch matches; in GetResourceId() local 253 if (std::regex_match(uri, matches, MEDIA_RES_ID_REGEX) && matches.size() == OHOS_RESOURCE_MATCH_SIZE) { in GetResourceId() 254 resId = static_cast<uint32_t>(std::stoul(matches[1].str())); in GetResourceId() 267 std::smatch matches; in GetResourceId() local 268 if (std::regex_match(uri, matches, MEDIA_HAP_RES_PATH_REGEX) && matches.size() == OHOS_RESOURCE_MATCH_SIZE) { in GetResourceId() 269 path = matches[1].str(); in GetResourceId() 277 std::smatch matches; in GetResourceName() local 278 if (std::regex_match(uri, matches, MEDIA_RES_NAME_REGE in GetResourceName() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_attributes_parser.cpp | 218 std::smatch matches; in ParseRGBAMagicColor() local 219 if (!std::regex_match(value, matches, COLOR_WITH_RGBA_MAGIC)) { in ParseRGBAMagicColor() 273 std::smatch matches; in CheckColorAlpha() local 274 if (std::regex_match(colorStr, matches, COLOR_WITH_ALPHA)) { in CheckColorAlpha() 275 if (matches.size() == RGBA_SUB_MATCH_SIZE) { in CheckColorAlpha() 276 auto red = static_cast<uint8_t>(std::stoi(matches[1])); in CheckColorAlpha() 277 auto green = static_cast<uint8_t>(std::stoi(matches[2])); in CheckColorAlpha() 278 auto blue = static_cast<uint8_t>(std::stoi(matches[3])); in CheckColorAlpha() 279 auto alpha = static_cast<double>(std::stod(matches[4])); in CheckColorAlpha()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_sceneview.cpp | 74 std::smatch matches; in GetResourceId() local 75 if (std::regex_match(uri, matches, MODEL_RES_ID_REGEX) && matches.size() == MODEL_RESOURCE_MATCH_SIZE) { in GetResourceId() 76 resId = static_cast<uint32_t>(std::stoul(matches[1].str())); in GetResourceId() 90 std::smatch matches; in GetResourceId() local 91 if (std::regex_match(uri, matches, MODEL_APP_RES_PATH_REGEX) && matches.size() == MODEL_RESOURCE_MATCH_SIZE) { in GetResourceId() 92 path = matches[1].str(); in GetResourceId() 100 std::smatch matches; in GetResourceName() local 101 if (std::regex_match(uri, matches, MODEL_RES_NAME_REGE in GetResourceName() [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | sharing_manager.cpp | 395 std::smatch matches; in GetNetworkSharingTraffic() local 396 std::regex_search(line, matches, IP_RE); in GetNetworkSharingTraffic() 397 if (matches.size() < MAX_MATCH_SIZE) { in GetNetworkSharingTraffic() 400 for (uint32_t i = 0; i < matches.size() - 1; i++) { in GetNetworkSharingTraffic() 401 std::string tempMatch = matches[i]; in GetNetworkSharingTraffic() 403 if (matches[i] == downIface && matches[i + NEXT_LIST_CORRECT_DATA] == upIface && in GetNetworkSharingTraffic() 406 static_cast<int64_t>(strtoul(matches[i - TWO_LIST_CORRECT_DATA].str().c_str(), nullptr, 0)); in GetNetworkSharingTraffic() 410 } else if (matches[i] == upIface && matches[ in GetNetworkSharingTraffic() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/ |
H A D | templates_parser.cpp | 319 std::smatch matches; 321 if (handledArg.size() > REPEAT_MIN_SIZE && std::regex_match(handledArg, matches, AUTO_REGEX)) { 322 handledArg = matches[1].str() + matches[2].str(); 325 if (handledArg.size() > REPEAT_MIN_SIZE && std::regex_match(handledArg, matches, REPEAT_NUM_REGEX)) { in regex_match() 326 auto count = StringUtils::StringToInt(matches[1].str()); in regex_match() 327 std::string repeatString = matches[2].str(); in regex_match() 329 repeatString.append(" " + std::string(matches[2].str())); in regex_match()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | rosen_media_player.cpp | 334 std::smatch matches; in GetResourceId() local 335 if (std::regex_match(path, matches, MEDIA_RES_ID_REGEX) && matches.size() == MEDIA_RESOURCE_MATCH_SIZE) { in GetResourceId() 336 resId = static_cast<uint32_t>(std::stoul(matches[1].str())); in GetResourceId() 351 std::smatch matches; in GetResourceId() local 352 if (std::regex_match(uri, matches, MEDIA_APP_RES_PATH_REGEX) && matches.size() == MEDIA_RESOURCE_MATCH_SIZE) { in GetResourceId() 353 path = matches[1].str(); in GetResourceId()
|
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/base/ |
H A D | interface_utils.h | 87 * @brief Checks if a list of uids matches a given set of requirements. 102 size_t matches = strict ? reqs.size() : 1; variable 106 if (--matches == 0) {
|
/foundation/graphic/graphic_3d/lume/metaobject/src/ |
H A D | object.cpp | 113 size_t matches = 0; in CheckRequiredInterfaces() local 116 matches++; in CheckRequiredInterfaces() 119 return matches == uids.size(); in CheckRequiredInterfaces()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | templates_parser.cpp | 269 std::smatch matches; in ConvertRepeatArgs() local 271 if (handledArg.size() > REPEAT_MIN_SIZE && std::regex_match(handledArg, matches, AUTO_REGEX)) { in ConvertRepeatArgs() 272 handledArg = matches[1].str() + matches[CROSS_WIDTH].str(); in ConvertRepeatArgs() 275 if (handledArg.size() > REPEAT_MIN_SIZE && std::regex_match(handledArg, matches, REPEAT_NUM_REGEX)) { in ConvertRepeatArgs() 276 auto count = StringUtils::StringToInt(matches[1].str()); in ConvertRepeatArgs() 277 std::string repeatString = matches[CROSS_WIDTH].str(); in ConvertRepeatArgs() 279 repeatString.append(" " + std::string(matches[CROSS_WIDTH].str())); in ConvertRepeatArgs()
|
/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/ |
H A D | bitmap_manager.h | 363 std::vector<Ip4RuleBitmapVector::iterator> matches; in OrInsert() local 367 matches.emplace_back(it); in OrInsert() 370 if (matches.empty()) { in OrInsert() 377 for (const auto &it : matches) { in OrInsert() 434 std::vector<Ip6RuleBitmapVector::iterator> matches; in OrInsert() local 442 matches.emplace_back(it); in OrInsert() 445 if (matches.empty()) { in OrInsert() 452 for (const auto &it : matches) { in OrInsert()
|
/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | scene_session_manager_lifecycle_test2.cpp | 108 std::smatch matches; in GetTaskCount() local 110 while (std::regex_search(dumpInfo, matches, pattern)) { in GetTaskCount() 111 taskNum += std::stoi(matches.str()); in GetTaskCount() 112 dumpInfo = matches.suffix(); in GetTaskCount()
|
H A D | session_lifecycle_test.cpp | 123 std::smatch matches; in GetTaskCount() local 125 while (std::regex_search(dumpInfo, matches, pattern)) { in GetTaskCount() 126 taskNum += std::stoi(matches.str()); in GetTaskCount() 127 dumpInfo = matches.suffix(); in GetTaskCount()
|
H A D | scene_session_manager_lifecycle_test.cpp | 107 std::smatch matches; in GetTaskCount() local 109 while (std::regex_search(dumpInfo, matches, pattern)) { in GetTaskCount() 110 taskNum += std::stoi(matches.str()); in GetTaskCount() 111 dumpInfo = matches.suffix(); in GetTaskCount()
|
/foundation/arkui/ace_engine/frameworks/core/image/ |
H A D | image_loader.cpp | 564 std::smatch matches; in GetResourceId() local 565 if (std::regex_match(uri, matches, MEDIA_RES_ID_REGEX) && matches.size() == MEDIA_RESOURCE_MATCH_SIZE) { in GetResourceId() 566 resId = static_cast<uint32_t>(std::stoul(matches[1].str())); in GetResourceId() 581 std::smatch matches; in GetResourceId() local 582 if (std::regex_match(uri, matches, MEDIA_APP_RES_PATH_REGEX) && matches.size() == MEDIA_RESOURCE_MATCH_SIZE) { in GetResourceId() 583 path = matches[1].str(); in GetResourceId() 592 std::smatch matches; in GetResourceName() local 593 if (std::regex_match(uri, matches, MEDIA_RES_NAME_REGE in GetResourceName() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/font/ |
H A D | rosen_font_loader.cpp | 238 std::smatch matches; in LoadFromResource() 239 if (std::regex_match(fontLoader->familySrc_, matches, RAWFILE_APP_RES_PATH_REGEX) && in LoadFromResource() 240 matches.size() == RAWFILE_RESOURCE_MATCH_SIZE) { in LoadFromResource() 241 rawFile = matches[1].str(); in LoadFromResource()
|
/foundation/arkui/ace_engine/advanced_ui_component/chip/interfaces/ |
H A D | chip.js | 347 const matches = dimension.match(t1); 348 if (!matches || matches.length < 3) { 351 const value = Number.parseFloat(matches[1]); 1052 let matches = value.match(p1); 1053 if (!matches) { 1056 let length = Number(matches?.[1] ?? 0); 1057 let unit = matches?.[2] ?? 'vp'; 1569 if (h1.matches) { 1574 if (g1.matches) { [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/utils/ |
H A D | napi_utils.cpp | 69 std::smatch matches; in ReplaceHolder() local 73 while (std::regex_search(start, end, matches, RESOURCE_APP_STRING_PLACEHOLDER)) { in ReplaceHolder() 74 std::string pos = matches[2]; in ReplaceHolder() 75 std::string type = matches[4]; in ReplaceHolder() 103 originStr.replace(matches[0].first - originStr.begin(), matches[0].length(), replaceContentStr); in ReplaceHolder() 104 start = originStr.begin() + matches.prefix().length() + replaceContentStr.length(); in ReplaceHolder()
|
/foundation/arkui/ace_engine/advanced_ui_component/chipgroup/interfaces/ |
H A D | chipgroup.js | 146 const matches = dimension.match(q4); 147 if (!matches || matches.length < 3) { 150 const value = Number.parseFloat(matches[1]);
|
/foundation/arkui/ace_engine/advanced_ui_component/foldsplitcontainer/interfaces/ |
H A D | foldsplitcontainer.js | 279 this.isSmallScreen = this.listener.matches; 281 this.isSmallScreen = m4.matches;
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/service_impl/ |
H A D | types.rs | 54 matches!(self, Value::Asset(_) | Value::Assets(_))
|
/foundation/arkui/ace_engine/frameworks/core/components/grid_layout/ |
H A D | render_grid_layout.cpp | 613 std::smatch matches; 616 if (handledArg.size() > REPEAT_MIN_SIZE && std::regex_match(handledArg, matches, AUTO_REGEX)) { 617 handledArg = matches[1].str() + matches[2].str(); 620 if (handledArg.size() > REPEAT_MIN_SIZE && std::regex_match(handledArg, matches, REPEAT_NUM_REGEX)) { 621 auto count = StringUtils::StringToInt(matches[1].str()); 622 std::string repeatString = matches[2].str(); 624 repeatString.append(" " + std::string(matches[2].str()));
|