/external/libtextclassifier/utils/utf8/ |
D | unilib_test-include.cc | 69 std::unique_ptr<UniLib::RegexPattern> pattern = in TEST_F() 73 std::unique_ptr<UniLib::RegexMatcher> matcher = pattern->Matcher(input); in TEST_F() 87 std::unique_ptr<UniLib::RegexPattern> pattern = in TEST_F() 90 std::unique_ptr<UniLib::RegexMatcher> matcher; in TEST_F() 95 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F() 98 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F() 104 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F() 109 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F() 111 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F() 113 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F() [all …]
|
D | unilib-javaicu.cc | 244 UniLib::UniLib() { in UniLib() function in libtextclassifier3::UniLib 248 UniLib::UniLib(const std::shared_ptr<JniCache>& jni_cache) in UniLib() function in libtextclassifier3::UniLib 251 bool UniLib::IsOpeningBracket(char32 codepoint) const { in IsOpeningBracket() 255 bool UniLib::IsClosingBracket(char32 codepoint) const { in IsClosingBracket() 259 bool UniLib::IsWhitespace(char32 codepoint) const { in IsWhitespace() 263 bool UniLib::IsDigit(char32 codepoint) const { in IsDigit() 269 bool UniLib::IsUpper(char32 codepoint) const { in IsUpper() 285 char32 UniLib::ToLower(char32 codepoint) const { in ToLower() 305 char32 UniLib::GetPairedBracket(char32 codepoint) const { in GetPairedBracket() 323 bool UniLib::ParseInt32(const UnicodeText& text, int* result) const { in ParseInt32() [all …]
|
D | unilib-javaicu.h | 38 class UniLib { 40 UniLib(); 41 explicit UniLib(const std::shared_ptr<JniCache>& jni_cache); 135 friend class UniLib; 160 friend class UniLib;
|
/external/libtextclassifier/actions/ |
D | actions-suggestions.h | 54 const uint8_t* buffer, const int size, const UniLib* unilib = nullptr, 61 const UniLib* unilib = nullptr, 66 std::unique_ptr<UniLib> unilib, 74 const UniLib* unilib = nullptr, 79 std::unique_ptr<UniLib> unilib, 84 const int fd, const UniLib* unilib = nullptr, 88 const int fd, std::unique_ptr<UniLib> unilib, 93 const std::string& path, const UniLib* unilib = nullptr, 97 const std::string& path, std::unique_ptr<UniLib> unilib, 158 std::unique_ptr<UniLib::RegexPattern> pattern; [all …]
|
D | actions-suggestions.cc | 85 const uint8_t* buffer, const int size, const UniLib* unilib, in FromUnownedBuffer() 103 std::unique_ptr<libtextclassifier3::ScopedMmap> mmap, const UniLib* unilib, in FromScopedMmap() 130 std::unique_ptr<UniLib> unilib, in FromScopedMmap() 157 const int fd, const int offset, const int size, const UniLib* unilib, in FromFileDescriptor() 171 std::unique_ptr<UniLib> unilib, in FromFileDescriptor() 184 const int fd, const UniLib* unilib, in FromFileDescriptor() 193 const int fd, std::unique_ptr<UniLib> unilib, in FromFileDescriptor() 202 const std::string& path, const UniLib* unilib, in FromPath() 211 const std::string& path, std::unique_ptr<UniLib> unilib, in FromPath() 219 void ActionsSuggestions::SetOrCreateUnilib(const UniLib* unilib) { in SetOrCreateUnilib() [all …]
|
D | ngram-model.h | 33 const UniLib* unilib); 46 const Tokenizer* tokenizer, const UniLib* unilib);
|
D | feature-processor.h | 34 const ActionsTokenizerOptions* options, const UniLib* unilib); 40 const UniLib* unilib);
|
D | actions_jni.cc | 51 using libtextclassifier3::UniLib; 326 fd, std::unique_ptr<UniLib>(new UniLib(jni_cache)), preconditions))); in TC3_JNI_METHOD() 349 path_str, std::unique_ptr<UniLib>(new UniLib(jni_cache)), in TC3_JNI_METHOD()
|
/external/libtextclassifier/utils/ |
D | regex-match.cc | 42 const UniLib::RegexMatcher* matcher); 49 const UniLib::RegexMatcher* matcher) in LuaVerifier() 58 const UniLib::RegexMatcher* matcher_; 83 const UniLib::RegexMatcher* matcher) { in Create() 101 int status = UniLib::RegexMatcher::kNoError; in GetCapturingGroup() 105 if (status != UniLib::RegexMatcher::kNoError) { in GetCapturingGroup() 154 const UniLib::RegexMatcher* matcher, in SetFieldFromCapturingGroup() 156 int status = UniLib::RegexMatcher::kNoError; in SetFieldFromCapturingGroup() 158 if (status != UniLib::RegexMatcher::kNoError || group_text.empty()) { in SetFieldFromCapturingGroup() 165 const UniLib::RegexMatcher* matcher, in VerifyMatch()
|
D | regex-match_test.cc | 31 UniLib unilib_; 67 int status = UniLib::RegexMatcher::kNoError; in TEST_F() 69 status == UniLib::RegexMatcher::kNoError); in TEST_F()
|
D | token-feature-extractor.h | 69 const UniLib& unilib); 109 std::vector<std::unique_ptr<UniLib::RegexPattern>> regex_patterns_; 110 const UniLib& unilib_;
|
D | regex-match.h | 29 const UniLib::RegexMatcher* matcher, 43 const UniLib::RegexMatcher* matcher,
|
D | tokenizer.h | 50 const TokenizationType type, const UniLib* unilib, 102 const UniLib* unilib_;
|
D | tokenizer.cc | 28 const TokenizationType type, const UniLib* unilib, in Tokenizer() 219 std::unique_ptr<UniLib::BreakIterator> break_iterator = in ICUTokenize() 230 UniLib::BreakIterator::kDone) { in ICUTokenize()
|
/external/libtextclassifier/annotator/ |
D | annotator.h | 189 const char* buffer, int size, const UniLib* unilib = nullptr, 193 std::unique_ptr<ScopedMmap>* mmap, const UniLib* unilib = nullptr, 196 std::unique_ptr<ScopedMmap>* mmap, std::unique_ptr<UniLib> unilib, 199 int fd, int offset, int size, const UniLib* unilib = nullptr, 202 int fd, int offset, int size, std::unique_ptr<UniLib> unilib, 205 int fd, const UniLib* unilib = nullptr, 208 int fd, std::unique_ptr<UniLib> unilib, 211 const std::string& path, const UniLib* unilib = nullptr, 214 const std::string& path, std::unique_ptr<UniLib> unilib, 283 const UniLib* unilib, const CalendarLib* calendarlib); [all …]
|
D | annotator.cc | 64 const UniLib* MaybeCreateUnilib(const UniLib* lib, in MaybeCreateUnilib() 65 std::unique_ptr<UniLib>* owned_lib) { in MaybeCreateUnilib() 69 owned_lib->reset(new UniLib); in MaybeCreateUnilib() 110 const char* buffer, int size, const UniLib* unilib, in FromUnownedBuffer() 128 std::unique_ptr<ScopedMmap>* mmap, const UniLib* unilib, in FromScopedMmap() 152 std::unique_ptr<ScopedMmap>* mmap, std::unique_ptr<UniLib> unilib, in FromScopedMmap() 176 int fd, int offset, int size, const UniLib* unilib, in FromFileDescriptor() 183 int fd, int offset, int size, std::unique_ptr<UniLib> unilib, in FromFileDescriptor() 190 int fd, const UniLib* unilib, const CalendarLib* calendarlib) { in FromFileDescriptor() 196 int fd, std::unique_ptr<UniLib> unilib, in FromFileDescriptor() [all …]
|
D | strip-unpaired-brackets.h | 30 CodepointSpan span, const UniLib& unilib); 34 CodepointSpan span, const UniLib& unilib);
|
D | strip-unpaired-brackets.cc | 58 CodepointSpan span, const UniLib& unilib) { in StripUnpairedBrackets() 68 CodepointSpan span, const UniLib& unilib) { in StripUnpairedBrackets()
|
D | annotator_jni.cc | 58 using libtextclassifier3::UniLib; 413 fd, std::unique_ptr<UniLib>(new UniLib(jni_cache)), in TC3_JNI_METHOD() 430 path_str, std::unique_ptr<UniLib>(new UniLib(jni_cache)), in TC3_JNI_METHOD() 448 fd, offset, size, std::unique_ptr<UniLib>(new UniLib(jni_cache)), in TC3_JNI_METHOD()
|
/external/libtextclassifier/annotator/datetime/ |
D | extractor.h | 34 std::unique_ptr<const UniLib::RegexPattern> compiled_regex; 48 const CompiledRule& rule, const UniLib::RegexMatcher& matcher, in DatetimeExtractor() 49 int locale_id, const UniLib& unilib, in DatetimeExtractor() 50 const std::vector<std::unique_ptr<const UniLib::RegexPattern>>& in DatetimeExtractor() 104 const UniLib::RegexMatcher& matcher_; 106 const UniLib& unilib_; 107 const std::vector<std::unique_ptr<const UniLib::RegexPattern>>& rules_;
|
D | parser.h | 41 const DatetimeModel* model, const UniLib& unilib, 68 DatetimeParser(const DatetimeModel* model, const UniLib& unilib, 99 const UniLib::RegexMatcher& matcher, 108 const UniLib::RegexMatcher& matcher, 116 const UniLib& unilib_; 120 std::vector<std::unique_ptr<const UniLib::RegexPattern>> extractor_rules_;
|
D | parser.cc | 30 const DatetimeModel* model, const UniLib& unilib, in Instance() 40 DatetimeParser::DatetimeParser(const DatetimeModel* model, const UniLib& unilib, in DatetimeParser() 54 std::unique_ptr<UniLib::RegexPattern> regex_pattern = in DatetimeParser() 75 std::unique_ptr<UniLib::RegexPattern> regex_pattern = in DatetimeParser() 220 const CompiledRule& rule, const UniLib::RegexMatcher& matcher, in HandleParseMatch() 224 int status = UniLib::RegexMatcher::kNoError; in HandleParseMatch() 226 if (status != UniLib::RegexMatcher::kNoError) { in HandleParseMatch() 231 if (status != UniLib::RegexMatcher::kNoError) { in HandleParseMatch() 266 std::unique_ptr<UniLib::RegexMatcher> matcher = in ParseWithRule() 268 int status = UniLib::RegexMatcher::kNoError; in ParseWithRule() [all …]
|
D | extractor.cc | 172 std::unique_ptr<UniLib::RegexMatcher> matcher = in ExtractType() 185 if (status != UniLib::RegexMatcher::kNoError) { in ExtractType() 196 if (status != UniLib::RegexMatcher::kNoError) { in GroupTextFromMatch() 206 if (status != UniLib::RegexMatcher::kNoError) { in UpdateMatchSpan() 210 if (status != UniLib::RegexMatcher::kNoError) { in UpdateMatchSpan() 278 std::unique_ptr<UniLib::RegexMatcher> matcher = in ParseWrittenNumber() 285 while (matcher->Find(&status) && status == UniLib::RegexMatcher::kNoError) { in ParseWrittenNumber() 287 if (status != UniLib::RegexMatcher::kNoError) { in ParseWrittenNumber()
|
/external/libtextclassifier/utils/zlib/ |
D | zlib_regex.cc | 26 std::unique_ptr<UniLib::RegexPattern> UncompressMakeRegexPattern( in UncompressMakeRegexPattern() 27 const UniLib& unilib, const flatbuffers::String* uncompressed_pattern, in UncompressMakeRegexPattern() 57 std::unique_ptr<UniLib::RegexPattern> regex_pattern; in UncompressMakeRegexPattern()
|
D | zlib_regex.h | 29 std::unique_ptr<UniLib::RegexPattern> UncompressMakeRegexPattern( 30 const UniLib& unilib, const flatbuffers::String* uncompressed_pattern,
|