Home
last modified time | relevance | path

Searched refs:hyphenator (Results 1 – 10 of 10) sorted by relevance

/frameworks/minikin/tests/unittest/
DHyphenatorTest.cpp49 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 …]
DGreedyLineBreakerTest.cpp58 Hyphenator* hyphenator = Hyphenator::loadBinary( in SetUp() local
60 HyphenatorMap::add("en-US", hyphenator); in SetUp()
DOptimalLineBreakerTest.cpp58 Hyphenator* hyphenator = Hyphenator::loadBinary( in SetUp() local
60 HyphenatorMap::add("en-US", hyphenator); in SetUp()
/frameworks/minikin/tests/perftests/
DHyphenator.cpp30 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/
DHyphenatorMap.h34 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);
DHyphenatorMap.cpp36 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()
DLineBreakerUtil.h67 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()
DLineBreakerUtil.cpp28 std::vector<HyphenationType> hyphenate(const U16StringPiece& str, const Hyphenator& hyphenator) { in hyphenate() argument
42 hyphenator.hyphenate(word, out.data() + wordStart); in hyphenate()
DMeasuredText.cpp155 populateHyphenationPoints(textBuf, *run, *proc.hyphenator, proc.contextRange(), in measure()
/frameworks/minikin/include/minikin/
DHyphenator.h37 void addHyphenator(const std::string& localeStr, const Hyphenator* hyphenator);