Home
last modified time | relevance | path

Searched +full:word +full:- +full:wrap (Results 1 – 25 of 696) sorted by relevance

12345678910>>...28

/external/python/cpython3/Lib/idlelib/
Dtextview.py5 HORIZONTAL, VERTICAL, NS, EW, NSEW, NONE, WORD, SUNKEN
34 def __init__(self, master, wrap=NONE, **kwargs): argument
37 master - master widget for this frame
38 wrap - type of text wrapping to use ('word', 'char' or 'none')
40 All parameters except for 'wrap' are passed to Frame.__init__().
49 text = self.text = Text(self, wrap=wrap)
61 # horizontal scrollbar - only when wrap is set to NONE
62 if wrap == NONE:
74 def __init__(self, parent, contents, wrap='word'): argument
77 parent - parent widget for this frame
[all …]
/external/aws-sdk-java-v2/javadoc-resources/
Daws-sdk-java-v2-javadoc.css23 font-weight: bold;
30 .top-nav a[href]:hover, a[href]:focus {
32 text-decoration: underline;
36 @media (max-width: 800px) {
38 word-break: break-all;
39 word-wrap: break-word;
40 white-space: break-spaces;
44 white-space: break-spaces !important;
47 .sub-title {
48 word-break: break-all;
[all …]
/external/rust/crates/textwrap/src/
Dwrap_algorithms.rs1 //! Word wrapping algorithms.
6 //! it uses no look-ahead and simply adds fragments to the line as
8 //! large fragment almost-but-not-quite fits on a line. When that
11 //! [`wrap_optimal_fit`], will take this into account. The optimal-fit
15 //! While both algorithms run in linear time, the first-fit algorithm
16 //! is about 4 times faster than the optimal-fit algorithm.
23 use crate::core::{Fragment, Word};
25 /// Describes how to wrap words into lines.
27 /// The simplest approach is to wrap words one word at a time and
35 /// Wrap words using a fast and simple algorithm.
[all …]
Dword_splitters.rs1 //! Word splitting functionality.
3 //! To wrap text into lines, long words sometimes need to be split
7 use crate::core::{display_width, Word};
14 /// language-aware hyphenation:
19 /// use textwrap::{wrap, Options, WordSplitter};
24 /// assert_eq!(wrap(text, &options), vec!["Oxida-",
27 /// "of elec-",
42 /// use textwrap::{wrap, Options, WordSplitter};
45 /// assert_eq!(wrap("foo bar-baz", &options),
46 /// vec!["foo", "bar-baz"]);
[all …]
Dlib.rs1 //! The textwrap library provides functions for word wrapping and
6 //! Wrapping text can be very useful in command-line programs where
13 //! assert_eq!(textwrap::wrap(text, 18),
20 //! The [`wrap`] function returns the individual lines, use [`fill`]
29 //! use textwrap::{wrap, Options, WordSplitter};
34 //! assert_eq!(wrap(text, &options),
36 //! "library for wrap-",
47 //! the procedural macros from the [textwrap-macros] crate.
51 //! To word wrap text, one must know the width of each word so one can
54 //! The `unicode-width` Cargo feature controls this.
[all …]
/external/perfetto/docs/images/
Dperfetto-stack.svg1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3-0.5 -0.5 1652 776" content="&lt;mxfile host=&quot;app.diagrams.net&quot; modified=&quot;2020-05-2…
/external/jsoup/src/main/java/org/jsoup/examples/
DHtmlToPlainText.java17 …* HTML to plain-text. This example program demonstrates the use of jsoup to convert HTML input to …
18 …* plain-text. That is divergent from the general goal of jsoup's .text() methods, which is to get …
21 …* Note that this is a fairly simplistic formatter -- for real world use you'll want to embrace and…
25 * <p><code>java -cp jsoup.jar org.jsoup.examples.HtmlToPlainText url [selector]</code></p>
35 …Validate.isTrue(args.length == 1 || args.length == 2, "usage: java -cp jsoup.jar org.jsoup.example… in main()
57 * Format an Element to plain-text
68 // the formatting rules, implemented in a breadth-first DOM traverse
78 … append(((TextNode) node).text()); // TextNodes carry all user-readable text in the DOM. in head()
96 // appends text to the string builder with a simple word wrap method
101 … (accum.length() == 0 || StringUtil.in(accum.substring(accum.length() - 1), " ", "\n"))) in append()
[all …]
/external/e2fsprogs/
Dwordwrap.pl3 # wordwrap.pl --- does word wrap
6 if (/^#/) { # don't word wrap comments
13 while (defined($word = shift @words)) {
14 $word =~ s#\$\(srcdir\)/\.\./version.h#\$\(top_srcdir\)/version.h#;
15 $word =~ s#\$\(srcdir\)/.\.\/\.\./version.h#\$\(top_srcdir\)/version.h#;
16 $word =~ s#\$\(srcdir\)/.\.\/et/com_err.h#\$\(top_srcdir\)/lib/et/com_err.h#;
20 $len = length($word) + 1;
26 printf("%s", $word);
/external/rust/crates/textwrap/src/wrap_algorithms/
Doptimal_fit.rs24 /// Per-line penalty. This is added for every line, which makes it
28 /// Per-character cost for lines that overflow the target line width.
37 /// use textwrap::core::Word;
43 /// let fragments = vec![Word::from(short), Word::from(&long)];
48 /// assert_eq!(wrapped, vec![&[Word::from(short), Word::from(&long)]]);
54 /// let wrapped = wrap_optimal_fit(&fragments, &[length - 1.0], &penalties).unwrap();
55 /// assert_eq!(wrapped, vec![&[Word::from(short), Word::from(&long)]]);
60 /// let wrapped = wrap_optimal_fit(&fragments, &[length - 2.0], &penalties).unwrap();
61 /// assert_eq!(wrapped, vec![&[Word::from(short)],
62 /// &[Word::from(&long)]]);
[all …]
/external/libopus/doc/
Dopus_in_isobmff.css14 white-space: pre; /* CSS 2.0 */
15 white-space: pre-wrap; /* CSS 2.1 */
16 white-space: -pre-wrap; /* Opera 4-6 */
17 white-space: -o-pre-wrap; /* Opera 7 */
18 white-space: -moz-pre-wrap; /* Mozilla */
19 white-space: -hp-pre-wrap; /* HP Printers */
20 word-wrap : break-word; /* IE 5+ */
30 background-color : #666666;
31 white-space : pre;
33 text-align : center;
[all …]
/external/python/cpython2/Lib/test/
Dtest_textwrap.py14 from textwrap import TextWrapper, wrap, fill, dedent
37 result = wrap(text, width, **kwargs)
80 # Whitespace munging and end-of-sentence detection
97 result = wrapper.wrap(text)
111 self.check(wrapper.wrap(text), expect)
118 self.check(wrapper.wrap(text), expect)
121 self.check(wrapper.wrap(text), expect)
125 self.check(wrapper.wrap(text), expect)
129 self.check(wrapper.wrap(text), expect)
135 self.check(wrapper.wrap(text), expect)
[all …]
/external/wayland/doc/publican/sources/css/
Dcommon.css7 line-height: 1.29em;
11 background-color: white;
13 …font-family: "liberation sans", "Myriad ", "Bitstream Vera Sans", "Lucida Grande", "Luxi Sans", "T…
14 font-size: 14px;
15 max-width: 770px;
21 margin-left: 300px;
26 border-style: none;
32 z-index: 100;
33 border-style: none;
34 border-right:1px solid #999;
[all …]
/external/pigweed/pw_web/
Dlog_viewer.rst1 .. _module-pw_web-log-viewer:
11 See :ref:`module-pw_console-user_guide-start`.
13 .. figure:: https://storage.googleapis.com/pigweed-media/pw_web/open-from-console.png
15 logs, and a pop-up with the URL to the web log viewer. The other pane shows
21 -----------
23 -----------
26 .. figure:: https://storage.googleapis.com/pigweed-media/pw_web/filter.png
44 .. list-table::
46 :header-rows: 1
48 * - Filter with
[all …]
/external/rust/crates/clap/src/output/textwrap/
Dmod.rs4 //! - Pull in only what we need rather than relying on the compiler to remove what we don't need
5 //! - `LineWrapper` is able to incrementally wrap which will help with `StyledStr
14 pub(crate) fn wrap(content: &str, hard_width: usize) -> String { in wrap() function
20 total.extend(wrapper.wrap(line)); in wrap()
26 pub(crate) fn wrap(content: &str, _hard_width: usize) -> String { in wrap() function
34 fn wrap(content: &str, hard_width: usize) -> Vec<String> { in wrap() function
35 super::wrap(content, hard_width) in wrap()
44 assert_eq!(wrap("foo", 10), vec!["foo"]); in no_wrap()
49 assert_eq!(wrap("foo bar baz", 5), vec!["foo", "bar", "baz"]); in wrap_simple()
55 wrap("To be, or not to be, that is the question.", 10), in to_be_or_not()
[all …]
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/text/
DWordUtils.java9 * http://www.apache.org/licenses/LICENSE-2.0
34 …* <a href="https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/…
43 * {@code WordUtils.wrap("foo bar", 20);}.
83 * <td>"Click here to jump to the commons website - https://commons.apache.org"</td>
85 * <td>"Click here to jump\nto the commons\nwebsite -\nhttps://commons.apache.org"</td>
96 * @param str the String to be word wrapped, may be null
97 * @param wrapLength the column to wrap the words at, less than 1 is treated as 1
100 public static String wrap(final String str, final int wrapLength) { in wrap() method in WordUtils
101 return wrap(str, wrapLength, null, false); in wrap()
155 * <td>"Click here to jump to the commons website - https://commons.apache.org"</td>
[all …]
/external/python/cpython3/Lib/
Dtextwrap.py4 # Copyright (C) 1999-2001 Gregory P. Ward.
10 __all__ = ['TextWrapper', 'wrap', 'fill', 'dedent', 'indent', 'shorten']
12 # Hardcode the recognized whitespace characters to the US-ASCII
14 # some Unicode spaces (like \u00a0) are non-breaking whitespaces.
20 the wrap() and fill() methods; the other methods are just there for
48 Ensure that sentence-ending punctuation is always followed
69 # text up into word-wrappable chunks. E.g.
70 # "Hello there -- you goof-ball, use the -b option!"
72 # Hello/ /there/ /--/ /you/ /goof-/ball,/ /use/ /the/ /-b/ /option!
81 | # em-dash between words
[all …]
/external/rust/crates/textwrap/
DREADME.md3 [![](https://github.com/mgeisler/textwrap/workflows/build/badge.svg)][build-status]
5 [![](https://img.shields.io/crates/v/textwrap.svg)][crates-io]
6 [![](https://docs.rs/textwrap/badge.svg)][api-docs]
9 often used by command-line programs to format dynamic output nicely so
10 it looks good in a terminal. You can also use Textwrap to wrap text
12 drawn on a [HTML5 canvas using WebAssembly][wasm-demo].
22 By default, this enables word wrapping with support for Unicode
29 documentation](https://docs.rs/textwrap/#cargo-features) for a full
35 **[API documentation][api-docs]**
39 Word wrapping is easy using the `wrap` and `fill` functions:
[all …]
DCHANGELOG.md6 ## Version 0.16.0 (2022-10-23)
10 `wrap`, and it fixes crashes in `unfill` and `refill`.
16 paths to `fill` and `wrap`. This makes the functions 10-25 times
29 ## Version 0.15.1 (2022-09-15)
34 ## Version 0.15.0 (2022-02-27)
71 nearly performance neutral (a 1-2% regression).
76 documentation for short last-line penalty more precise.
86 `wrap_optimal_fit` penalties to non-negative numbers.
88 `debug-words` example.
92 ## Version 0.14.2 (2021-06-27)
[all …]
/external/llvm/test/CodeGen/SystemZ/
Dvec-const-16.ll3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
5 ; Test a word-granularity replicate with the lowest value that cannot use
8 ; CHECK-LABEL: f1:
14 ; Test a word-granularity replicate that has the lower 17 bits set.
16 ; CHECK-LABEL: f2:
22 ; Test a word-granularity replicate that has the upper 15 bits set.
24 ; CHECK-LABEL: f3:
27 ret <2 x i64> <i64 -562945658585088, i64 -562945658585088>
30 ; Test a word-granularity replicate that has middle bits set.
32 ; CHECK-LABEL: f4:
[all …]
Dvec-const-18.ll3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
5 ; Test a word-granularity replicate with the lowest value that cannot use
8 ; CHECK-LABEL: f1:
14 ; Test a word-granularity replicate that has the lower 17 bits set.
16 ; CHECK-LABEL: f2:
22 ; Test a word-granularity replicate that has the upper 15 bits set.
24 ; CHECK-LABEL: f3:
30 ; Test a word-granularity replicate that has middle bits set.
32 ; CHECK-LABEL: f4:
38 ; Test a word-granularity replicate with a wrap-around mask.
[all …]
Dvec-const-15.ll3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
5 ; Test a word-granularity replicate with the lowest value that cannot use
8 ; CHECK-LABEL: f1:
14 ; Test a word-granularity replicate that has the lower 17 bits set.
16 ; CHECK-LABEL: f2:
22 ; Test a word-granularity replicate that has the upper 15 bits set.
24 ; CHECK-LABEL: f3:
27 ret <4 x i32> <i32 -131072, i32 -131072, i32 -131072, i32 -131072>
30 ; Test a word-granularity replicate that has middle bits set.
32 ; CHECK-LABEL: f4:
[all …]
Dvec-const-17.ll3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
5 ; Test a word-granularity replicate with the lowest value that cannot use
8 ; CHECK-LABEL: f1:
15 ; Test a word-granularity replicate that has the lower 17 bits set.
17 ; CHECK-LABEL: f2:
24 ; Test a word-granularity replicate that has the upper 15 bits set.
26 ; CHECK-LABEL: f3:
33 ; Test a word-granularity replicate that has middle bits set.
35 ; CHECK-LABEL: f4:
42 ; Test a word-granularity replicate with a wrap-around mask.
[all …]
/external/python/cpython2/Lib/
Dtextwrap.py4 # Copyright (C) 1999-2001 Gregory P. Ward.
28 __all__ = ['TextWrapper', 'wrap', 'fill', 'dedent']
30 # Hardcode the recognized whitespace characters to the US-ASCII
32 # ISO-8859-1, 0xa0 is non-breaking whitespace, so in certain locales
36 # *non-breaking* space), 2) possibly cause problems with Unicode,
43 the wrap() and fill() methods; the other methods are just there for
68 Ensure that sentence-ending punctuation is always followed
90 # text up into word-wrappable chunks. E.g.
91 # "Hello there -- you goof-ball, use the -b option!"
93 # Hello/ /there/ /--/ /you/ /goof-/ball,/ /use/ /the/ /-b/ /option!
[all …]
/external/fmtlib/doc/bootstrap/
Dcode.less3 // --------------------------------------------------
11 font-family: @font-family-monospace;
17 font-size: 90%;
18 color: @code-color;
19 background-color: @code-bg;
20 border-radius: @border-radius-base;
26 font-size: 90%;
27 color: @kbd-color;
28 background-color: @kbd-bg;
29 border-radius: @border-radius-small;
[all …]
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/text/
DWordUtilsTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
49 assertNull(WordUtils.wrap(null, 20)); in testWrap_StringInt()
50 assertNull(WordUtils.wrap(null, -1)); in testWrap_StringInt()
52 assertEquals("", WordUtils.wrap("", 20)); in testWrap_StringInt()
53 assertEquals("", WordUtils.wrap("", -1)); in testWrap_StringInt()
60 assertEquals(expected, WordUtils.wrap(input, 20)); in testWrap_StringInt()
62 // long word at end in testWrap_StringInt()
63 input = "Click here to jump to the commons website - https://commons.apache.org"; in testWrap_StringInt()
65 + "website -" + systemNewLine + "https://commons.apache.org"; in testWrap_StringInt()
66 assertEquals(expected, WordUtils.wrap(input, 20)); in testWrap_StringInt()
[all …]

12345678910>>...28