Home
last modified time | relevance | path

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

12345678910>>...46

/aosp_15_r20/external/rust/android-crates-io/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 …]
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 …]
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 …]
/aosp_15_r20/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 …]
/aosp_15_r20/external/perfetto/docs/images/
H A 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…
/aosp_15_r20/external/leakcanary2/leakcanary-android-core/src/test/java/leakcanary/internal/activity/screen/
H A DLeakTraceWrapperTest.kt11 val wrapped = LeakTraceWrapper.wrap(string, 4) in short string stays identical()
19 val wrapped = LeakTraceWrapper.wrap(string, 4) in string at width stays identical()
27 val wrapped = LeakTraceWrapper.wrap(string, 4) in string at width no newline stays identical()
35 val wrapped = LeakTraceWrapper.wrap(string, 4) in string wrapped without newline stays has no trailing newline()
40 @Test fun `wrap line at space removing space`() { in wrap line at space removing space()
43 val wrapped = LeakTraceWrapper.wrap(string, 4) in wrap line at space removing space()
48 @Test fun `wrap line at space keeps prefix`() { in wrap line at space keeps prefix()
52 val wrapped = LeakTraceWrapper.wrap(string, prefix.length + 4) in wrap line at space keeps prefix()
57 @Test fun `wrap line at space keeps non breaking space`() { in wrap line at space keeps non breaking space()
59 val wrapped = LeakTraceWrapper.wrap(string, 5) in wrap line at space keeps non breaking space()
[all …]
/aosp_15_r20/external/aws-sdk-java-v2/javadoc-resources/
H A 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 …]
/aosp_15_r20/external/wayland/doc/publican/sources/css/
H A 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 …]
/aosp_15_r20/external/rust/android-crates-io/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 …]
/aosp_15_r20/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/text/
H A 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 …]
/aosp_15_r20/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 …]
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/
H A 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 …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/
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 …]
/aosp_15_r20/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 …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/
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 …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/
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 …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/
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 …]
/aosp_15_r20/external/rust/android-crates-io/crates/textwrap/
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 …]
/aosp_15_r20/external/jsoup/src/main/java/org/jsoup/examples/
H A 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 …]
/aosp_15_r20/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
H A DZipFile.java9 * http://www.apache.org/licenses/LICENSE-2.0
53 import static org.apache.commons.compress.archivers.zip.ZipConstants.WORD;
60 * <p>This class adds support for file name encodings other than UTF-8
106 * Maps String to list of ZipArchiveEntrys, name -> actual entries.
116 * Defaults to UTF-8.</p>
145 …// cached buffers - must only be used locally in the class (COMPRESS-172 - reduce garbage collecti…
147 private final byte[] wordBuf = new byte[WORD];
150 private final ByteBuffer dwordBbuf = ByteBuffer.wrap(dwordBuf);
151 private final ByteBuffer wordBbuf = ByteBuffer.wrap(wordBuf);
152 private final ByteBuffer cfhBbuf = ByteBuffer.wrap(cfhBuf);
[all …]
/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_textwrap.py13 from textwrap import TextWrapper, wrap, fill, dedent, indent, shorten
36 result = wrap(text, width, **kwargs)
79 # Whitespace munging and end-of-sentence detection
96 result = wrapper.wrap(text)
118 self.check(wrapper.wrap(text), expect)
125 self.check(wrapper.wrap(text), expect)
128 self.check(wrapper.wrap(text), expect)
132 self.check(wrapper.wrap(text), expect)
136 self.check(wrapper.wrap(text), expect)
142 self.check(wrapper.wrap(text), expect)
[all …]
/aosp_15_r20/prebuilts/vndk/v30/x86_64/include/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/
Dbitcode_wrapperer.h8 * http://www.apache.org/licenses/LICENSE-2.0
17 // Define utility class to wrap/unwrap bitcode files. Does wrapping/unwrapping
27 #include "bcinfo/Wrap/support_macros.h"
28 #include "bcinfo/Wrap/BCHeaderField.h"
29 #include "bcinfo/Wrap/wrapper_input.h"
30 #include "bcinfo/Wrap/wrapper_output.h"
32 // The bitcode wrapper header is the following 7 fixed 4-byte fields:
33 // 1) 0B17C0DE - The magic number expected by llvm for wrapped bitcodes
34 // 2) Version # 0 - The current version of wrapped bitcode files
40 // plus 0 or more variable-length fields (consisting of ID, length, data)
[all …]
/aosp_15_r20/prebuilts/vndk/v30/arm/include/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/
Dbitcode_wrapperer.h8 * http://www.apache.org/licenses/LICENSE-2.0
17 // Define utility class to wrap/unwrap bitcode files. Does wrapping/unwrapping
27 #include "bcinfo/Wrap/support_macros.h"
28 #include "bcinfo/Wrap/BCHeaderField.h"
29 #include "bcinfo/Wrap/wrapper_input.h"
30 #include "bcinfo/Wrap/wrapper_output.h"
32 // The bitcode wrapper header is the following 7 fixed 4-byte fields:
33 // 1) 0B17C0DE - The magic number expected by llvm for wrapped bitcodes
34 // 2) Version # 0 - The current version of wrapped bitcode files
40 // plus 0 or more variable-length fields (consisting of ID, length, data)
[all …]
/aosp_15_r20/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/
Dbitcode_wrapperer.h8 * http://www.apache.org/licenses/LICENSE-2.0
17 // Define utility class to wrap/unwrap bitcode files. Does wrapping/unwrapping
27 #include "bcinfo/Wrap/support_macros.h"
28 #include "bcinfo/Wrap/BCHeaderField.h"
29 #include "bcinfo/Wrap/wrapper_input.h"
30 #include "bcinfo/Wrap/wrapper_output.h"
32 // The bitcode wrapper header is the following 7 fixed 4-byte fields:
33 // 1) 0B17C0DE - The magic number expected by llvm for wrapped bitcodes
34 // 2) Version # 0 - The current version of wrapped bitcode files
40 // plus 0 or more variable-length fields (consisting of ID, length, data)
[all …]
/aosp_15_r20/prebuilts/vndk/v33/arm64/include/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/
Dbitcode_wrapperer.h8 * http://www.apache.org/licenses/LICENSE-2.0
17 // Define utility class to wrap/unwrap bitcode files. Does wrapping/unwrapping
27 #include "bcinfo/Wrap/support_macros.h"
28 #include "bcinfo/Wrap/BCHeaderField.h"
29 #include "bcinfo/Wrap/wrapper_input.h"
30 #include "bcinfo/Wrap/wrapper_output.h"
32 // The bitcode wrapper header is the following 7 fixed 4-byte fields:
33 // 1) 0B17C0DE - The magic number expected by llvm for wrapped bitcodes
34 // 2) Version # 0 - The current version of wrapped bitcode files
40 // plus 0 or more variable-length fields (consisting of ID, length, data)
[all …]

12345678910>>...46