Home
last modified time | relevance | path

Searched refs:newlines (Results 1 - 24 of 24) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_univnewlines.py11 if not hasattr(sys.stdin, 'newlines'):
43 # and a class variable NEWLINE to set the expected newlines value
64 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
70 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
80 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
111 self.assertEqual(repr(fp.newlines), repr(None))
114 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
H A Dtest_memoryio.py546 # The C StringIO decodes newlines in write() calls, but the Python
552 self.assertEqual(memio.newlines, None)
555 self.assertEqual(memio.newlines, "\n")
558 self.assertEqual(memio.newlines, ("\n", "\r\n"))
561 self.assertEqual(memio.newlines, ("\r", "\n", "\r\n"))
679 # StringIO can duplicate newlines in universal newlines mode
H A Dtest_tempfile.py1106 'encoding', 'errors', 'newlines',
1255 f.newlines
1266 f.newlines
1286 self.assertEqual(f.newlines, os.linesep)
1300 self.assertEqual(f.newlines, os.linesep)
1314 self.assertIsNotNone(f.newlines)
1326 self.assertIsNotNone(f.newlines)
H A Dtest_io.py3874 self.assertEqual(decoder.newlines, None)
3876 self.assertEqual(decoder.newlines, '\n')
3878 self.assertEqual(decoder.newlines, ('\n', '\r\n'))
3880 self.assertEqual(decoder.newlines, ('\n', '\r\n'))
3882 self.assertEqual(decoder.newlines, ('\r', '\n', '\r\n'))
3891 self.assertEqual(decoder.newlines, None)
3913 self.assertEqual(dec.newlines, None)
3915 self.assertEqual(dec.newlines, None)
3917 self.assertEqual(dec.newlines, None)
/third_party/python/Tools/scripts/
H A Dreindent.py133 newline = spec_newline if spec_newline else r.newlines
135 errprint("%s: mixed newlines detected; cannot continue without --newline" % file)
161 """Return line stripped of trailing spaces, tabs, newlines.
197 # Save the newlines found in the file so they can be used to
198 # create output without mutating the newlines.
199 self.newlines = f.newlines
/third_party/mksh/
H A Deval.c249 /* record number of trailing newlines in COMSUB */ in expand()
250 int newlines = 0; in expand() local
350 newlines = 0; in expand()
1003 } else if (newlines) { in expand()
1006 --newlines; in expand()
1026 /* save newlines */ in expand()
1027 newlines++; in expand()
1029 if (newlines && c != -1) { in expand()
1032 --newlines; in expand()
1036 newlines in expand()
[all...]
/third_party/python/Lib/idlelib/
H A Diomenu.py129 eol_convention = f.newlines
144 eol_convention = f.newlines
160 "Mixed newlines detected.\n"
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_format.py475 newlines = newstring.split('\n')
476 set_('7.0', '10.0', chars, newlines)
H A Dtest_run.py121 self.assertIsNone(f.newlines)
224 self.assertIsNone(f.newlines)
/third_party/python/Lib/
H A Dtempfile.py796 def newlines(self): member in SpooledTemporaryFile
797 return self._file.newlines
H A D_pyio.py151 newline is a string controlling how universal newlines works (it only
155 * On input, if newline is None, universal newlines mode is
547 files, the newlines argument to open can be used to select the line
1602 # don't translate newlines (\r\n <=> \n)
1882 def newlines(self): member in TextIOBase
1902 r"""Codec used when reading a file in universal newlines mode. It wraps
1904 records the types of newlines encountered. When used with
1931 # Record which newlines are read
1974 def newlines(self): member in IncrementalNewlineDecoder
1997 handling of line endings. If it is None, universal newlines i
2657 def newlines(self): global() member in TextIOWrapper
[all...]
H A Dtyping.py3321 def newlines(self) -> Any: member in TextIO
H A Dzipfile.py839 self.newlines = None
/third_party/python/Tools/iobench/
H A Diobench.py437 parser.add_option("-N", "--newlines",
438 action="store", dest="newlines", default='lf',
447 NEWLINES = options.newlines.lower()
449 parser.error("invalid 'newlines' option: %r" % NEWLINES)
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/
H A DTGLexer.cpp290 return ReturnError(CurPtr, "escaped newlines not supported in tblgen"); in LexString()
/third_party/python/Include/internal/
H A Dpycore_global_strings.h304 STRUCT_FOR_ID(newlines)
H A Dpycore_runtime_init.h927 INIT_ID(newlines), \
/third_party/pcre2/pcre2/src/
H A Dpcre2grep.c496 static const char *newlines[] = { variable
4309 for (endlinetype = 1; endlinetype < (int)(sizeof(newlines)/sizeof(char *)); in main()
4312 if (strcmpic(newline_arg, newlines[endlinetype]) == 0) break; in main()
4314 if (endlinetype < (int)(sizeof(newlines)/sizeof(char *))) in main()
H A Dpcre2test.c420 static const char *newlines[] = { variable
3947 for (i = 0; i < sizeof(newlines)/sizeof(char *); i++) in decode_modifiers()
3948 if (len == strlen(newlines[i]) && in decode_modifiers()
3949 strncmpic(pp, (const uint8_t *)newlines[i], len) == 0) break; in decode_modifiers()
3950 if (i >= sizeof(newlines)/sizeof(char *)) goto INVALID_VALUE; in decode_modifiers()
4964 for (i = 1; i < sizeof(newlines)/sizeof(char *); i++) in process_command()
4966 size_t nlen = strlen(newlines[i]); in process_command()
4967 if (strncmpic(argptr, (const uint8_t *)newlines[i], nlen) == 0 && in process_command()
8266 if (optval < sizeof(newlines)/sizeof(char *)) in print_newline_config()
8267 printf("%s\n", newlines[optva in print_newline_config()
[all...]
/third_party/python/Modules/_io/
H A Dstringio.c876 newlines in the initial_value string. We clearly do not want that in stringio_setstate()
967 return PyObject_GetAttr(self->decoder, &_Py_ID(newlines)); in stringio_newlines()
993 {"newlines", (getter)stringio_newlines, NULL, NULL},
H A Dtextio.c144 {"newlines", (getter)textiobase_newlines_get, NULL, textiobase_newlines_doc},
218 Codec used when reading a file in universal newlines mode.
221 It also records the types of newlines encountered. When used with
224 decode input and translates newlines without first invoking an external
350 /* Record which newlines are read and do newline translation if desired, in _PyIncrementalNewlineDecoder_decode()
366 /* If, up to now, newlines are consistently \n, do a quick check in _PyIncrementalNewlineDecoder_decode()
398 /* Finished: we have scanned for newlines, and none of them in _PyIncrementalNewlineDecoder_decode()
833 // validate_newline() accepts only ASCII newlines. in set_newline()
1045 * On input, if newline is None, universal newlines mode is
3117 _PyObject_LookupAttr(self->decoder, &_Py_ID(newlines), in textiowrapper_newlines_get()
[all...]
/third_party/gn/src/gn/
H A Dfunction_toolchain.cc708 The "_newline" version will separate the input files with newlines
/third_party/ltp/scripts/
H A Dcheckpatch.pl4217 my @newlines = ($c =~ /\n/gs);
4218 my $cond_lines = 1 + $#newlines;
5516 # If the statement carries leading newlines,
5568 my @newlines = ($c =~ /\n/gs);
5569 my $cond_lines = 1 + $#newlines;
5957 # If the condition carries leading newlines, then count those as offsets.
/third_party/skia/third_party/externals/microhttpd/doc/
H A Dtexinfo.tex2862 % except specified as a normal braced arg, so no newlines to worry about.

Completed in 64 milliseconds