Searched refs:hyph (Results 1 – 5 of 5) sorted by relevance
/frameworks/minikin/include/minikin/ |
D | Hyphenator.h | 112 inline bool isReplacement(EndHyphenEdit hyph) { in isReplacement() argument 113 return hyph == EndHyphenEdit::REPLACE_WITH_HYPHEN; in isReplacement() 116 inline bool isInsertion(StartHyphenEdit hyph) { in isInsertion() argument 117 return hyph != StartHyphenEdit::NO_EDIT; in isInsertion() 120 inline bool isInsertion(EndHyphenEdit hyph) { in isInsertion() argument 121 return static_cast<uint8_t>(hyph) >= static_cast<uint8_t>(EndHyphenEdit::INSERT_HYPHEN); in isInsertion() 137 inline std::pair<const uint32_t*, size_t> getHyphenString(StartHyphenEdit hyph) { in getHyphenString() argument 138 if (hyph == StartHyphenEdit::INSERT_ZWJ) { in getHyphenString() 140 } else if (hyph == StartHyphenEdit::INSERT_HYPHEN) { in getHyphenString() 147 inline std::pair<const uint32_t*, size_t> getHyphenString(EndHyphenEdit hyph) { in getHyphenString() argument [all …]
|
/frameworks/minikin/libs/minikin/ |
D | LineBreakerUtil.h | 79 const HyphenationType hyph = hyphenResult[hyphenationTargetRange.toRangeOffset(i)]; in populateHyphenationPoints() local 80 if (hyph == HyphenationType::DONT_BREAK) { in populateHyphenationPoints() 90 editForThisLine(hyph) /* end hyphen edit */, pieces); in populateHyphenationPoints() 93 editForNextLine(hyph) /* start hyphen edit */, in populateHyphenationPoints() 96 out->emplace_back(i, hyph, first, second); in populateHyphenationPoints()
|
D | GreedyLineBreaker.cpp | 192 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(i)]; in tryLineBreakWithHyphenation() local 193 if (hyph == HyphenationType::DONT_BREAK) { in tryLineBreakWithHyphenation() 199 mStartHyphenEdit, editForThisLine(hyph), nullptr); in tryLineBreakWithHyphenation() 214 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(prevOffset)]; in tryLineBreakWithHyphenation() local 215 const StartHyphenEdit nextLineStartHyphenEdit = editForNextLine(hyph); in tryLineBreakWithHyphenation() 221 editForThisLine(hyph), nextLineStartHyphenEdit); in tryLineBreakWithHyphenation() 243 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(prevOffset)]; in tryLineBreakWithHyphenation() local 244 const StartHyphenEdit nextLineStartHyphenEdit = editForNextLine(hyph); in tryLineBreakWithHyphenation() 250 remainingCharWidths, editForThisLine(hyph), nextLineStartHyphenEdit); in tryLineBreakWithHyphenation()
|
/frameworks/minikin/tools/ |
D | mk_hyb_file.py | 276 hyph = Hyph() 280 hyph.add_pat(pat) 281 return hyph 305 def load_hyp(hyph, fn): argument 308 hyph.add_exception(l.strip()) 347 def generate_trie(hyph, ch_map, n_trie, dedup_ix, dedup_nodes, patmap): argument 368 dedup_next = hyph.bfs_order[dedup_ix[next.bfs_ix]] 410 def generate_hyb_file(hyph, ch_map, hyb_fn): argument 411 bfs = hyph.bfs(ch_map) 412 dedup_ix, dedup_nodes = hyph.dedup() [all …]
|
/frameworks/minikin/app/ |
D | HyphTool.cpp | 38 Hyphenator* hyph = loadHybFile("/tmp/en.hyb", 2, 3, "en"); // should also be configurable in main() local 55 hyph->hyphenate(word, &result); in main()
|