Home
last modified time | relevance | path

Searched refs:UniLib (Results 1 – 25 of 43) sorted by relevance

12

/external/libtextclassifier/utils/utf8/
Dunilib_test-include.cc69 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 …]
Dunilib-javaicu.cc244 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 …]
Dunilib-javaicu.h38 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/
Dactions-suggestions.h54 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 …]
Dactions-suggestions.cc85 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 …]
Dngram-model.h33 const UniLib* unilib);
46 const Tokenizer* tokenizer, const UniLib* unilib);
Dfeature-processor.h34 const ActionsTokenizerOptions* options, const UniLib* unilib);
40 const UniLib* unilib);
Dactions_jni.cc51 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/
Dregex-match.cc42 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()
Dregex-match_test.cc31 UniLib unilib_;
67 int status = UniLib::RegexMatcher::kNoError; in TEST_F()
69 status == UniLib::RegexMatcher::kNoError); in TEST_F()
Dtoken-feature-extractor.h69 const UniLib& unilib);
109 std::vector<std::unique_ptr<UniLib::RegexPattern>> regex_patterns_;
110 const UniLib& unilib_;
Dregex-match.h29 const UniLib::RegexMatcher* matcher,
43 const UniLib::RegexMatcher* matcher,
Dtokenizer.h50 const TokenizationType type, const UniLib* unilib,
102 const UniLib* unilib_;
Dtokenizer.cc28 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/
Dannotator.h189 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 …]
Dannotator.cc64 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 …]
Dstrip-unpaired-brackets.h30 CodepointSpan span, const UniLib& unilib);
34 CodepointSpan span, const UniLib& unilib);
Dstrip-unpaired-brackets.cc58 CodepointSpan span, const UniLib& unilib) { in StripUnpairedBrackets()
68 CodepointSpan span, const UniLib& unilib) { in StripUnpairedBrackets()
Dannotator_jni.cc58 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/
Dextractor.h34 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_;
Dparser.h41 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_;
Dparser.cc30 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 …]
Dextractor.cc172 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/
Dzlib_regex.cc26 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()
Dzlib_regex.h29 std::unique_ptr<UniLib::RegexPattern> UncompressMakeRegexPattern(
30 const UniLib& unilib, const flatbuffers::String* uncompressed_pattern,

12