Home
last modified time | relevance | path

Searched refs:RegexRule (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/global/i18n/frameworks/intl/entity_recognition/phone_number_recognition/src/
H A Dregex_rule.cpp29 RegexRule::RegexRule(icu::UnicodeString& regex, std::string& isValidType, std::string& handleType, in RegexRule() function in OHOS::Global::I18n::RegexRule
54 RegexRule::~RegexRule() in ~RegexRule()
58 int RegexRule::CountDigits(icu::UnicodeString& str) in CountDigits()
70 int RegexRule::GetType() in GetType()
75 icu::RegexPattern* RegexRule::GetPattern() in GetPattern()
85 PhoneNumberMatch* RegexRule::IsValid(PhoneNumberMatch* possibleNumber, icu::UnicodeString& message) in IsValid()
200 bool RegexRule::PrefixValid(icu::UnicodeString& number, int length) in PrefixValid()
222 bool RegexRule::NumberValid(icu::UnicodeString& number) in NumberValid()
418 std::vector<MatchedNumberInfo> RegexRule::HandleEndWithMobile(PhoneNumberMatch* possibleNumber, in HandleEndWithMobile()
425 void RegexRule::StartWithBrackets(icu::UnicodeString& number) in StartWithBrackets()
[all …]
H A Dphone_number_matched.cpp182 if (RegexRule::CountDigits(uNumber) < lenNumber) { in AddPhoneNumber()
/ohos5.0/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test_extent.cpp560 std::unique_ptr<RegexRule> regexRule = std::make_unique<RegexRule>(regex,
564 std::unique_ptr<RegexRule> regexRule2 = std::make_unique<RegexRule>(regex, isValidType,
583 std::unique_ptr<RegexRule> regexRule3 = std::make_unique<RegexRule>(regex, isValidType,
591 std::unique_ptr<RegexRule> regexRule4 = std::make_unique<RegexRule>(unicRegex, isValidType,
594 std::unique_ptr<RegexRule> regexRule5 = std::make_unique<RegexRule>(unicRegex, isValidType,
1146 std::unique_ptr<RegexRule> regexRule =
1223 RegexRule* regexRule = new RegexRule(regex, isValidType, handleType, insensitive, type);
1255 RegexRule* regexRule = new RegexRule(regex, isValidType, handleType, insensitive, type);
1295 RegexRule* regexRule = new RegexRule(regex, isValidType, handleType, insensitive, type);
1326 RegexRule* regexRule = new RegexRule(regex, isValidType, handleType, insensitive, type);
[all …]
/ohos5.0/base/global/i18n/frameworks/intl/entity_recognition/phone_number_recognition/include/
H A Dregex_rule.h28 class RegexRule {
30 RegexRule(icu::UnicodeString& regex, std::string& IsValidType, std::string& HandleType,
32 ~RegexRule();
/ohos5.0/base/global/i18n/frameworks/intl/test/fuzztest/regexrule_fuzzer/
H A Dregexrule_fuzzer.cpp33 RegexRule* regexRule = new RegexRule(regex, input, input, input, input); in DoSomethingInterestingWithMyAPI()