/third_party/python/Modules/_io/ |
H A D | _iomodule.c | 77 newline: str(accept={str, NoneType}) = None 153 newline controls how universal newlines works (it only applies to text 157 * On input, if newline is None, universal newlines mode is 160 caller. If it is '', universal newline mode is enabled, but line 165 * On output, if newline is None, any '\n' characters written are 167 newline is '' or '\n', no translation takes place. If newline is any 199 const char *newline, int closefd, PyObject *opener) in _io_open_impl() 304 if (binary && newline != NULL) { in _io_open_impl() 306 "binary mode doesn't take a newline argumen in _io_open_impl() 196 _io_open_impl(PyObject *module, PyObject *file, const char *mode, int buffering, const char *encoding, const char *errors, const char *newline, int closefd, PyObject *opener) _io_open_impl() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/class/ |
H A D | cdc-acm.c | 1083 struct usb_cdc_line_coding newline; in acm_tty_set_termios() local 1086 newline.dwDTERate = cpu_to_le32(tty_get_baud_rate(tty)); in acm_tty_set_termios() 1087 newline.bCharFormat = termios->c_cflag & CSTOPB ? 2 : 0; in acm_tty_set_termios() 1088 newline.bParityType = termios->c_cflag & PARENB ? in acm_tty_set_termios() 1091 newline.bDataBits = tty_get_char_size(termios->c_cflag); in acm_tty_set_termios() 1097 newline.dwDTERate = acm->line.dwDTERate; in acm_tty_set_termios() 1106 if (memcmp(&acm->line, &newline, sizeof newline)) { in acm_tty_set_termios() 1107 memcpy(&acm->line, &newline, sizeof newline); in acm_tty_set_termios() [all...] |
/third_party/lwip/src/netif/ppp/ |
H A D | auth.c | 2330 int newline, xxx; 2344 if (!getword(f, word, &newline, filename)) 2346 newline = 1; 2352 while (!newline && getword(f, word, &newline, filename)) 2354 if (!newline) 2362 newline = 0; 2371 if (!getword(f, word, &newline, filename)) 2373 if (newline) 2391 if (!getword(f, word, &newline, filenam [all...] |
/third_party/pcre2/pcre2/ |
H A D | RunGrepTest.bat | 75 :: Check default newline convention. If it does not include LF, force LF.
77 for /f %%a in ('"%pcre2test%" -C newline') do set nl=%%a
80 echo Default newline setting forced to LF
604 (pushd %srcdir% & %pcre2grep% -n -u --newline=any "^X" ./testdata/grepinput8 & popd) >>testtrygrep
608 (pushd %srcdir% & %pcre2grep% -n -u -C 3 --newline=any "Match" ./testdata/grepinput8 & popd) >>testtrygrep
612 (pushd %srcdir% & %pcre2grep% --line-offsets -u --newline=any "(?<=\K\x{17f})" ./testdata/grepinput8 & popd) >>testtrygrep
624 :: newline settings will work in environments where the normal newline sequence
629 echo Testing pcre2grep newline settings
636 %pcre2grep% -n --newline [all...] |
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/parser/ |
H A D | parser.go | 341 // newline processes the Newline token at the current position. 343 func (l *lexer) newline() { 385 l.newline() 410 if p.newline(i) || p.comment(i) { 464 if p.newline(i + n) { 480 for !p.newline(i + n) { 680 // newline returns true if the i'th token is a Newline, otherwise false. 681 func (p *parser) newline(i int) bool {
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/parser/ |
H A D | parser.go | 341 // newline processes the Newline token at the current position. 343 func (l *lexer) newline() { 385 l.newline() 410 if p.newline(i) || p.comment(i) { 464 if p.newline(i + n) { 480 for !p.newline(i + n) { 680 // newline returns true if the i'th token is a Newline, otherwise false. 681 func (p *parser) newline(i int) bool {
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
H A D | JSON.cpp | 635 newline(); in valueBegin() 639 void llvm::json::OStream::newline() { in newline() function in llvm::json::OStream 658 newline(); in arrayEnd() 676 newline(); in objectEnd() 686 newline(); in attributeBegin()
|
/third_party/spirv-tools/utils/vscode/src/parser/ |
H A D | parser.go | 341 // newline processes the Newline token at the current position. 343 func (l *lexer) newline() { 385 l.newline() 410 if p.newline(i) || p.comment(i) { 464 if p.newline(i + n) { 480 for !p.newline(i + n) { 680 // newline returns true if the i'th token is a Newline, otherwise false. 681 func (p *parser) newline(i int) bool {
|
/kernel/linux/linux-5.10/drivers/mtd/devices/ |
H A D | block2mtd.c | 367 char *newline = strrchr(str, '\n'); in kill_final_newline() local 368 if (newline && !newline[1]) in kill_final_newline() 369 *newline = 0; in kill_final_newline()
|
/kernel/linux/linux-6.6/drivers/mtd/devices/ |
H A D | block2mtd.c | 389 char *newline = strrchr(str, '\n'); in kill_final_newline() local 390 if (newline && !newline[1]) in kill_final_newline() 391 *newline = 0; in kill_final_newline()
|
/kernel/linux/linux-6.6/tools/testing/selftests/user_events/ |
H A D | ftrace_test.c | 75 char *newline; in get_print_fmt() local 92 newline = strchr(buffer, '\n'); in get_print_fmt() 94 if (newline) in get_print_fmt() 95 *newline = '\0'; in get_print_fmt()
|
/third_party/eudev/src/shared/ |
H A D | utf8.h | 30 bool utf8_is_printable_newline(const char* str, size_t length, bool newline) _pure_;
|
/third_party/python/Lib/test/ |
H A D | test_io.py | 9 # * test_univnewlines - tests universal newline support 919 self.open(os_helper.TESTFN, 'w', encoding="utf-8", newline='invalid') 2609 t.__init__(b, encoding="latin-1", newline="\r\n") 2616 self.assertRaises(TypeError, t.__init__, b, encoding="utf-8", newline=42) 2617 self.assertRaises(ValueError, t.__init__, b, encoding="utf-8", newline='xyzzy') 2692 t = self.TextIOWrapper(b, encoding="utf-8", newline="\n", line_buffering=True) 2703 t = self.TextIOWrapper(b, encoding="utf-8", newline="\n", line_buffering=False) 2789 newline="\n") 2796 newline="\n") 2824 for newline, exp_line [all...] |
H A D | test_uu.py | 32 errors="strict", newline="\n"): 36 newline=newline)
|
/third_party/vk-gl-cts/scripts/src_util/ |
H A D | check_whitespace.py | 31 f = open(file, 'rt', encoding="ascii", errors='replace', newline='')
|
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | pre-process.c | 266 if (next->pos.newline && match_op(next, '#')) { in collect_arg() 300 next->pos.newline = 0; in collect_arg() 595 alloc->pos.newline = token->pos.newline; in dup_token() 703 added->pos.newline = body->pos.newline; in substitute() 777 * We still can lose the newline flag if the sucker expands to nothing, in expand() 781 (*list)->pos.newline = token->pos.newline; in expand() 1955 token->pos.newline in handle_pragma() [all...] |
/third_party/jinja2/ |
H A D | filters.py | 821 newline = "\n" 825 newline = Markup(newline) 827 s += newline # this quirk is necessary for splitlines method 830 rv = (newline + indention).join(s.splitlines()) 836 rv += newline + newline.join( 930 # If the string has a newline before width, wrap will still insert 931 # a newline at width, resulting in a short line. Instead, split and
|
/third_party/curl/tests/server/ |
H A D | tftpd.c | 190 static int newline = 0; /* fillbuf: in middle of newline expansion */ variable 319 newline = 0; /* init crlf flag */ in rw_init() 392 if(newline) { in read_ahead() 397 newline = 0; in read_ahead() 410 newline = 1; in read_ahead() 1050 /* get to the letter following the newline */ in parse_servercmd()
|
/kernel/linux/linux-5.10/block/ |
H A D | badblocks.c | 522 char newline; in badblocks_store() local 524 switch (sscanf(page, "%llu %d%c", §or, &length, &newline)) { in badblocks_store() 526 if (newline != '\n') in badblocks_store()
|
/kernel/linux/linux-6.6/block/ |
H A D | badblocks.c | 520 char newline; in badblocks_store() local 522 switch (sscanf(page, "%llu %d%c", §or, &length, &newline)) { in badblocks_store() 524 if (newline != '\n') in badblocks_store()
|
/third_party/mesa3d/src/freedreno/decode/ |
H A D | crashdec.c | 91 char *newline; in replacestr() local 92 asprintf(&newline, "%.*s%s%s", (int)(s - line), line, replace, tail); in replacestr() 95 return newline; in replacestr()
|
/third_party/python/Lib/lib2to3/pgen2/ |
H A D | tokenize.py | 457 newline = NEWLINE 459 newline = NL 465 yield (newline, token, spos, epos, line)
|
/third_party/pcre2/pcre2/src/ |
H A D | pcre2_jit_test.c | 152 int newline; member 448 /* Any character except newline or any newline. */ 1263 if (GET_NEWLINE(current->newline)) in regression_tests() 1264 pcre2_set_newline_8(ccontext8, GET_NEWLINE(current->newline)); in regression_tests() 1265 if (GET_BSR(current->newline)) in regression_tests() 1266 pcre2_set_bsr_8(ccontext8, GET_BSR(current->newline)); in regression_tests() 1290 if (GET_NEWLINE(current->newline)) in regression_tests() 1291 pcre2_set_newline_16(ccontext16, GET_NEWLINE(current->newline)); in regression_tests() 1292 if (GET_BSR(current->newline)) in regression_tests() [all...] |
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | compiler.py | 398 """Combination of newline and write.""" 399 self.newline(node, extra) 402 def newline(self, node=None, extra=0): member in CodeGenerator 967 self.newline(node) 1177 self.newline() 1210 self.newline() 1218 self.newline(node) 1299 self.newline(item) 1337 self.newline(argument) 1368 self.newline(nod [all...] |
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | log.c | 66 bool newline = n > 0 && log->kbuf[n - 1] == '\n'; in bpf_verifier_vlog() local 68 pr_err("BPF: %s%s", log->kbuf, newline ? "" : "\n"); in bpf_verifier_vlog()
|