Home
last modified time | relevance | path

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

/frameworks/minikin/tests/unittest/
DHyphenatorTest.cpp67 Hyphenator* hyphenator = GetParam()(patternData.data(), patternData.size(), 2, 3, "en"); in TEST_P() local
70 hyphenator->hyphenate(word, &result); in TEST_P()
81 Hyphenator* hyphenator = GetParam()(nullptr, 0, 2, 2, "ca"); in TEST_P() local
84 hyphenator->hyphenate(word, &result); in TEST_P()
95 Hyphenator* hyphenator = GetParam()(nullptr, 0, 2, 2, "ca"); in TEST_P() local
98 hyphenator->hyphenate(word, &result); in TEST_P()
107 Hyphenator* hyphenator = GetParam()(nullptr, 0, 2, 2, "pl"); in TEST_P() local
110 hyphenator->hyphenate(word, &result); in TEST_P()
119 Hyphenator* hyphenator = GetParam()(nullptr, 0, 2, 2, "pl"); in TEST_P() local
122 hyphenator->hyphenate(word, &result); in TEST_P()
[all …]
DGreedyLineBreakerTest.cpp70 Hyphenator* hyphenator = in SetUp() local
73 HyphenatorMap::add("en-US", hyphenator); in SetUp()
DOptimalLineBreakerTest.cpp65 Hyphenator* hyphenator = in SetUp() local
68 HyphenatorMap::add("en-US", hyphenator); in SetUp()
/frameworks/minikin/rust/
Dminikin.rs19 mod hyphenator; module
21 pub use hyphenator::Hyphenator;
40 fn hyphenate(hyphenator: &Hyphenator, word: &[u16], out: &mut [u8]); in hyphenate()
53 fn hyphenate(hyphenator: &Hyphenator, word: &[u16], out: &mut [u8]) { in hyphenate()
54 hyphenator.hyphenate(word, out); in hyphenate()
/frameworks/minikin/tests/perftests/
DHyphenator.cpp31 Hyphenator* hyphenator = Hyphenator::loadBinary(hyData.data(), hyData.size(), enUsMinPrefix, in BM_Hyphenator_short_word() local
36 hyphenator->hyphenate(word, &result); in BM_Hyphenator_short_word()
45 Hyphenator* hyphenator = Hyphenator::loadBinary(hyData.data(), hyData.size(), enUsMinPrefix, in BM_Hyphenator_long_word() local
50 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.cpp28 std::vector<HyphenationType> hyphenate(const U16StringPiece& str, const Hyphenator& hyphenator) { in hyphenate() argument
42 hyphenator.hyphenate(word, out.data() + wordStart); in hyphenate()
DLineBreakerUtil.h78 const Hyphenator& hyphenator, // A hyphenator to be used for hyphenation. in populateHyphenationPoints() argument
90 hyphenate(textBuf.substr(hyphenationTargetRange), hyphenator); in populateHyphenationPoints()
221 const Hyphenator* hyphenator = nullptr; member
255 hyphenator = HyphenatorMap::lookup(locale); in updateLocaleIfNecessary()
DMeasuredText.cpp200 populateHyphenationPoints(textBuf, *run, *proc.hyphenator, proc.contextRange(), in measure()
/frameworks/minikin/fuzz/hyphenator_fuzzer/
Dhyphenator_fuzzer.cpp95 Hyphenator* hyphenator = Hyphenator::loadBinary(&patternData[0], patternData.size(), minPrefix, in LLVMFuzzerTestOneInput() local
101 [&]() { addHyphenator(locale, hyphenator); }, in LLVMFuzzerTestOneInput()
115 hyphenator->hyphenate(textBuf, &result); in LLVMFuzzerTestOneInput()
DAndroid.bp46 dictionary: "hyphenator.dict",
/frameworks/minikin/include/minikin/
DHyphenator.h37 void addHyphenator(const std::string& localeStr, const Hyphenator* hyphenator);
/frameworks/base/core/java/android/text/flags/
Dflags.aconfig218 description: "Reimplement hyphenator for safe file read"