Home
last modified time | relevance | path

Searched refs:TextWrapper (Results 1 – 25 of 34) sorted by relevance

12

/external/python/cpython2/Doc/library/
Dtextwrap.rst16 :func:`fill`, as well as :class:`TextWrapper`, the class that does all the work,
19 otherwise, you should use an instance of :class:`TextWrapper` for efficiency.
27 :class:`TextWrapper`, documented below. *width* defaults to ``70``.
29 See the :meth:`TextWrapper.wrap` method for additional details on how
43 Both :func:`wrap` and :func:`fill` work by creating a :class:`TextWrapper`
46 to create your own :class:`TextWrapper` object.
50 :attr:`TextWrapper.break_long_words` is set to false.
81 .. class:: TextWrapper(...)
83 The :class:`TextWrapper` constructor accepts a number of optional keyword
87 wrapper = TextWrapper(initial_indent="* ")
[all …]
/external/python/cpython3/Doc/library/
Dtextwrap.rst15 as well as :class:`TextWrapper`, the class that does all the work.
18 :class:`TextWrapper` for efficiency.
31 :class:`TextWrapper`, documented below.
33 See the :meth:`TextWrapper.wrap` method for additional details on how
72 :class:`TextWrapper`, documented below. Note that the whitespace is
73 collapsed before the text is passed to the :class:`TextWrapper` :meth:`fill`
134 :class:`TextWrapper` instance and calling a single method on it. That
137 create your own :class:`TextWrapper` object.
141 :attr:`TextWrapper.break_long_words` is set to false.
143 .. class:: TextWrapper(**kwargs)
[all …]
/external/skia/modules/skparagraph/src/
DTextWrapper.cpp40 void TextWrapper::lookAhead(SkScalar maxWidth, Cluster* endOfClusters) { in lookAhead()
169 void TextWrapper::moveForward(bool hasEllipsis) { in moveForward()
195 void TextWrapper::trimEndSpaces(TextAlign align) { in trimEndSpaces()
207 SkScalar TextWrapper::getClustersTrimmedWidth() { in getClustersTrimmedWidth()
228 std::tuple<Cluster*, size_t, SkScalar> TextWrapper::trimStartSpaces(Cluster* endOfClusters) { in trimStartSpaces()
261 void TextWrapper::breakTextIntoLines(ParagraphImpl* parent, in breakTextIntoLines()
DTextWrapper.h14 class TextWrapper {
164 TextWrapper() { in TextWrapper() function
DBUILD.bazel293 hdrs = ["TextWrapper.h"],
303 srcs = ["TextWrapper.cpp"],
DParagraphImpl.h234 friend class TextWrapper;
DRun.h491 friend class TextWrapper;
DParagraphImpl.cpp514 TextWrapper textWrapper; in breakShapedTextIntoLines()
/external/python/cpython3/Lib/
Dtextwrap.py17 class TextWrapper: class
386 w = TextWrapper(width=width, **kwargs)
398 w = TextWrapper(width=width, **kwargs)
413 w = TextWrapper(width=width, max_lines=1, **kwargs)
/external/skia/modules/skparagraph/
Dskparagraph.gni40 "$_src/TextWrapper.cpp",
41 "$_src/TextWrapper.h",
/external/python/cpython2/Lib/test/
Dtest_textwrap.py14 from textwrap import TextWrapper, wrap, fill, dedent
50 self.wrapper = TextWrapper(width=45)
96 wrapper = TextWrapper(45, fix_sentence_endings=True)
104 wrapper = TextWrapper(60, fix_sentence_endings=True)
441 self.wrapper = TextWrapper()
/external/python/cpython2/Lib/
Dtextwrap.py40 class TextWrapper: class
353 w = TextWrapper(width=width, **kwargs)
365 w = TextWrapper(width=width, **kwargs)
/external/python/cpython3/Lib/test/
Dtest_textwrap.py13 from textwrap import TextWrapper, wrap, fill, dedent, indent, shorten
49 self.wrapper = TextWrapper(width=45)
95 wrapper = TextWrapper(45, fix_sentence_endings=True)
111 wrapper = TextWrapper(60, fix_sentence_endings=True)
576 self.wrapper = TextWrapper()
645 self.wrapper = TextWrapper()
Dtest_pydoc.py1095 self.assertEqual(self._get_summary_line(textwrap.TextWrapper.wrap),
1105 t = textwrap.TextWrapper()
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_calltips.py74 if textwrap.TextWrapper.__doc__ is not None:
75 self.assertEqual(signature(textwrap.TextWrapper), '''\
Dtest_idlehistory.py55 class TextWrapper: class
74 self.text = text = TextWrapper(self.root)
Dtest_formatparagraph.py230 class TextWrapper: class
240 self.text = TextWrapper(root)
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_history.py58 class TextWrapper: class
78 self.text = text = TextWrapper(self.root)
Dtest_calltip.py97 if textwrap.TextWrapper.__doc__ is not None:
98 self.assertEqual(get_spec(textwrap.TextWrapper), '''\
Dtest_format.py233 class TextWrapper: class
243 self.text = TextWrapper(root)
/external/pigweed/pw_cli/py/pw_cli/
Dplugins.py39 from textwrap import TextWrapper
344 wrapper = TextWrapper(width=80,
/external/autotest/cli/
Dtopic_common.py287 twrap = textwrap.TextWrapper(initial_indent=' ',
397 twrap = textwrap.TextWrapper(initial_indent=' ',
735 twrap = textwrap.TextWrapper(initial_indent='\t',
/external/python/cpython3/Misc/NEWS.d/
D3.6.0b3.rst146 The textwrap.TextWrapper class now honors non-breaking spaces. Based on
/external/python/cpython3/Lib/idlelib/
Dpyshell.py44 from textwrap import TextWrapper
1412 wrapper = TextWrapper(width=width, tabsize=8, expand_tabs=True)
/external/libchrome/base/android/jni_generator/
Djni_generator.py52 textwrap.TextWrapper(width=_WRAP_LINE_LENGTH, expand_tabs=False,

12