Home
last modified time | relevance | path

Searched +full:strip +full:- +full:final +full:- +full:newline (Results 1 – 25 of 159) sorted by relevance

1234567

/external/python/cpython3/Lib/distutils/
Dtext_file.py11 """Provides a file-like object that takes care of all the things you
13 line-by-line syntax: strip comments (as long as "#" is your
15 escaping the newline (ie. backslash at end of line), strip
22 implementing line-at-a-time lookahead.
38 strip from "#" to end-of-line, as well as any whitespace
39 leading up to the "#" -- unless it is escaped by a backslash
41 strip leading whitespace from each line before returning it
43 strip trailing whitespace (including line terminator!) from
51 if a backslash is the last non-newline character on a line
57 strip leading whitespace from lines that are joined to their
[all …]
/external/python/cpython2/Lib/distutils/
Dtext_file.py14 """Provides a file-like object that takes care of all the things you
16 line-by-line syntax: strip comments (as long as "#" is your
18 escaping the newline (ie. backslash at end of line), strip
25 implementing line-at-a-time lookahead.
41 strip from "#" to end-of-line, as well as any whitespace
42 leading up to the "#" -- unless it is escaped by a backslash
44 strip leading whitespace from each line before returning it
46 strip trailing whitespace (including line terminator!) from
54 if a backslash is the last non-newline character on a line
60 strip leading whitespace from lines that are joined to their
[all …]
/external/python/setuptools/setuptools/_distutils/
Dtext_file.py11 """Provides a file-like object that takes care of all the things you
13 line-by-line syntax: strip comments (as long as "#" is your
15 escaping the newline (ie. backslash at end of line), strip
22 implementing line-at-a-time lookahead.
38 strip from "#" to end-of-line, as well as any whitespace
39 leading up to the "#" -- unless it is escaped by a backslash
41 strip leading whitespace from each line before returning it
43 strip trailing whitespace (including line terminator!) from
51 if a backslash is the last non-newline character on a line
57 strip leading whitespace from lines that are joined to their
[all …]
/external/jsoup/src/main/java/org/jsoup/internal/
DStringUtil.java15 …A minimal String utility class. Designed for <b>internal</b> jsoup use only - the API and outcome …
18 public final class StringUtil {
20 …static final String[] padding = {"", " ", " ", " ", " ", " ", " ", " ", " …
72 final String separator;
129 * @param maxPaddingWidth maximum padding to apply. Set to {@code -1} for unlimited.
134 Validate.isTrue(maxPaddingWidth >= -1); in padding()
135 if (maxPaddingWidth != -1) in padding()
150 public static boolean isBlank(final String string) { in isBlank()
163 Tests if a string starts with a newline character
165 @return if its first character is a newline
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/
DStructuralWhitespaceStripper.java8 * http://www.apache.org/licenses/LICENSE-2.0
66 * ----------------
75 * ----------------
82 * ----------------
88 * ----------------
100 * "not (non-space or newline)".
102 private static final String IWS = "[^\\S\\n]*";
105 private static final Pattern INLINE_WHITESPACE = Pattern.compile(IWS);
108 * Pattern to match strings that start with arbitrary (inline) whitespace, followed by a newline.
110 private static final Pattern STARTS_WITH_NEWLINE = Pattern.compile("^" + IWS + "\\n");
[all …]
/external/yapf/yapf/yapflib/
Dcomment_splicer.py7 # http://www.apache.org/licenses/LICENSE-2.0
38 tree: a pytree.Node - the tree to work on. The tree is modified by this
57 comment_lineno = child.lineno - comment_prefix.count('\n')
69 if child.type == token.NEWLINE:
70 # If the prefix was on a NEWLINE leaf, it's part of the line so it
72 # We can't just insert it before the NEWLINE node, because as a
75 comment_column -= len(comment_prefix.lstrip())
84 # because their final placement depends on their prefix.
117 comment_groups[-1][-1].append(cmt)
123 InsertNodes = pytree_utils.InsertNodesBefore # pylint: disable=invalid-name # noqa
[all …]
Dreformatter.py7 # http://www.apache.org/licenses/LICENSE-2.0
90 state.AddTokenToState(newline=False, dry_run=False)
146 cur_lineno = cur_tok.lineno - cur_tok.value.count('\n')
153 required_newlines = cur_lineno - prev_lineno
155 # Don't adjust between a comment and non-comment.
161 required_newlines = max(required_newlines - deletable_lines,
172 if tok.lineno - tok.value.count('\n') - prev_token.lineno > 1:
181 The line contains code that if reformatted would break a non-syntactic
183 convention. Instead, we calculate when / if a newline should occur and honor
198 newline = False
[all …]
/external/curl/tests/
DFILEFORMAT.md1 <!--
4 SPDX-License-Identifier: curl
5 -->
12 in its own line. Comments are either XML-style (enclosed with `<!--` and
13 `-->`) or shell script style (beginning with `#`) and must appear on their own
43 or even percent-encoded individual bytes. As an example, insert the HTTP
56 %hex[ %XX-encoded data to decode ]hex%
96 Accept-Encoding
103 Accept-Encoding: not-brotli
110 Accept-Encoding: brotli
[all …]
Druntests.pl22 # SPDX-License-Identifier: curl
32 # $HOSTIP, $HOST6IP - Set to the address of the host running the test suite
33 # $CLIENTIP, $CLIENT6IP - Set to the address of the host running curl
34 # runclient, runclientoutput - Modify to copy all the files in the log/
53 # Finally, to properly support -g and -n, checktestcmd needs to change
56 # fixed. As long as the -g option is never given, and the -n is always
68 # usually set by the Makefile, but for out-of-tree builds with direct
107 my $CURLCONFIG="../curl-config"; # curl-config from current build
125 my $uname_release = `uname -r`;
319 my $nghttpx_version=join(' ', `"$ENV{'NGHTTPX'}" -v 2>/dev/null`);
[all …]
/external/vogar/src/vogar/
DClassFileIndex.java8 * http://www.apache.org/licenses/LICENSE-2.0
45 public final class ClassFileIndex {
48 private static final long CACHE_EXPIRY = 86400000; // = one day
51 private static final List<String> JAR_PATTERN_STRINGS = Arrays.asList(
55 private static final List<String> FAILURE_PATTERN_STRINGS = Arrays.asList(
61 private static final List<Pattern> JAR_PATTERNS = new ArrayList<Pattern>();
67 private static final List<Pattern> FAILURE_PATTERNS = new ArrayList<Pattern>();
75 private final Log log;
76 private final Mkdir mkdir;
77 private final String DELIMITER = "\t";
[all …]
/external/sdk-platform-java/java-core/google-cloud-core/src/main/java/com/google/cloud/testing/
DBlockingProcessStreamReader.java8 * http://www.apache.org/licenses/LICENSE-2.0
37 private static final int LOG_LENGTH_LIMIT = 50000;
39 private final BufferedReader errorReader;
40 private final Logger logger;
44 private final String emulatorTag;
45 private final Pattern logLinePattern;
49 super("blocking-process-stream-reader"); in BlockingProcessStreamReader()
68 boolean streamClosed = errorReader.read() == -1; in BlockingProcessStreamReader()
99 // Exceptions and stack traces are included in error stream, separated by a newline in processLogLine()
110 // strip level out of the line in processLogLine()
/external/python/cpython2/Lib/email/
Dfeedparser.py1 # Copyright (C) 2004-2006 Python Software Foundation
3 # Contact: email-sig@python.org
5 """FeedParser - An email feed parser.
33 # RFC 2822 $3.6.8 Optional fields. ftext is %d33-57 / %d59-126, Any character
35 headerRE = re.compile(r'^(From |[\041-\071\073-\176]{1,}:|[\t ])')
44 """A file-ish object that can have new data loaded into it.
46 You can also push and pop line-matching predicates onto a stack. When the
49 simple abstraction -- it parses until EOF closes the current message.
56 # The stack of false-EOF checking predicates.
79 # false-EOF predicate.
[all …]
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/
DStringEscapeUtils.java9 * http://www.apache.org/licenses/LICENSE-2.0
40 …* <a href="https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/…
57 public static final CharSequenceTranslator ESCAPE_JAVA =
77 public static final CharSequenceTranslator ESCAPE_ECMASCRIPT =
99 public static final CharSequenceTranslator ESCAPE_JSON =
122 public static final CharSequenceTranslator ESCAPE_XML =
137 public static final CharSequenceTranslator ESCAPE_XML10 =
189 public static final CharSequenceTranslator ESCAPE_XML11 =
217 public static final CharSequenceTranslator ESCAPE_HTML3 =
232 public static final CharSequenceTranslator ESCAPE_HTML4 =
[all …]
/external/swiftshader/third_party/SPIRV-Tools/tools/sva/
Dyarn.lock5 "@eslint-community/eslint-utils@^4.2.0":
7 …resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23…
8 …integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9…
10 eslint-visitor-keys "^3.3.0"
12 "@eslint-community/regexpp@^4.4.0":
14 …resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a…
15 …integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6F…
19 …resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.0.3.tgz#4910db5505f4d503f2777…
20 …integrity sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuS…
27 import-fresh "^3.2.1"
[all …]
/external/angle/third_party/spirv-tools/src/tools/sva/
Dyarn.lock5 "@eslint-community/eslint-utils@^4.2.0":
7 …resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23…
8 …integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9…
10 eslint-visitor-keys "^3.3.0"
12 "@eslint-community/regexpp@^4.4.0":
14 …resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a…
15 …integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6F…
19 …resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.0.3.tgz#4910db5505f4d503f2777…
20 …integrity sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuS…
27 import-fresh "^3.2.1"
[all …]
/external/deqp-deps/SPIRV-Tools/tools/sva/
Dyarn.lock5 "@eslint-community/eslint-utils@^4.2.0":
7 …resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23…
8 …integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9…
10 eslint-visitor-keys "^3.3.0"
12 "@eslint-community/regexpp@^4.4.0":
14 …resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a…
15 …integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6F…
19 …resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.0.3.tgz#4910db5505f4d503f2777…
20 …integrity sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuS…
27 import-fresh "^3.2.1"
[all …]
/external/python/cpython3/Lib/email/
Dfeedparser.py1 # Copyright (C) 2004-2006 Python Software Foundation
3 # Contact: email-sig@python.org
5 """FeedParser - An email feed parser.
35 # RFC 2822 $3.6.8 Optional fields. ftext is %d33-57 / %d59-126, Any character
37 headerRE = re.compile(r'^(From |[\041-\071\073-\176]*:|[\t ])')
46 """A file-ish object that can have new data loaded into it.
48 You can also push and pop line-matching predicates onto a stack. When the
51 simple abstraction -- it parses until EOF closes the current message.
56 self._partial = StringIO(newline='')
59 # The stack of false-EOF checking predicates.
[all …]
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/util/
DStringWrapper.java48 …public static Iterable<String> wrapStringOnBreaks(@Nonnull final String string, final int maxWidth… in wrapStringOnBreaks()
49 // TODO: should we strip any trailing newlines? in wrapStringOnBreaks()
50 final BreakIterator breakIterator = BreakIterator.getLineInstance(); in wrapStringOnBreaks()
83 if (lineEnd - currentLineStart > maxWidth) { in wrapStringOnBreaks()
91 if (string.charAt(lineEnd-1) == '\n') { in wrapStringOnBreaks()
92 nextLine = string.substring(currentLineStart, lineEnd-1); in wrapStringOnBreaks()
124 * This uses and assumes unix-style newlines
134 * The returned lines will not contain an ending newline
150 } else if (i - lineStart == maxWidth) {
/external/python/cpython2/Doc/tools/extensions/
Dsuspicious.py3 that has leaked into the final output.
5 Suspicious lines are reported in a comma-separated-file,
8 The file is utf-8 encoded, and each line contains four fields:
20 - each line defines a rule; if the rule matches, the issue
22 - line number may be empty (that is, nothing between the
25 - the last field does not have to be a complete line; some
54 :[a-zA-Z][a-zA-Z0-9]+| # :foo
68 # None -> don't care
79 """Our dialect: uses only linefeed as newline."""
95 'susp-ignored.csv'))
[all …]
/external/python/cpython2/Lib/
Dsmtpd.py8 --nosetuid
9 -n
14 --version
15 -V
18 --class classname
19 -c classname
23 --debug
24 -d
27 --help
28 -h
[all …]
D_pyio.py35 """Exception raised when I/O would block on a non-blocking I/O stream."""
44 def open(file, mode="r", buffering=-1,
46 newline=None, closefd=True): argument
68 --------- ---------------------------------------------------------------
75 'U' universal newline mode (for backwards compatibility; unneeded
89 platform-dependent encoding or using the specified encoding if given.
94 the size of a fixed-size chunk buffer. When no buffering argument is
97 * Binary files are buffered in fixed-size chunks; the size of the buffer
112 be handled---this argument should not be used in binary mode. Pass
119 newline controls how universal newlines works (it only applies to text
[all …]
/external/antlr/tool/src/main/java/org/antlr/tool/
DGrammarReport.java42 public static final String Version = "5";
43 public static final String GRAMMAR_STATS_FILENAME = "grammar.stats";
80 public static final String newline = System.getProperty("line.separator"); field in GrammarReport
129 g.getNumberOfDecisions()- g.getNumberOfCyclicDecisions(); in getReportData()
234 // includes true ones and preds in synpreds I think; strip out. in getReportData()
255 /** Create a single-line stats report about this grammar suitable to
281 buf.append(newline); in getBacktrackingReport()
284 buf.append(newline); in getBacktrackingReport()
308 buf.append(newline); in getDFALocations()
314 * return a human-readable version. Return null if there is a
[all …]
/external/arm-trusted-firmware/
Dpackage-lock.json2 "name": "trusted-firmware-a",
8 "name": "trusted-firmware-a",
11 "license": "BSD-3-Clause",
14 "@commitlint/config-conventional": "^14.1.0",
16 "conventional-changelog-tf-a": "file:tools/conventional-changelog-tf-a",
17 "cz-conventional-changelog": "^3.3.0",
19 "standard-version": "^9.3.2"
22 "node_modules/@babel/code-frame": {
24 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.13.tgz",
25 …"integrity": "sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4…
[all …]
/external/trusty/arm-trusted-firmware/
Dpackage-lock.json2 "name": "trusted-firmware-a",
8 "name": "trusted-firmware-a",
11 "license": "BSD-3-Clause",
14 "@commitlint/config-conventional": "^16.0.0",
15 "@commitlint/cz-commitlint": "^16.1.0",
17 "conventional-changelog-tf-a": "file:tools/conventional-changelog-tf-a",
19 "js-yaml": "^4.1.0",
20 "standard-version": "^9.3.2"
26 "node_modules/@babel/code-frame": {
28 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz",
[all …]
/external/turbine/java/com/google/turbine/parse/
DStreamLexer.java8 * http://www.apache.org/licenses/LICENSE-2.0
33 private final UnicodeEscapePreprocessor reader;
79 return result.substring(0, result.length() - "*".length()); in javadoc()
141 // handle empty non-javadoc comments: `/**/` in next()
254 case '-': in next()
445 // TODO(cushon): the style guide disallows non-ascii identifiers in next()
518 // the amount of whitespace to strip from the beginning of every line in stripIndent()
519 int strip = Integer.MAX_VALUE; in stripIndent() local
520 char last = value.charAt(value.length() - 1); in stripIndent()
523 // If the input contains a trailing newline, we have something like: in stripIndent()
[all …]

1234567