Home
last modified time | relevance | path

Searched refs:hyph (Results 1 – 5 of 5) sorted by relevance

/frameworks/minikin/include/minikin/
DHyphenator.h112 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 uint16_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 uint16_t*, size_t> getHyphenString(EndHyphenEdit hyph) { in getHyphenString() argument
[all …]
/frameworks/minikin/libs/minikin/
DLineBreakerUtil.h92 const HyphenationType hyph = hyphenResult[hyphenationTargetRange.toRangeOffset(i)]; in populateHyphenationPoints() local
93 if (hyph == HyphenationType::DONT_BREAK) { in populateHyphenationPoints()
104 editForThisLine(hyph) /* end hyphen edit */, pieces); in populateHyphenationPoints()
107 editForNextLine(hyph) /* start hyphen edit */, in populateHyphenationPoints()
110 out->emplace_back(i, hyph, first, second); in populateHyphenationPoints()
121 EndHyphenEdit endEdit = editForThisLine(hyph); in populateHyphenationPoints()
122 StartHyphenEdit startEdit = editForNextLine(hyph); in populateHyphenationPoints()
134 out->emplace_back(i, hyph, first, second); in populateHyphenationPoints()
DGreedyLineBreaker.cpp211 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(i)]; in tryLineBreakWithHyphenation() local
212 if (hyph == HyphenationType::DONT_BREAK) { in tryLineBreakWithHyphenation()
218 mStartHyphenEdit, editForThisLine(hyph), nullptr); in tryLineBreakWithHyphenation()
233 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(prevOffset)]; in tryLineBreakWithHyphenation() local
234 const StartHyphenEdit nextLineStartHyphenEdit = editForNextLine(hyph); in tryLineBreakWithHyphenation()
240 editForThisLine(hyph), nextLineStartHyphenEdit); in tryLineBreakWithHyphenation()
262 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(prevOffset)]; in tryLineBreakWithHyphenation() local
263 const StartHyphenEdit nextLineStartHyphenEdit = editForNextLine(hyph); in tryLineBreakWithHyphenation()
269 remainingCharWidths, editForThisLine(hyph), nextLineStartHyphenEdit); in tryLineBreakWithHyphenation()
/frameworks/minikin/tools/
Dmk_hyb_file.py276 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/
DHyphTool.cpp40 Hyphenator* hyph = loadHybFile(argv[1], 2, 3, "fr"); // should also be configurable in main() local
61 hyph->hyphenate(word, &result); in main()