| /external/python/cpython3/Lib/idlelib/ |
| D | textview.py | 5 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/ |
| D | aws-sdk-java-v2-javadoc.css | 23 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/ |
| D | wrap_algorithms.rs | 1 //! 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 …]
|
| D | word_splitters.rs | 1 //! 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 …]
|
| D | lib.rs | 1 //! 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/ |
| D | perfetto-stack.svg | 1 <?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="<mxfile host="app.diagrams.net" modified="2020-05-2…
|
| /external/jsoup/src/main/java/org/jsoup/examples/ |
| D | HtmlToPlainText.java | 17 …* 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/ |
| D | wordwrap.pl | 3 # 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/ |
| D | optimal_fit.rs | 24 /// 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/ |
| D | opus_in_isobmff.css | 14 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/ |
| D | test_textwrap.py | 14 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/ |
| D | common.css | 7 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/ |
| D | log_viewer.rst | 1 .. _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/ |
| D | mod.rs | 4 //! - 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/ |
| D | WordUtils.java | 9 * 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/ |
| D | textwrap.py | 4 # 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/ |
| D | README.md | 3 [][build-status] 5 [][crates-io] 6 [][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 …]
|
| D | CHANGELOG.md | 6 ## 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/ |
| D | vec-const-16.ll | 3 ; 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 …]
|
| D | vec-const-18.ll | 3 ; 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 …]
|
| D | vec-const-15.ll | 3 ; 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 …]
|
| D | vec-const-17.ll | 3 ; 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/ |
| D | textwrap.py | 4 # 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/ |
| D | code.less | 3 // -------------------------------------------------- 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/ |
| D | WordUtilsTest.java | 9 * 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 …]
|