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 | 84 const HyphenationType hyph = hyphenResult[hyphenationTargetRange.toRangeOffset(i)]; in populateHyphenationPoints() local 85 if (hyph == HyphenationType::DONT_BREAK) { in populateHyphenationPoints() 94 editForThisLine(hyph) /* end hyphen edit */, in populateHyphenationPoints() 97 editForNextLine(hyph) /* start hyphen edit */, in populateHyphenationPoints() 101 out->emplace_back(i, hyph, first, second); in populateHyphenationPoints()
|
D | GreedyLineBreaker.cpp | 191 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(i)]; in tryLineBreakWithHyphenation() local 192 if (hyph == HyphenationType::DONT_BREAK) { in tryLineBreakWithHyphenation() 197 mStartHyphenEdit, editForThisLine(hyph), in tryLineBreakWithHyphenation() 213 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(prevOffset)]; in tryLineBreakWithHyphenation() local 214 const StartHyphenEdit nextLineStartHyphenEdit = editForNextLine(hyph); in tryLineBreakWithHyphenation() 220 editForThisLine(hyph), nextLineStartHyphenEdit); in tryLineBreakWithHyphenation() 242 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(prevOffset)]; in tryLineBreakWithHyphenation() local 243 const StartHyphenEdit nextLineStartHyphenEdit = editForNextLine(hyph); in tryLineBreakWithHyphenation() 249 remainingCharWidths, editForThisLine(hyph), nextLineStartHyphenEdit); in tryLineBreakWithHyphenation()
|
/frameworks/minikin/tools/ |
D | mk_hyb_file.py | 275 hyph = Hyph() 279 hyph.add_pat(pat) 280 return hyph 304 def load_hyp(hyph, fn): argument 307 hyph.add_exception(l.strip()) 346 def generate_trie(hyph, ch_map, n_trie, dedup_ix, dedup_nodes, patmap): argument 367 dedup_next = hyph.bfs_order[dedup_ix[next.bfs_ix]] 409 def generate_hyb_file(hyph, ch_map, hyb_fn): argument 410 bfs = hyph.bfs(ch_map) 411 dedup_ix, dedup_nodes = hyph.dedup() [all …]
|
/frameworks/minikin/app/ |
D | HyphTool.cpp | 39 Hyphenator* hyph = loadHybFile("/tmp/en.hyb", 2, 3, "en"); // should also be configurable in main() local 56 hyph->hyphenate(word, &result); in main()
|