/base/global/i18n/frameworks/intl/entity_recognition/phone_number_recognition/src/ |
H A D | find_rule.cpp | 21 FindRule::FindRule(icu::UnicodeString& regex, std::string& insensitive) in FindRule() argument 25 this->insensitive = insensitive; in FindRule() 37 if (insensitive == "True") { in GetPattern()
|
H A D | phone_number_rule.cpp | 120 std::string insensitive = XmlNodePtrToString(value); in ParseXmlNode() local 123 commonExit = (insensitive == "True"); in ParseXmlNode() 131 if (IsXmlNodeValueEmpty(insensitive, type, valid, handle)) { in ParseXmlNode() 144 SetRules(category, content, valid, handle, insensitive, type); in ParseXmlNode() 149 bool PhoneNumberRule::IsXmlNodeValueEmpty(const std::string& insensitive, const std::string& type, in IsXmlNodeValueEmpty() argument 152 if (insensitive.empty() || type.empty() || in IsXmlNodeValueEmpty() 174 std::string& handle, std::string& insensitive, std::string& type) in SetRules() 177 negativeRules.push_back(new NegativeRule(content, insensitive)); in SetRules() 179 positiveRules.push_back(new PositiveRule(content, handle, insensitive)); in SetRules() 181 borderRules.push_back(new BorderRule(content, insensitive, typ in SetRules() 173 SetRules(std::string& category, icu::UnicodeString& content, std::string& valid, std::string& handle, std::string& insensitive, std::string& type) SetRules() argument [all...] |
H A D | negative_rule.cpp | 20 NegativeRule::NegativeRule(icu::UnicodeString& regex, std::string& insensitive) in NegativeRule() argument 24 this->insensitive = insensitive; in NegativeRule() 33 if (this->insensitive == "True") { in GetPattern()
|
H A D | border_rule.cpp | 22 BorderRule::BorderRule(icu::UnicodeString& regex, std::string& insensitive, std::string& type) in BorderRule() argument 35 this->insensitive = insensitive; in BorderRule() 52 if (insensitive == "True") { in GetPattern()
|
H A D | regex_rule.cpp | 30 std::string& insensitive, std::string& type) in RegexRule() 45 this->insensitive = insensitive; in RegexRule() 78 if (insensitive == "True") { in GetPattern() 29 RegexRule(icu::UnicodeString& regex, std::string& isValidType, std::string& handleType, std::string& insensitive, std::string& type) RegexRule() argument
|
H A D | positive_rule.cpp | 27 PositiveRule::PositiveRule(icu::UnicodeString& regex, std::string& handleType, std::string& insensitive) in PositiveRule() argument 32 this->insensitive = insensitive; in PositiveRule() 44 if (insensitive == "True") { in GetPattern()
|
/base/global/i18n/frameworks/intl/entity_recognition/phone_number_recognition/include/ |
H A D | find_rule.h | 25 FindRule(icu::UnicodeString& regex, std::string& insensitive); 31 std::string insensitive; member in OHOS::Global::I18n::FindRule
|
H A D | border_rule.h | 28 BorderRule(icu::UnicodeString& regex, std::string& insensitive, std::string& type); 37 std::string insensitive; member in OHOS::Global::I18n::BorderRule
|
H A D | negative_rule.h | 25 NegativeRule(icu::UnicodeString& regex, std::string& insensitive); 33 std::string insensitive; member in OHOS::Global::I18n::NegativeRule
|
H A D | phone_number_rule.h | 51 std::string& handle, std::string& insensitive, std::string& type); 54 bool IsXmlNodeValueEmpty(const std::string& insensitive, const std::string& type,
|
H A D | positive_rule.h | 28 PositiveRule(icu::UnicodeString& regex, std::string& HandleType, std::string& insensitive); 50 std::string insensitive; member in OHOS::Global::I18n::PositiveRule
|
H A D | regex_rule.h | 31 std::string& insensitive, std::string& type); 71 std::string insensitive; // positive Rules, negative rules, border rules, find rules member in OHOS::Global::I18n::RegexRule
|
/base/global/i18n/frameworks/intl/test/unittest/ |
H A D | intl_test_extent.cpp | 559 std::string insensitive = "False"; in HWTEST_F() local 562 isValidType, handleType, insensitive, type); in HWTEST_F() 566 handleType, insensitive, type); in HWTEST_F() 585 handleType, insensitive, type); in HWTEST_F() 593 handleType, insensitive, type); in HWTEST_F() 596 handleType, insensitive, type); in HWTEST_F() 1099 std::string insensitive = "True"; in HWTEST_F() local 1100 std::unique_ptr<PositiveRule> pRule = std::make_unique<PositiveRule>(regex, handleType, insensitive); in HWTEST_F() 1106 std::unique_ptr<PositiveRule> pRule2 = std::make_unique<PositiveRule>(regex, handleType, insensitive); in HWTEST_F() 1110 std::unique_ptr<PositiveRule> pRule3 = std::make_unique<PositiveRule>(regex, handleType, insensitive); in HWTEST_F() 1134 std::string insensitive = "False"; HWTEST_F() local 1216 std::string insensitive = "True"; HWTEST_F() local 1248 std::string insensitive = "False"; HWTEST_F() local 1289 std::string insensitive = "False"; HWTEST_F() local 1320 std::string insensitive = "False"; HWTEST_F() local 1350 std::string insensitive = "False"; HWTEST_F() local 1377 std::string insensitive = "False"; HWTEST_F() local 1408 std::string insensitive = "False"; HWTEST_F() local 1575 std::string insensitive = "True"; HWTEST_F() local 1621 std::string insensitive = "False"; HWTEST_F() local 1663 std::string insensitive = "False"; HWTEST_F() local 1718 std::string insensitive = "False"; HWTEST_F() local 1760 std::string insensitive = "False"; HWTEST_F() local [all...] |