Home
last modified time | relevance | path

Searched refs:HyphenationType (Results 1 – 12 of 12) sorted by relevance

/frameworks/minikin/tests/unittest/
DHyphenatorTest.cpp69 std::vector<HyphenationType> result; in TEST_P()
72 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]); in TEST_P()
73 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]); in TEST_P()
74 EXPECT_EQ(HyphenationType::BREAK_AND_INSERT_HYPHEN, result[2]); in TEST_P()
75 EXPECT_EQ(HyphenationType::DONT_BREAK, result[3]); in TEST_P()
76 EXPECT_EQ(HyphenationType::DONT_BREAK, result[4]); in TEST_P()
83 std::vector<HyphenationType> result; in TEST_P()
86 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]); in TEST_P()
87 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]); in TEST_P()
88 EXPECT_EQ(HyphenationType::DONT_BREAK, result[2]); in TEST_P()
[all …]
/frameworks/minikin/libs/minikin/
DHyphenator.cpp113 virtual void hyphenate(const U16StringPiece& word, HyphenationType* out) const override { in hyphenate()
114 static_assert(sizeof(HyphenationType) == sizeof(uint8_t), in hyphenate()
173 void HyphenatorCXX::hyphenate(const U16StringPiece& word, HyphenationType* out) const { in hyphenate()
179 const HyphenationType hyphenValue = alphabetLookup(alpha_codes, word); in hyphenate()
181 if (hyphenValue != HyphenationType::DONT_BREAK) { in hyphenate()
212 EndHyphenEdit editForThisLine(HyphenationType type) { in editForThisLine()
214 case HyphenationType::BREAK_AND_INSERT_HYPHEN: in editForThisLine()
216 case HyphenationType::BREAK_AND_INSERT_ARMENIAN_HYPHEN: in editForThisLine()
218 case HyphenationType::BREAK_AND_INSERT_MAQAF: in editForThisLine()
220 case HyphenationType::BREAK_AND_INSERT_UCAS_HYPHEN: in editForThisLine()
[all …]
DLineBreakerUtil.cpp28 std::vector<HyphenationType> hyphenate(const U16StringPiece& str, const Hyphenator& hyphenator) { in hyphenate()
29 std::vector<HyphenationType> out; in hyphenate()
44 out.insert(out.end(), word.size(), HyphenationType::DONT_BREAK); in hyphenate()
50 out.push_back(HyphenationType::DONT_BREAK); in hyphenate()
DLineBreakerUtil.h44 std::vector<HyphenationType> hyphenate(const U16StringPiece& string, const Hyphenator& hypenator);
89 const std::vector<HyphenationType> hyphenResult = in populateHyphenationPoints()
92 const HyphenationType hyph = hyphenResult[hyphenationTargetRange.toRangeOffset(i)]; in populateHyphenationPoints()
93 if (hyph == HyphenationType::DONT_BREAK) { in populateHyphenationPoints()
DOptimalLineBreaker.cpp71 HyphenationType hyphenType;
75 uint32_t preSpaceCount, uint32_t postSpaceCount, HyphenationType hyphenType, in Candidate()
108 HyphenationType::BREAK_AND_DONT_INSERT_HYPHEN, isRtl, letterSpacing); in pushDesperate()
113 float penalty, uint32_t spaceCount, HyphenationType type, in pushHyphenation()
124 HyphenationType::DONT_BREAK, isRtl, letterSpacing); in pushWordBreak()
133 uint32_t preSpaceCount, uint32_t postSpaceCount, HyphenationType type, in pushBreakCandidate()
464 if (candidates[i].hyphenType == HyphenationType::DONT_BREAK && in computeBreaks()
465 candidates[j].hyphenType == HyphenationType::DONT_BREAK) { in computeBreaks()
DGreedyLineBreaker.cpp203 const std::vector<HyphenationType> hyphenResult = in tryLineBreakWithHyphenation()
211 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(i)]; in tryLineBreakWithHyphenation()
212 if (hyph == HyphenationType::DONT_BREAK) { in tryLineBreakWithHyphenation()
233 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(prevOffset)]; in tryLineBreakWithHyphenation()
262 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(prevOffset)]; in tryLineBreakWithHyphenation()
/frameworks/minikin/fuzz/hyphenator_fuzzer/
Dhyphenator_fuzzer.cpp51 const HyphenationType HyphenationTypes[] = {
52 HyphenationType::DONT_BREAK,
53 HyphenationType::BREAK_AND_INSERT_HYPHEN,
54 HyphenationType::BREAK_AND_INSERT_ARMENIAN_HYPHEN,
55 HyphenationType::BREAK_AND_INSERT_MAQAF,
56 HyphenationType::BREAK_AND_INSERT_UCAS_HYPHEN,
57 HyphenationType::BREAK_AND_DONT_INSERT_HYPHEN,
58 HyphenationType::BREAK_AND_REPLACE_WITH_HYPHEN,
59 HyphenationType::BREAK_AND_INSERT_HYPHEN_AT_NEXT_LINE,
60 HyphenationType::BREAK_AND_INSERT_HYPHEN_AND_ZWJ,
[all …]
/frameworks/minikin/include/minikin/
DHyphenator.h40 enum class HyphenationType : uint8_t { enum
167 EndHyphenEdit editForThisLine(HyphenationType type);
168 StartHyphenEdit editForNextLine(HyphenationType type);
183 virtual void hyphenate(const U16StringPiece& word, HyphenationType* out) const = 0;
188 void hyphenate(const U16StringPiece& word, std::vector<HyphenationType>* out) const { in hyphenate()
233 virtual void hyphenate(const U16StringPiece& word, HyphenationType* out) const override;
238 void hyphenate(const U16StringPiece& word, std::vector<HyphenationType>* out) const { in hyphenate()
255 void hyphenateWithNoPatterns(const U16StringPiece& word, HyphenationType* out) const;
261 HyphenationType alphabetLookup(uint16_t* alpha_codes, const U16StringPiece& word) const;
264 void hyphenateFromCodes(const uint16_t* codes, size_t len, HyphenationType hyphenValue,
[all …]
DMeasuredText.h240 HyphenationType type;
248 HyphenBreak(uint32_t offset, HyphenationType type, float first, float second) in HyphenBreak()
/frameworks/minikin/rust/
Dhyphenator.rs115 pub enum HyphenationType { enum
346 ) -> HyphenationType { argument
347 let mut result = HyphenationType::BreakAndInsertHyphen;
354 return HyphenationType::DontBreak;
356 if result == HyphenationType::BreakAndInsertHyphen {
587 HyphenationType::DontBreak in hyphenate()
590 if hyphen_value != HyphenationType::DontBreak { in hyphenate()
624 fn get_hyph_type_for_arabic(word: &[u16], location: u32) -> HyphenationType { in get_hyph_type_for_arabic() argument
658 return HyphenationType::BreakAndInsertHyphenAndZwj; in get_hyph_type_for_arabic()
661 HyphenationType::BreakAndInsertHyphen in get_hyph_type_for_arabic()
[all …]
/frameworks/minikin/app/
DHyphTool.cpp11 using minikin::HyphenationType;
41 std::vector<HyphenationType> result; in main()
63 if (result[i] != HyphenationType::DONT_BREAK) { in main()
/frameworks/minikin/tests/perftests/
DHyphenator.cpp34 std::vector<HyphenationType> result; in BM_Hyphenator_short_word()
48 std::vector<HyphenationType> result; in BM_Hyphenator_long_word()