/base/startup/init/services/utils/ |
H A D | list.c | 85 ListNode *match; in OH_ListAddWithOrder() local 91 match = head->next; in OH_ListAddWithOrder() 92 while ((match != NULL) && (match != head)) { in OH_ListAddWithOrder() 93 if (compareProc(match, item) > 0) { in OH_ListAddWithOrder() 96 match = match->next; in OH_ListAddWithOrder() 98 if (match == NULL) { in OH_ListAddWithOrder() 103 item->next = match; in OH_ListAddWithOrder() 104 item->prev = match in OH_ListAddWithOrder() 119 ListNode *match; OH_ListFind() local 154 ListNode *match; OH_ListTraversal() local [all...] |
/base/global/i18n/frameworks/intl/entity_recognition/date_time_recognition/src/ |
H A D | date_time_filter.cpp | 93 MatchedDateTimeInfo match = (*matchIterator); in FilterByRules() local 97 if (match.GetBegin() >= clearMatch.GetBegin() && match.GetEnd() <= clearMatch.GetEnd()) { in FilterByRules() 123 MatchedDateTimeInfo match = (*matchIterator); in FilterByPast() local 125 if ((key < 200 && pastMatch.GetEnd() == match.GetBegin()) || in FilterByPast() 127 (key >= 200 && pastMatch.GetBegin() == match.GetEnd())) { in FilterByPast() 140 for (MatchedDateTimeInfo& match : matches) { in FilterOverlayFirst() 145 if (!(currentMatch.GetBegin() == match.GetBegin() && currentMatch.GetEnd() == match.GetEnd()) && in FilterOverlayFirst() 146 !(currentMatch.GetBegin() < match in FilterOverlayFirst() 220 MatchedDateTimeInfo match = matches[i]; FilterDate() local 260 DealMatchE(icu::UnicodeString& content, MatchedDateTimeInfo& nextMatch, MatchedDateTimeInfo& match) DealMatchE() argument 294 MatchedDateTimeInfo match = matches[matchIndex]; FilterDateTime() local 349 MatchedDateTimeInfo match = matches[matchIndex]; FilterPeriod() local 392 MatchedDateTimeInfo match = matches[matchIndex]; FilterDateTimePunc() local [all...] |
H A D | date_rule_init.cpp | 122 for (MatchedDateTimeInfo& match : tempMatches) { in GetMatches() 123 GetMatchedInfo(matches, match, message); in GetMatches() 129 void DateRuleInit::GetMatchedInfo(std::vector<MatchedDateTimeInfo>& matches, MatchedDateTimeInfo& match, in GetMatchedInfo() argument 133 if (subDetectsMap.find(match.GetRegex()) != subDetectsMap.end()) { in GetMatchedInfo() 134 RulesEngine subRulesEngine = subDetectsMap[match.GetRegex()]; in GetMatchedInfo() 135 icu::UnicodeString subMessage = message.tempSubString(match.GetBegin(), match.GetEnd() - match.GetBegin()); in GetMatchedInfo() 138 subMatch.SetBegin(subMatch.GetBegin() + match.GetBegin()); in GetMatchedInfo() 139 subMatch.SetEnd(subMatch.GetEnd() + match in GetMatchedInfo() [all...] |
/base/global/i18n/frameworks/intl/entity_recognition/phone_number_recognition/src/ |
H A D | phone_number_matched.cpp | 73 for (auto& match : matchList) { in DealWithoutFixed() 74 if (match == nullptr) continue; in DealWithoutFixed() 76 icu::UnicodeString content = match->raw_string().c_str(); in DealWithoutFixed() 77 PhoneNumber phoneNumber = match->number(); in DealWithoutFixed() 79 info.SetBegin(match->start()); in DealWithoutFixed() 80 info.SetEnd(match->end()); in DealWithoutFixed() 84 delete match; in DealWithoutFixed() 194 PhoneNumberMatch* match = new PhoneNumberMatch(start, number, phoneNumber); in AddPhoneNumber() local 195 matchList.push_back(match); in AddPhoneNumber() 302 for (auto match in GetPossibleNumberInfos() 404 HandleBorderRule(PhoneNumberMatch* match, icu::UnicodeString& message) HandleBorderRule() argument 424 PhoneNumberMatch* match = phoneNumberMatch; HandleCodesRule() local 436 HandlePositiveRule(PhoneNumberMatch* match, icu::UnicodeString& message) HandlePositiveRule() argument [all...] |
H A D | border_rule.cpp | 59 bool BorderRule::Handle(PhoneNumberMatch* match, icu::UnicodeString& message) in Handle() argument 61 int begin = match->start(); in Handle() 62 int end = match->end(); in Handle()
|
/base/security/certificate_framework/test/unittest/v1.0/src/ |
H A D | crypto_x509_certificate_test_part3.cpp | 129 CfResult ret = g_x509CertExtAttrObj->match(g_x509CertExtAttrObj, &certMatchParameters, &bResult); in HWTEST_F() 134 ret = g_x509CertExtAttrObj->match(g_x509CertExtAttrObj, &certMatchParameters, &bResult); in HWTEST_F() 155 CfResult ret = g_x509CertExtAttrObj->match(g_x509CertExtAttrObj, &matchParams, &bResult); in HWTEST_F() 164 ret = g_x509CertExtAttrObj->match(g_x509CertExtAttrObj, &matchParams, &bResult); in HWTEST_F() 170 ret = g_x509CertExtAttrObj->match(g_x509CertExtAttrObj, &matchParams, &bResult); in HWTEST_F() 189 ret = g_x509CertExtAttrObj->match(g_x509CertExtAttrObj, &certMatchParameters, &bResult); in HWTEST_F() 194 ret = g_x509CertExtAttrObj->match(g_x509CertExtAttrObj, &certMatchParameters, &bResult); in HWTEST_F() 199 ret = g_x509CertExtAttrObj->match(g_x509CertExtAttrObj, &certMatchParameters, &bResult); in HWTEST_F() 208 ret = g_x509CertExtAttrObj->match(g_x509CertExtAttrObj, &certMatchParameters, &bResult); in HWTEST_F() 230 CfResult ret = g_x509CertExtAttrObj->match(g_x509CertExtAttrOb in HWTEST_F() [all...] |
H A D | crypto_x509_crl_test_part2.cpp | 98 CfResult ret = g_x509Crl->match(nullptr, &matchParams, &bResult); in HWTEST_F() 107 CfResult ret = g_x509Crl->match(g_x509Crl, nullptr, &bResult); in HWTEST_F() 116 CfResult ret = g_x509Crl->match(g_x509Crl, &matchParams, nullptr); in HWTEST_F() 129 CfResult ret = g_x509Crl->match(&invalidCrl, &matchParams, &bResult); in HWTEST_F() 140 CfResult ret = g_x509Crl->match(g_x509Crl, &matchParams, &bResult); in HWTEST_F() 166 ret = x509Crl->match(x509Crl, &matchParams, &bResult); in HWTEST_F() 185 ret = g_x509Crl->match(g_x509Crl, &matchParams, &bResult); in HWTEST_F() 198 CfResult ret = g_x509Crl->match(g_x509Crl, &matchParams, &bResult); in HWTEST_F() 219 CfResult ret = g_x509Crl->match(g_x509Crl, &matchParams, &bResult); in HWTEST_F() 249 ret = x509Crl->match(x509Cr in HWTEST_F() [all...] |
H A D | crypto_x509_certificate_test.cpp | 632 CfResult ret = g_x509CertObj->match(nullptr, &matchParams, &bResult); in HWTEST_F() 640 CfResult ret = g_x509CertObj->match(g_x509CertObj, nullptr, &bResult); in HWTEST_F() 649 CfResult ret = g_x509CertObj->match(g_x509CertObj, &matchParams, nullptr); in HWTEST_F() 662 CfResult ret = g_x509CertObj->match((HcfX509Certificate *)&invalidSpi, &matchParams, nullptr); in HWTEST_F() 681 ret = g_x509CertObj->match(g_x509CertObj, &matchParams, &bResult); in HWTEST_F() 695 CfResult ret = g_x509CertObj->match(g_x509CertObj, &matchParams, &bResult); in HWTEST_F() 711 CfResult ret = g_x509CertObj->match(g_x509CertObj, &matchParams, &bResult); in HWTEST_F() 727 CfResult ret = g_x509CertObj->match(g_x509CertObj, &matchParams, &bResult); in HWTEST_F() 743 CfResult ret = g_x509CertObj->match(g_x509CertObj, &matchParams, &bResult); in HWTEST_F() 760 CfResult ret = g_x509CertObj->match(g_x509CertOb in HWTEST_F() [all...] |
/base/telephony/sms_mms/services/sms/gsm/ |
H A D | gsm_sms_param_decode.cpp | 168 std::smatch match; in regProcessSmsAddrs() local 170 if (std::regex_match(smsAddrs, match, pattern)) { in regProcessSmsAddrs() 171 if (match[MATCH_INDEX_TWO] == "") { in regProcessSmsAddrs() 172 ret << match[MATCH_INDEX_ONE] << match[MATCH_INDEX_THREE] << in regProcessSmsAddrs() 173 match[MATCH_INDEX_FOUR] << match[MATCH_INDEX_FIVE] << '+'; in regProcessSmsAddrs() local 175 ret << match[MATCH_INDEX_ONE] << match[MATCH_INDEX_TWO] << in regProcessSmsAddrs() 176 match[MATCH_INDEX_THRE in regProcessSmsAddrs() local 182 match[MATCH_INDEX_THREE] << '+' << match[MATCH_INDEX_FOUR]; regProcessSmsAddrs() local [all...] |
/base/security/selinux_adapter/scripts/ |
H A D | build_contexts.py | 126 match = pattern.match(line_) 127 if match: 128 type_hash[match.group(1)].append(line_index) 198 match = pattern.match(line_) 199 if match: 201 line = match.group(1) + " u:r:" + match.group(5) + ":s0\n" 203 line = match [all...] |
/base/hiviewdfx/hiview/plugins/event_store/event_export/config/ |
H A D | export_config_manager.cpp | 82 std::smatch match; in ParseConfigFile() local 83 if (!std::regex_match(configFile, match, reg)) { in ParseConfigFile() 87 std::string moduleName = match[1].str(); in ParseConfigFile()
|
/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_buffer.cpp | 163 // types & levels match in LogMatchFilter() 172 // domain match in LogMatchFilter() 178 bool match = false; in LogMatchFilter() local 182 match = true; in LogMatchFilter() 186 if (filter.domainCount && match == filter.blackDomain) { in LogMatchFilter() 189 match = false; in LogMatchFilter() 190 // tag match in LogMatchFilter() 193 match = true; in LogMatchFilter() 197 if (filter.tagCount && match == filter.blackTag) { in LogMatchFilter() 200 match in LogMatchFilter() [all...] |
/base/hiviewdfx/hiview/plugins/event_store/event_export/task/expire/ |
H A D | event_scan_handler.cpp | 59 std::smatch match; in GetExpiredFileNames() local 62 if (!std::regex_match(scannedFile, match, reg)) { in GetExpiredFileNames()
|
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/ |
H A D | sys_event_service_ohos.cpp | 54 bool IsMatchedWithRegex(const string& rule, const string& match) in IsMatchedWithRegex() argument 64 return regex_search(match, result, pattern); in IsMatchedWithRegex() 67 bool MatchContent(int type, const string& rule, const string& match) in MatchContent() argument 69 if (match.empty()) { in MatchContent() 74 return rule.empty() || match.compare(rule) == 0; in MatchContent() 76 return rule.empty() || match.find(rule) == 0; in MatchContent() 78 return IsMatchedWithRegex(rule, match); in MatchContent() 85 bool MatchEventType(int rule, int match) in MatchEventType() argument 87 return rule == INVALID_EVENT_TYPE || rule == match; in MatchEventType() 193 HIVIEW_LOGE("interface is null, no need to match rule in OnSysEvent() [all...] |
/base/global/i18n/frameworks/intl/entity_recognition/phone_number_recognition/include/ |
H A D | border_rule.h | 31 bool Handle(PhoneNumberMatch* match, icu::UnicodeString& message);
|
H A D | phone_number_matched.h | 59 std::vector<MatchedNumberInfo> HandlePositiveRule(PhoneNumberMatch* match, icu::UnicodeString& message); 60 bool HandleBorderRule(PhoneNumberMatch* match, icu::UnicodeString& message);
|
H A D | positive_rule.h | 31 std::vector<MatchedNumberInfo> Handle(PhoneNumberMatch* match, icu::UnicodeString& message);
|
/base/global/i18n/frameworks/intl/entity_recognition/date_time_recognition/include/ |
H A D | date_rule_init.h | 42 void GetMatchedInfo(std::vector<MatchedDateTimeInfo>& matches, MatchedDateTimeInfo& match,
|
/base/global/i18n/frameworks/intl/test/unittest/ |
H A D | intl_test_extent.cpp | 1199 PhoneNumberMatch* match = codeRule->IsValid(possibleNumber.get(), message); in HWTEST_F() local 1200 EXPECT_TRUE(match != nullptr); in HWTEST_F() 1262 PhoneNumberMatch* match = regexRule->IsValid(possibleNumber.get(), message); in HWTEST_F() local 1263 EXPECT_TRUE(match != nullptr); in HWTEST_F() 1302 PhoneNumberMatch* match = regexRule->IsValid(possibleNumber.get(), message); in HWTEST_F() local 1303 EXPECT_TRUE(match != nullptr); in HWTEST_F() 1386 std::unique_ptr<PhoneNumberMatch> match = in HWTEST_F() local 1388 bool flag = borderRule->Handle(match.get(), message); in HWTEST_F() 1393 flag = bRule->Handle(match.get(), message); in HWTEST_F() 1518 PhoneNumberMatch* match in HWTEST_F() local 1554 PhoneNumberMatch* match = codeRule->IsValid(possibleNumber.get(), message); HWTEST_F() local 1634 PhoneNumberMatch* match = regexRule->IsValid(possibleNumber.get(), message); HWTEST_F() local 1676 PhoneNumberMatch* match = regexRule->IsValid(possibleNumber.get(), message); HWTEST_F() local 1731 PhoneNumberMatch* match = regexRule->IsValid(possibleNumber.get(), message); HWTEST_F() local 1773 PhoneNumberMatch* match = regexRule->IsValid(possibleNumber.get(), message); HWTEST_F() local 1889 PhoneNumberMatch* match = codeRule->IsValid(possibleNumber.get(), message); HWTEST_F() local 1911 PhoneNumberMatch* match = codeRule->IsValid(possibleNumber.get(), message); HWTEST_F() local 1945 PhoneNumberMatch* match = codeRule->IsValid(possibleNumber.get(), message); HWTEST_F() local 1969 PhoneNumberMatch* match = codeRule->IsValid(possibleNumber.get(), message); HWTEST_F() local [all...] |
/base/security/selinux_adapter/framework/policycoreutils/src/ |
H A D | contexts_trie.c | 162 ParamContextsTrie *match = childNode->childPtr; in SearchFromParamTrie() local 163 if (match->labeled == MATCH_LABELED) { in SearchFromParamTrie() 164 return match->matchLabel; in SearchFromParamTrie() 198 ParamContextsTrie *match = childNode->childPtr; in GetLabelIndex() local 199 if (match->labeled == MATCH_LABELED) { in GetLabelIndex() 200 return match->index; in GetLabelIndex()
|
/base/hiviewdfx/hichecker/interfaces/js/kits/napi/js_leak_watcher/ |
H A D | js_leak_watcher.js | 105 const matchA = a.match(regex); 106 const matchB = b.match(regex);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
H A D | hap_parser.cpp | 207 // size not match, cannot > arrLen in ParseStringArray() 308 bool &match, const ResConfigImpl *defaultConfig) in ParseKey() 334 match = IsLocaleMatch(defaultConfig, key->keyParams_); in ParseKey() 335 if (!match) { in ParseKey() 381 bool match = true; in ParseResHex() local 382 int32_t ret = ParseKey(buffer, offset, key, match, defaultConfig); in ParseResHex() 387 if (match) { in ParseResHex() 307 ParseKey(const char *buffer, uint32_t &offset, ResKey *key, bool &match, const ResConfigImpl *defaultConfig) ParseKey() argument
|
/base/telephony/sms_mms/frameworks/native/mms/src/ |
H A D | mms_header.cpp | 309 bool match = false; in SetOctetValue() local 310 if (!SetOctetValuePartData(fieldId, value, match)) { in SetOctetValue() 338 if (!match) { in SetOctetValue() 347 bool MmsHeader::SetOctetValuePartData(uint8_t fieldId, uint8_t value, bool &match) in SetOctetValuePartData() argument 349 if (!SetOctetValuePortionData(fieldId, value, match)) { in SetOctetValuePartData() 352 if (match) { in SetOctetValuePartData() 353 return match; in SetOctetValuePartData() 391 match = false; in SetOctetValuePartData() 397 bool MmsHeader::SetOctetValuePortionData(uint8_t fieldId, uint8_t value, bool &match) in SetOctetValuePortionData() argument 399 match in SetOctetValuePortionData() [all...] |
/base/global/i18n/frameworks/intl/src/ |
H A D | holiday_manager.cpp | 196 std::smatch match; in ParseFileLine() local 197 bool found = RegexSearchNoExcept(line, match, reg); in ParseFileLine() 199 std::string tag = match[1].str(); in ParseFileLine()
|
/base/security/certificate_framework/interfaces/inner_api/certificate/ |
H A D | x509_certificate.h | 90 CfResult (*match)(HcfX509Certificate *self, const HcfX509CertMatchParams *matchParams, bool *out); member
|