Home
last modified time | relevance | path

Searched refs:newlines (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/external/python/cpython2/Tools/scripts/
Dreindent.py120 newline = r.newlines
148 newlines = {'\r\n' if line[-2:] == '\r\n' else
153 newlines.discard('')
154 newlines = tuple(sorted(newlines))
155 if not newlines:
157 if len(newlines) == 1:
158 return newlines[0]
159 return newlines
185 self.newlines = _detect_newlines(self.raw)
186 if isinstance(self.newlines, tuple):
[all …]
/external/llvm-project/polly/test/
Dupdate_check.py394 newlines = []
401 firstcheckline = len(newlines) + len(emptylines)
409 newlines += uptonowlines
410 newlines += emptylines
411 newlines.append(line)
416 for i,line in enumerate(newlines):
428 writelines(newlines[:firstcheckline])
434 writelines(newlines[firstcheckline:])
437 headerlines = newlines[:firstnoncommentline]
439 contentlines = newlines[firstnoncommentline:]
[all …]
/external/python/cpython2/Lib/test/
Dtest_univnewlines2k.py53 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
59 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
69 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
110 self.assertEqual(repr(fp.newlines), repr(None))
113 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
Dtest_univnewlines.py63 self.assertEqual(set(fp.newlines), set(self.NEWLINE))
69 self.assertEqual(set(fp.newlines), set(self.NEWLINE))
79 self.assertEqual(set(fp.newlines), set(self.NEWLINE))
106 self.assertEqual(repr(fp.newlines), repr(None))
109 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
/external/autotest/client/cros/nfc/
Dconsole.py25 def print_message(message, newlines=2): argument
35 padding = newlines * '\n'
248 print_message(' ' + str(adapter), newlines=0)
268 print_message('Status ' + adapter + ': ', newlines=0)
274 print_message(' ' + key + ' = ' + value, newlines=0)
331 print_message('Tag ' + tag + ': ', newlines=1)
334 print_message(' ' + key + ' = ' + str(value), newlines=0)
338 print_message('Records: ', newlines=1)
360 print_message('Records: ', newlines=1)
378 print_message('Record ' + record + ': ', newlines=1)
[all …]
/external/python/cpython3/Lib/test/
Dtest_univnewlines.py62 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
68 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
78 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
109 self.assertEqual(repr(fp.newlines), repr(None))
112 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/
DOpsBuilder.java492 int newlines = 0; // Count of newlines in a row. in build() local
498 newlines++; in build()
508 newlines = 0; in build()
518 if (allowBlankAfterLastComment && newlines > 1) { in build()
522 if (lastWasComment && newlines > 0) { in build()
556 int newlines = 0; in build() local
560 newlines++; in build()
562 newlines = 0; in build()
565 if (lastWasComment && newlines > 0) { in build()
/external/curl/tests/data/
Dtest12827 with unix newlines
49 with unix newlines
Dtest94129 with unix newlines
57 with unix newlines
/external/scapy/scapy/
Dpipetool.py431 def __init__(self, name=None, newlines=True): argument
433 self.newlines = newlines
436 if self.newlines:
440 if self.newlines:
504 def __init__(self, name=None, keepterm=True, newlines=True, openearly=True): argument
507 self.newlines = newlines
563 if self.newlines:
/external/jsoncpp/devtools/
Dlicenseupdater.py27 newline = fin.newlines and fin.newlines[0] or '\n'
/external/fonttools/Tests/misc/
DxmlReader_test.py52 self.newlines = []
55 self.newlines.extend([c for c in data if c in ('\r', '\n')])
72 self.assertEqual(expected, reader.newlines)
/external/python/cpython3/Tools/scripts/
Dreindent.py133 newline = spec_newline if spec_newline else r.newlines
199 self.newlines = f.newlines
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dmodernize-raw-string-literal.rst39 A string literal containing only escaped newlines is a common way of
40 writing lines of text output. Introducing physical newlines with raw
/external/smali/smali/src/test/resources/LexerTest/
D.gitattributes1 # Prevent newlines from being normalized on windows
/external/llvm-project/clang-tools-extra/test/clang-apply-replacements/Inputs/crlf/
Dcrlf.cpp.expected2 // This file intentionally uses a CRLF newlines!
/external/python/cpython2/Doc/library/
Dbz2.rst46 single: universal newlines; bz2.BZ2File class
56 in :term:`universal newlines` mode. Any line ending in the input file will be
58 :attr:`newlines`; the value for this attribute is one of ``None`` (no newline
60 newline types seen. Universal newlines are available only when
147 Write the sequence of strings to the file. Note that newlines are not
/external/yapf/
D.editorconfig6 # Unix-style newlines with a newline ending every file
/external/cn-cbor/
D.editorconfig6 # Unix-style newlines with a newline ending every file
/external/python/parse_type/
D.editorconfig7 # -- DEFAULT: Unix-style newlines with a newline ending every file.
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/
Dspv.subgroupExtendedTypesBasic.comp.out3 ERROR: #version: statement must appear first in es-profile shader; before comments or newlines
/external/deqp-deps/glslang/Test/baseResults/
Dspv.subgroupExtendedTypesBasic.comp.out3 ERROR: #version: statement must appear first in es-profile shader; before comments or newlines
/external/google-styleguide/docguide/
Dstyle.md29 1. [Escape newlines](#escape-newlines)
112 paragraph tags for you simply with newlines: get used to that.
133 Prefer spacing after `#` and newlines before and after:
286 #### Escape newlines
289 into a terminal, it's best practice to escape any newlines. Use a single
/external/python/cpython3/Tools/stringbench/
DREADME42 ========== count newlines
43 38.54 41.60 92.7 ...text.with.2000.newlines.count("\n") (*100)
/external/llvm/test/Transforms/InstCombine/
Dstrchr-1.ll8 @newlines = constant [3 x i8] c"\0D\0A\00"
92 …%dst = call i8* @strchr(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @newlines, i64 0, i64 0), …

12345678910>>...13