Home
last modified time | relevance | path

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

/frameworks/minikin/tests/unittest/
DHyphenatorTest.cpp51 std::vector<HyphenationType> result; in TEST()
54 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]); in TEST()
55 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]); in TEST()
56 EXPECT_EQ(HyphenationType::BREAK_AND_INSERT_HYPHEN, result[2]); in TEST()
57 EXPECT_EQ(HyphenationType::DONT_BREAK, result[3]); in TEST()
58 EXPECT_EQ(HyphenationType::DONT_BREAK, result[4]); in TEST()
65 std::vector<HyphenationType> result; in TEST()
68 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]); in TEST()
69 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]); in TEST()
70 EXPECT_EQ(HyphenationType::DONT_BREAK, result[2]); in TEST()
[all …]
/frameworks/minikin/libs/minikin/
DHyphenator.cpp120 void Hyphenator::hyphenate(const U16StringPiece& word, HyphenationType* out) const { in hyphenate()
126 const HyphenationType hyphenValue = alphabetLookup(alpha_codes, word); in hyphenate()
127 if (hyphenValue != HyphenationType::DONT_BREAK) { in hyphenate()
158 EndHyphenEdit editForThisLine(HyphenationType type) { in editForThisLine()
160 case HyphenationType::BREAK_AND_INSERT_HYPHEN: in editForThisLine()
162 case HyphenationType::BREAK_AND_INSERT_ARMENIAN_HYPHEN: in editForThisLine()
164 case HyphenationType::BREAK_AND_INSERT_MAQAF: in editForThisLine()
166 case HyphenationType::BREAK_AND_INSERT_UCAS_HYPHEN: in editForThisLine()
168 case HyphenationType::BREAK_AND_REPLACE_WITH_HYPHEN: in editForThisLine()
170 case HyphenationType::BREAK_AND_INSERT_HYPHEN_AND_ZWJ: 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.h42 std::vector<HyphenationType> hyphenate(const U16StringPiece& string, const Hyphenator& hypenator);
76 const std::vector<HyphenationType> hyphenResult = in populateHyphenationPoints()
79 const HyphenationType hyph = hyphenResult[hyphenationTargetRange.toRangeOffset(i)]; in populateHyphenationPoints()
80 if (hyph == HyphenationType::DONT_BREAK) { in populateHyphenationPoints()
DGreedyLineBreaker.cpp184 const std::vector<HyphenationType> hyphenResult = in tryLineBreakWithHyphenation()
192 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(i)]; in tryLineBreakWithHyphenation()
193 if (hyph == HyphenationType::DONT_BREAK) { in tryLineBreakWithHyphenation()
214 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(prevOffset)]; in tryLineBreakWithHyphenation()
243 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(prevOffset)]; in tryLineBreakWithHyphenation()
DOptimalLineBreaker.cpp70 HyphenationType hyphenType;
74 uint32_t preSpaceCount, uint32_t postSpaceCount, HyphenationType hyphenType, in Candidate()
104 HyphenationType::BREAK_AND_DONT_INSERT_HYPHEN, isRtl); in pushDesperate()
109 float penalty, uint32_t spaceCount, HyphenationType type, in pushHyphenation()
120 HyphenationType::DONT_BREAK, isRtl); in pushWordBreak()
124 candidates.emplace_back(0, 0.0f, 0.0f, 0.0f, 0, 0, HyphenationType::DONT_BREAK, false); in OptimizeContext()
/frameworks/minikin/include/minikin/
DHyphenator.h40 enum class HyphenationType : uint8_t { enum
167 EndHyphenEdit editForThisLine(HyphenationType type);
168 StartHyphenEdit editForNextLine(HyphenationType type);
183 void hyphenate(const U16StringPiece& word, HyphenationType* out) const;
188 void hyphenate(const U16StringPiece& word, std::vector<HyphenationType>* out) const { in hyphenate()
221 void hyphenateWithNoPatterns(const U16StringPiece& word, HyphenationType* out) const;
227 HyphenationType alphabetLookup(uint16_t* alpha_codes, const U16StringPiece& word) const;
230 void hyphenateFromCodes(const uint16_t* codes, size_t len, HyphenationType hyphenValue,
231 HyphenationType* out) const;
DMeasuredText.h162 HyphenationType type;
170 HyphenBreak(uint32_t offset, HyphenationType type, float first, float second) in HyphenBreak()
/frameworks/minikin/app/
DHyphTool.cpp10 using minikin::HyphenationType;
39 std::vector<HyphenationType> result; in main()
57 if (result[i] != HyphenationType::DONT_BREAK) { in main()
/frameworks/minikin/tests/perftests/
DHyphenator.cpp33 std::vector<HyphenationType> result; in BM_Hyphenator_short_word()
46 std::vector<HyphenationType> result; in BM_Hyphenator_long_word()