HomeSort by relevance Sort by last modified time
    Searched refs:HyphenationType (Results 1 - 10 of 10) sorted by null

  /frameworks/minikin/tests/unittest/
HyphenatorTest.cpp 51 std::vector<HyphenationType> result;
54 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]);
55 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]);
56 EXPECT_EQ(HyphenationType::BREAK_AND_INSERT_HYPHEN, result[2]);
57 EXPECT_EQ(HyphenationType::DONT_BREAK, result[3]);
58 EXPECT_EQ(HyphenationType::DONT_BREAK, result[4]);
65 std::vector<HyphenationType> result;
68 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]);
69 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]);
70 EXPECT_EQ(HyphenationType::DONT_BREAK, result[2])
    [all...]
  /frameworks/minikin/libs/minikin/
LineBreakerUtil.cpp 28 std::vector<HyphenationType> hyphenate(const U16StringPiece& str, const Hyphenator& hyphenator) {
29 std::vector<HyphenationType> out;
44 out.insert(out.end(), word.size(), HyphenationType::DONT_BREAK);
50 out.push_back(HyphenationType::DONT_BREAK);
Hyphenator.cpp 120 void Hyphenator::hyphenate(const U16StringPiece& word, HyphenationType* out) const {
126 const HyphenationType hyphenValue = alphabetLookup(alpha_codes, word);
127 if (hyphenValue != HyphenationType::DONT_BREAK) {
158 EndHyphenEdit editForThisLine(HyphenationType type) {
160 case HyphenationType::BREAK_AND_INSERT_HYPHEN:
162 case HyphenationType::BREAK_AND_INSERT_ARMENIAN_HYPHEN:
164 case HyphenationType::BREAK_AND_INSERT_MAQAF:
166 case HyphenationType::BREAK_AND_INSERT_UCAS_HYPHEN:
168 case HyphenationType::BREAK_AND_REPLACE_WITH_HYPHEN:
170 case HyphenationType::BREAK_AND_INSERT_HYPHEN_AND_ZWJ
    [all...]
LineBreakerUtil.h 42 std::vector<HyphenationType> hyphenate(const U16StringPiece& string, const Hyphenator& hypenator);
81 const std::vector<HyphenationType> hyphenResult =
84 const HyphenationType hyph = hyphenResult[hyphenationTargetRange.toRangeOffset(i)];
85 if (hyph == HyphenationType::DONT_BREAK) {
GreedyLineBreaker.cpp 183 const std::vector<HyphenationType> hyphenResult =
191 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(i)];
192 if (hyph == HyphenationType::DONT_BREAK) {
213 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(prevOffset)];
242 const HyphenationType hyph = hyphenResult[targetRange.toRangeOffset(prevOffset)];
OptimalLineBreaker.cpp 70 HyphenationType hyphenType;
74 uint32_t preSpaceCount, uint32_t postSpaceCount, HyphenationType hyphenType,
104 HyphenationType::BREAK_AND_DONT_INSERT_HYPHEN, isRtl);
109 float penalty, uint32_t spaceCount, HyphenationType type,
120 HyphenationType::DONT_BREAK, isRtl);
124 candidates.emplace_back(0, 0.0f, 0.0f, 0.0f, 0, 0, HyphenationType::DONT_BREAK, false);
  /frameworks/minikin/include/minikin/
Hyphenator.h 40 enum class HyphenationType : uint8_t {
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 {
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;
MeasuredText.h 146 HyphenationType type;
154 HyphenBreak(uint32_t offset, HyphenationType type, float first, float second)
  /frameworks/minikin/tests/perftests/
Hyphenator.cpp 33 std::vector<HyphenationType> result;
46 std::vector<HyphenationType> result;
  /frameworks/minikin/app/
HyphTool.cpp 11 using minikin::HyphenationType;
40 std::vector<HyphenationType> result;
58 if (result[i] != HyphenationType::DONT_BREAK) {

Completed in 244 milliseconds