/frameworks/minikin/tests/unittest/ |
D | HyphenatorTest.cpp | 49 Hyphenator* hyphenator = Hyphenator::loadBinary(patternData.data(), 2, 3, "en"); in TEST() local 52 hyphenator->hyphenate(word, &result); in TEST() 63 Hyphenator* hyphenator = Hyphenator::loadBinary(nullptr, 2, 2, "ca"); in TEST() local 66 hyphenator->hyphenate(word, &result); in TEST() 77 Hyphenator* hyphenator = Hyphenator::loadBinary(nullptr, 2, 2, "ca"); in TEST() local 80 hyphenator->hyphenate(word, &result); in TEST() 89 Hyphenator* hyphenator = Hyphenator::loadBinary(nullptr, 2, 2, "pl"); in TEST() local 92 hyphenator->hyphenate(word, &result); in TEST() 101 Hyphenator* hyphenator = Hyphenator::loadBinary(nullptr, 2, 2, "pl"); in TEST() local 104 hyphenator->hyphenate(word, &result); in TEST() [all …]
|
D | GreedyLineBreakerTest.cpp | 58 Hyphenator* hyphenator = Hyphenator::loadBinary( in SetUp() local 60 HyphenatorMap::add("en-US", hyphenator); in SetUp()
|
D | OptimalLineBreakerTest.cpp | 58 Hyphenator* hyphenator = Hyphenator::loadBinary( in SetUp() local 60 HyphenatorMap::add("en-US", hyphenator); in SetUp()
|
/frameworks/minikin/tests/perftests/ |
D | Hyphenator.cpp | 30 Hyphenator* hyphenator = Hyphenator::loadBinary(readWholeFile(enUsHyph).data(), enUsMinPrefix, in BM_Hyphenator_short_word() local 35 hyphenator->hyphenate(word, &result); in BM_Hyphenator_short_word() 43 Hyphenator* hyphenator = Hyphenator::loadBinary(readWholeFile(enUsHyph).data(), enUsMinPrefix, in BM_Hyphenator_long_word() local 48 hyphenator->hyphenate(word, &result); in BM_Hyphenator_long_word()
|
/frameworks/minikin/libs/minikin/ |
D | HyphenatorMap.h | 34 static void add(const std::string& localeStr, const Hyphenator* hyphenator) { in add() argument 35 getInstance().addInternal(localeStr, hyphenator); in add() 62 void addInternal(const std::string& localeStr, const Hyphenator* hyphenator);
|
D | HyphenatorMap.cpp | 36 void addHyphenator(const std::string& localeStr, const Hyphenator* hyphenator) { in addHyphenator() argument 37 HyphenatorMap::add(localeStr, hyphenator); in addHyphenator() 48 void HyphenatorMap::addInternal(const std::string& localeStr, const Hyphenator* hyphenator) { in addInternal() argument 52 mMap[locale.getIdentifier()] = hyphenator; in addInternal()
|
D | LineBreakerUtil.h | 67 const Hyphenator& hyphenator, // A hyphenator to be used for hyphenation. in populateHyphenationPoints() argument 77 hyphenate(textBuf.substr(hyphenationTargetRange), hyphenator); in populateHyphenationPoints() 130 const Hyphenator* hyphenator = nullptr; member 155 hyphenator = HyphenatorMap::lookup(locale); in updateLocaleIfNecessary()
|
D | LineBreakerUtil.cpp | 28 std::vector<HyphenationType> hyphenate(const U16StringPiece& str, const Hyphenator& hyphenator) { in hyphenate() argument 42 hyphenator.hyphenate(word, out.data() + wordStart); in hyphenate()
|
D | MeasuredText.cpp | 155 populateHyphenationPoints(textBuf, *run, *proc.hyphenator, proc.contextRange(), in measure()
|
/frameworks/minikin/include/minikin/ |
D | Hyphenator.h | 37 void addHyphenator(const std::string& localeStr, const Hyphenator* hyphenator);
|