Lines Matching refs:textBuffer

80     LineBreakResult doLineBreak(const U16StringPiece& textBuffer, bool doHyphenation,  in doLineBreak()  argument
82 return doLineBreak(textBuffer, doHyphenation, "en-US", lineWidth); in doLineBreak()
85 LineBreakResult doLineBreakForJapanese(const U16StringPiece& textBuffer, in doLineBreakForJapanese() argument
95 builder.addStyleRun(0, textBuffer.size(), std::move(paint), (int)LineBreakStyle::None, in doLineBreakForJapanese()
98 textBuffer, false /* compute hyphenation */, false /* compute full layout */, in doLineBreakForJapanese()
102 return breakLineGreedy(textBuffer, *measuredText, rectangleLineWidth, tabStops, false, in doLineBreakForJapanese()
106 LineBreakResult doLineBreakForKorean(const U16StringPiece& textBuffer, in doLineBreakForKorean() argument
116 builder.addStyleRun(0, textBuffer.size(), std::move(paint), (int)LineBreakStyle::None, in doLineBreakForKorean()
119 textBuffer, false /* compute hyphenation */, false /* compute full layout */, in doLineBreakForKorean()
123 return breakLineGreedy(textBuffer, *measuredText, rectangleLineWidth, tabStops, false, in doLineBreakForKorean()
127 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, bool doHyphenation, in doLineBreak() argument
137 builder.addStyleRun(0, textBuffer.size(), std::move(paint), (int)LineBreakStyle::None, in doLineBreak()
140 textBuffer, false /* compute hyphenation */, false /* compute full layout */, in doLineBreak()
144 return breakLineGreedy(textBuffer, *measuredText, rectangleLineWidth, tabStops, in doLineBreak()
148 LineBreakResult doLineBreakWithNoHyphenSpan(const U16StringPiece& textBuffer, in doLineBreakWithNoHyphenSpan() argument
169 if (noHyphenRange.getEnd() != textBuffer.size()) { in doLineBreakWithNoHyphenSpan()
173 builder.addStyleRun(noHyphenRange.getEnd(), textBuffer.size(), std::move(paint), in doLineBreakWithNoHyphenSpan()
179 textBuffer, false /* compute hyphenation */, false /* compute full layout */, in doLineBreakWithNoHyphenSpan()
183 return breakLineGreedy(textBuffer, *measuredText, rectangleLineWidth, tabStops, in doLineBreakWithNoHyphenSpan()
187 LineBreakResult doLineBreakForBounds(const U16StringPiece& textBuffer, bool doHyphenation, in doLineBreakForBounds() argument
197 builder.addStyleRun(0, textBuffer.size(), std::move(paint), (int)LineBreakStyle::None, in doLineBreakForBounds()
200 textBuffer, false /* compute hyphenation */, false /* compute full layout */, in doLineBreakForBounds()
204 return breakLineGreedy(textBuffer, *measuredText, rectangleLineWidth, tabStops, in doLineBreakForBounds()
208 LineBreakResult doLineBreakForLetterSpacing(const U16StringPiece& textBuffer, in doLineBreakForLetterSpacing() argument
220 builder.addStyleRun(0, textBuffer.size(), std::move(paint), (int)LineBreakStyle::None, in doLineBreakForLetterSpacing()
223 textBuffer, false /* compute hyphenation */, false /* compute full layout */, in doLineBreakForLetterSpacing()
227 return breakLineGreedy(textBuffer, *measuredText, rectangleLineWidth, tabStops, in doLineBreakForLetterSpacing()
245 const std::vector<uint16_t> textBuffer = utf8ToUtf16("8888888888888888888"); in TEST_F() local
247 float measured = Layout::measureText(textBuffer, Range(0, textBuffer.size()), Bidi::LTR, paint, in TEST_F()
251 builder.addStyleRun(0, textBuffer.size(), std::move(paint), (int)LineBreakStyle::None, in TEST_F()
254 textBuffer, false /* compute hyphenation */, false /* compute full layout */, in TEST_F()
258 LineBreakResult r = breakLineGreedy(textBuffer, *measuredText, rectangleLineWidth, tabStops, in TEST_F()