Home
last modified time | relevance | path

Searched refs:matches (Results 1 - 17 of 17) sorted by relevance

/base/global/i18n/frameworks/intl/entity_recognition/date_time_recognition/src/
H A Ddate_time_filter.cpp63 std::vector<MatchedDateTimeInfo>& matches, std::vector<MatchedDateTimeInfo>& clearMatches, in Filter()
66 matches = FilterOverlay(matches); in Filter()
67 matches = FilterDatePeriod(content, matches); in Filter()
68 matches = FilterByRules(content, matches, clearMatches); in Filter()
69 matches = FilterByPast(content, matches, pastMatches); in Filter()
70 return matches; in Filter()
62 Filter(icu::UnicodeString& content, std::vector<MatchedDateTimeInfo>& matches, std::vector<MatchedDateTimeInfo>& clearMatches, std::vector<MatchedDateTimeInfo>& pastMatches) Filter() argument
73 FilterOverlay(std::vector<MatchedDateTimeInfo>& matches) FilterOverlay() argument
85 FilterByRules(icu::UnicodeString& content, std::vector<MatchedDateTimeInfo>& matches, std::vector<MatchedDateTimeInfo>& clears) FilterByRules() argument
111 FilterByPast(icu::UnicodeString& content, std::vector<MatchedDateTimeInfo>& matches, std::vector<MatchedDateTimeInfo>& pasts) FilterByPast() argument
137 FilterOverlayFirst(std::vector<MatchedDateTimeInfo>& matches) FilterOverlayFirst() argument
173 FilterOverlaySecond(std::vector<MatchedDateTimeInfo>& matches) FilterOverlaySecond() argument
202 FilterDatePeriod(icu::UnicodeString& content, std::vector<MatchedDateTimeInfo>& matches) FilterDatePeriod() argument
213 FilterDate(icu::UnicodeString& content, std::vector<MatchedDateTimeInfo>& matches) FilterDate() argument
278 FilterDateTime(icu::UnicodeString& content, std::vector<MatchedDateTimeInfo>& matches) FilterDateTime() argument
334 FilterPeriod(icu::UnicodeString& content, std::vector<MatchedDateTimeInfo>& matches) FilterPeriod() argument
383 FilterDateTimePunc(icu::UnicodeString& content, std::vector<MatchedDateTimeInfo>& matches) FilterDateTimePunc() argument
424 DealBrackets(icu::UnicodeString& content, std::vector<MatchedDateTimeInfo>& matches, int matchIndex, MatchedDateTimeInfo& lastMatch, MatchedDateTimeInfo& currentMatch) DealBrackets() argument
472 NestDealDate(icu::UnicodeString& content, MatchedDateTimeInfo& current, std::vector<MatchedDateTimeInfo>& matches, int preType) NestDealDate() argument
490 GetResult(icu::UnicodeString& content, MatchedDateTimeInfo& current, MatchedDateTimeInfo& nextMatch, std::vector<MatchedDateTimeInfo>& matches) GetResult() argument
[all...]
H A Ddate_rule_init.cpp48 std::vector<MatchedDateTimeInfo> matches = GetMatches(message); in Detect() local
53 matches = filter->Filter(message, matches, clearMatches, pastMatches); in Detect()
55 return matches; in Detect()
119 std::vector<MatchedDateTimeInfo> matches; in GetMatches() local
123 GetMatchedInfo(matches, match, message); in GetMatches()
126 return matches; in GetMatches()
129 void DateRuleInit::GetMatchedInfo(std::vector<MatchedDateTimeInfo>& matches, MatchedDateTimeInfo& match, in GetMatchedInfo() argument
141 matches.insert(matches in GetMatchedInfo()
[all...]
H A Ddate_time_matched.cpp44 std::vector<MatchedDateTimeInfo> matches = this->dateRuleInit->Detect(messageStr); in GetMatchedDateTime() local
45 size_t length = matches.size(); in GetMatchedDateTime()
53 result[i * posDateTime + posBegin] = matches[i].GetBegin(); in GetMatchedDateTime()
54 result[i * posDateTime + posEnd] = matches[i].GetEnd(); in GetMatchedDateTime()
H A Drules_engine.cpp44 std::vector<MatchedDateTimeInfo> matches; in Match() local
58 return matches; in Match()
64 return matches; in Match()
70 matches.push_back(match); in Match()
75 return matches; in Match()
/base/global/i18n/frameworks/intl/entity_recognition/date_time_recognition/include/
H A Ddate_time_filter.h32 std::vector<MatchedDateTimeInfo> Filter(icu::UnicodeString& content, std::vector<MatchedDateTimeInfo>& matches,
51 std::vector<MatchedDateTimeInfo> FilterOverlay(std::vector<MatchedDateTimeInfo>& matches);
53 std::vector<MatchedDateTimeInfo>& matches);
55 std::vector<MatchedDateTimeInfo>& matches, std::vector<MatchedDateTimeInfo>& clears);
57 std::vector<MatchedDateTimeInfo>& matches, std::vector<MatchedDateTimeInfo>& pasts);
58 std::vector<MatchedDateTimeInfo> FilterOverlayFirst(std::vector<MatchedDateTimeInfo>& matches);
59 std::vector<MatchedDateTimeInfo> FilterOverlaySecond(std::vector<MatchedDateTimeInfo>& matches);
61 std::vector<MatchedDateTimeInfo>& matches);
63 std::vector<MatchedDateTimeInfo>& matches);
65 std::vector<MatchedDateTimeInfo>& matches);
[all...]
H A Ddate_rule_init.h42 void GetMatchedInfo(std::vector<MatchedDateTimeInfo>& matches, MatchedDateTimeInfo& match,
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/native_leak/
H A Dnative_leak_config.cpp61 smatch matches; in GetThresholdList() local
62 if (!regex_match(line, matches, pattern)) { in GetThresholdList()
66 HIVIEW_LOGI("regex_match success, process: %{public}s", matches[ITEM_NAME].str().c_str()); in GetThresholdList()
67 list.insert(make_pair(matches[ITEM_NAME].str(), stoull(matches[ITEM_VALUE]))); in GetThresholdList()
H A Dnative_leak_state.cpp138 smatch matches; in CollectUserBaseInfo() local
139 if (!regex_match(line, matches, recordRegex)) { in CollectUserBaseInfo()
142 if (matches[PSS].str() == "Pss" || matches[PSS].str() == "SwapPss") { in CollectUserBaseInfo()
143 pssMemoryKb += stoull(matches[PSS_SIZE]); in CollectUserBaseInfo()
/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dstring_utils.cpp141 std::smatch matches; in parseArgs() local
147 while (std::regex_search(start, end, matches, PLACEHOLDER_MATCHING_RULES)) { in parseArgs()
148 prefixLength = matches[MATCHE_INDEX_WHOLE_STRING].first - inputOutputValue.begin(); in parseArgs()
149 if (matches[1].length() != 0) { in parseArgs()
153 std::string placeholderIndex = matches[MATCHE_INDEX_PLACEHOLDER_INDEX]; in parseArgs()
154 std::string placeholderType = matches[MATCHE_INDEX_PLACEHOLDER_TYPE]; in parseArgs()
171 start = inputOutputValue.begin() + prefixLength + matches[0].length(); in parseArgs()
301 std::smatch matches; in ReplacePlaceholderWithParams() local
305 while (std::regex_search(start, end, matches, PLACEHOLDER_MATCHING_RULES)) { in ReplacePlaceholderWithParams()
306 prefixLength = matches[MATCHE_INDEX_WHOLE_STRIN in ReplacePlaceholderWithParams()
[all...]
/base/global/i18n/frameworks/intl/test/fuzztest/datetimefilter_fuzzer/
H A Ddatetimefilter_fuzzer.cpp35 std::vector<MatchedDateTimeInfo> matches; in DoSomethingTestWithMyAPI() local
37 matches.push_back(*matchedDateTimeInfo); in DoSomethingTestWithMyAPI()
42 dateTimeFilter->Filter(hyphen, matches, clearMatches, clearMatches); in DoSomethingTestWithMyAPI()
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/
H A Dlog_util.cpp74 smatch matches; in GetTrace() local
75 if (regex_search(line, matches, regex(reg))) { in GetTrace()
81 result += matches.str(0) + LogUtil::SPLIT_PATTERN; in GetTrace()
/base/hiviewdfx/hiview/utility/common_utils/
H A Dtbox.cpp174 std::smatch matches; in GetHappenTime() local
175 if (!std::regex_match(src, matches, recordRegex)) { in GetHappenTime()
181 for (size_t i = 1; i < matches.size(); ++i) { in GetHappenTime()
182 timeStr += matches[i].str(); in GetHappenTime()
/base/request/request/services/src/manage/
H A Dmod.rs186 assert!(matches!(msg, TaskManagerEvent::Reschedule)); in ut_manager_task_state_and_reason()
188 assert!(matches!( in ut_manager_task_state_and_reason()
305 assert!(matches!( in ut_manager_reschedule()
311 assert!(matches!( in ut_manager_reschedule()
317 assert!(matches!( in ut_manager_reschedule()
325 assert!(matches!( in ut_manager_reschedule()
331 assert!(matches!( in ut_manager_reschedule()
337 assert!(matches!( in ut_manager_reschedule()
H A Dnetwork.rs40 matches!(*self.inner.state.read().unwrap(), Online(_))
108 if !matches!(&*state, Online(old_info) if old_info == &info ) {
H A Daccount.rs289 assert!(matches!( in ut_account_check_oh()
312 assert!(matches!( in ut_account_update()
/base/startup/init/services/param/manager/
H A Dparam_server.c56 bool *matches; member
164 if (ctx->matches[i]) { in MatchReserverCmdline()
174 ctx->matches[i] = true; in MatchReserverCmdline()
249 bool matches[ARRAY_LENGTH(CMDLINES)] = {false}; in LoadParamFromCmdLine() local
250 ctx.matches = matches; in LoadParamFromCmdLine()
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
H A DDataFetcher.java140 if (matcher.matches()) { // special treatment to wildcard language-* in processWildcard()

Completed in 11 milliseconds