/external/python/cpython3/Lib/test/ |
D | test_readline.py | 2 Very minimal unittests for parts of the readline module. 17 # Skip tests if there is no readline module 18 readline = import_module('readline') variable 20 if hasattr(readline, "_READLINE_LIBRARY_VERSION"): 21 is_editline = ("EditLine wrapper" in readline._READLINE_LIBRARY_VERSION) 23 is_editline = readline.backend == "editline" 30 if hasattr(readline, "_READLINE_VERSION"): 31 print(f"readline version: {readline._READLINE_VERSION:#x}") 32 print(f"readline runtime version: {readline._READLINE_RUNTIME_VERSION:#x}") 33 if hasattr(readline, "_READLINE_LIBRARY_VERSION"): [all …]
|
/external/python/cpython3/Doc/library/ |
D | rlcompleter.rst | 1 :mod:`!rlcompleter` --- Completion function for GNU readline 5 :synopsis: Python identifier completion, suitable for the GNU readline library. 14 passed to :func:`~readline.set_completer` in the :mod:`readline` module. 16 When this module is imported on a Unix platform with the :mod:`readline` module 19 :ref:`readline completer <readline-completion>`. The method provides 25 >>> import readline 26 >>> readline.parse_and_bind("tab: complete") 27 >>> readline. <TAB PRESSED> 28 readline.__doc__ readline.get_line_buffer( readline.read_init_file( 29 readline.__file__ readline.insert_text( readline.set_completer( [all …]
|
D | readline.rst | 1 :mod:`!readline` --- GNU readline interface 4 .. module:: readline 6 :synopsis: GNU readline support for Python. 12 The :mod:`readline` module defines a number of functions to facilitate 20 Readline keybindings may be configured via an initialization file, typically 21 ``.inputrc`` in your home directory. See `Readline Init File 22 <https://tiswww.cwru.edu/php/chet/readline/rluserman.html#Readline-Init-File>`_ 23 in the GNU Readline manual for information about the format and 25 Readline library in general. 31 The underlying Readline library API may be implemented by [all …]
|
/external/python/cpython3/Modules/ |
D | readline.c | 1 /* This module makes GNU readline available to Python. It has ideas 24 /* GNU readline() mistakenly sets the LC_CTYPE locale. 39 # include <editline/readline.h> 41 /* GNU readline definitions */ 42 # undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */ 43 # include <readline/readline.h> 44 # include <readline/history.h> 62 * It is possible to link the readline module to the readline 65 * This emulation library is not 100% API compatible with the "real" readline 67 * hence we use a runtime check to detect if the Python readline module is [all …]
|
/external/antlr/runtime/Ruby/lib/antlr3/streams/ |
D | interactive.rb | 9 uses Readline (if available) or standard IO#gets to fetch data on demand. 33 @readline = block or raise( ArgumentError, "no line-reading block was provided" ) 37 def readline singletonMethod in ANTLR3.InteractiveStringStream 40 if line = @readline.call 69 @readline = block or raise( ArgumentError, "no line-reading block was provided" ) 73 def readline singletonMethod in ANTLR3.InteractiveStringStream 76 if line = @readline.call 88 private :readline 93 readline 106 elsif readline [all …]
|
/external/pcre/cmake/ |
D | FindReadline.cmake | 5 # GNU Readline library finder 9 FIND_PATH(READLINE_INCLUDE_DIR readline/readline.h 10 /usr/include/readline 15 # FIND_LIBRARY(READLINE_LIBRARY NAMES readline) 18 # FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG NCURSES_LIBRARY READLINE_INCLUDE_DI… 24 FIND_LIBRARY(READLINE_LIBRARY NAMES readline) 26 … FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG READLINE_INCLUDE_DIR READLINE_LIBRARY )
|
/external/python/cpython3/Lib/test/test_unittest/testmock/ |
D | testwith.py | 201 # Check that readline will return all the lines from the fake file 202 # And that once fully consumed, readline will return an empty string. 206 line1 = h.readline() 207 line2 = h.readline() 208 line3 = h.readline() 212 self.assertEqual(h.readline(), '') 218 result = h.readline() 220 self.assertEqual(h.readline(), '') 232 self.assertEqual(h.readline(), '') 248 self.assertEqual(h.readline(), '') [all …]
|
/external/starlark-go/repl/ |
D | repl.go | 3 // It supports readline-style command editing, 22 "github.com/chzyer/readline" 41 rl, err := readline.New(">>> ") 49 if err == readline.ErrInterrupt { 61 // It returns an error (possibly readline.ErrInterrupt) 62 // only if readline failed. Starlark errors are printed. 63 func rep(rl *readline.Instance, thread *starlark.Thread, globals starlark.StringDict) error { 67 // Note: during Readline calls, Control-C causes Readline to return 83 // readline returns EOF, ErrInterrupted, or a line including "\n". 85 readline := func() ([]byte, error) { [all …]
|
/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Domains/ |
D | tDomain_creation_deletion.py | 99 line=f_Domains_Backup.readline() 101 line=f_Domains_Backup.readline() 126 line=f_Domains.readline() 128 line=f_Domains.readline() 136 domain_backup_name = f_Domains_Backup.readline().strip('\r\n'), 137 domain_name = f_Domains.readline().strip('\r\n'), 177 line=f_Domains_Backup.readline() 179 line=f_Domains_Backup.readline() 204 line=f_Domains.readline() 206 line=f_Domains.readline() [all …]
|
D | tDomain_Elements.py | 93 line=f_DomainElements_Backup.readline() 95 line=f_DomainElements_Backup.readline() 127 line=f_DomainElements.readline() 129 line=f_DomainElements.readline() 139 element_name = f_DomainElements.readline().strip('\r\n') 140 element_name_backup = f_DomainElements_Backup.readline().strip('\r\n') 144 element_name = f_DomainElements.readline().strip('\r\n') 186 line=f_DomainElements_Backup.readline() 188 line=f_DomainElements_Backup.readline() 214 line=f_DomainElements.readline() [all …]
|
/external/python/cpython3/Lib/ |
D | rlcompleter.py | 1 """Word completion for GNU readline. 12 readline.parse_and_bind("tab: complete") 17 the completion to fail). This is a feature -- since readline sets the tty 27 - When the original stdin is not a tty device, GNU readline is never 28 used, and this module (and the readline module) are silently inactive. 53 readline via the set_completer() call: 55 readline.set_completer(Completer(my_namespace).complete) 83 readline.insert_text('\t') 84 readline.redisplay() 212 import readline [all …]
|
D | tokenize.py | 3 tokenize(readline) is a generator that breaks a stream of bytes into 7 It accepts a readline-like method which is called repeatedly to get the 326 t1 = [tok[:2] for tok in tokenize(f.readline)] 328 readline = BytesIO(newcode).readline 329 t2 = [tok[:2] for tok in tokenize(readline)] 350 def detect_encoding(readline): argument 353 be used to decode a Python source file. It requires one argument, readline, 356 It will call readline a maximum of twice, and return the encoding used 368 filename = readline.__self__.name 376 return readline() [all …]
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/input/ |
D | ReversedLinesFileReaderTestParamBlockSize.java | 91 while ((line = reversedLinesFileReader.readLine()) != null) { in assertFileWithShrinkingTestLines() 113 assertNull(reader.readLine()); in testEmptyFile() 116 assertNull(reader.readLine()); in testEmptyFile() 125 assertEqualsAndNoLineBreaks("987654321", reversedLinesFileReader.readLine()); in testFileSizeIsExactMultipleOfBlockSize() 126 assertEqualsAndNoLineBreaks("123456789", reversedLinesFileReader.readLine()); in testFileSizeIsExactMultipleOfBlockSize() 134 assertEqualsAndNoLineBreaks(TEST_LINE_GBK_2, reversedLinesFileReader.readLine()); in testGBK() 135 assertEqualsAndNoLineBreaks(TEST_LINE_GBK_1, reversedLinesFileReader.readLine()); in testGBK() 154 assertEqualsAndNoLineBreaks("", reversedLinesFileReader.readLine()); in testIsoFileManyWindowsBreaksSmallBlockSize2VerifyBlockSpanningNewLines() 156 assertEqualsAndNoLineBreaks("" + i, reversedLinesFileReader.readLine()); in testIsoFileManyWindowsBreaksSmallBlockSize2VerifyBlockSpanningNewLines() 165 assertEqualsAndNoLineBreaks(TEST_LINE_SHIFT_JIS2, reversedLinesFileReader.readLine()); in testShiftJISFile() [all …]
|
/external/openthread/src/posix/ |
D | CMakeLists.txt | 40 "readline" 44 set(OT_READLINE "" CACHE STRING "set readline library name") 49 find_library(READLINE ${X}) 50 if (READLINE) 56 find_library(READLINE ${OT_READLINE}) 58 if (NOT READLINE) 63 if (READLINE) 64 message(STATUS "Readline: ${OT_READLINE}") 71 list(APPEND READLINE_LINK_LIBRARIES "${READLINE}" "${NCURSES}")
|
/external/tensorflow/tensorflow/core/lib/io/ |
D | inputbuffer_test.cc | 49 EXPECT_TRUE(errors::IsOutOfRange(in.ReadLine(&line))); in TEST() 65 TF_CHECK_OK(in.ReadLine(&line)); in TEST() 67 TF_CHECK_OK(in.ReadLine(&line)); in TEST() 69 TF_CHECK_OK(in.ReadLine(&line)); in TEST() 71 EXPECT_TRUE(errors::IsOutOfRange(in.ReadLine(&line))); in TEST() 73 EXPECT_TRUE(errors::IsOutOfRange(in.ReadLine(&line))); in TEST() 88 TF_CHECK_OK(in.ReadLine(&line)); in TEST() 90 TF_CHECK_OK(in.ReadLine(&line)); in TEST() 92 TF_CHECK_OK(in.ReadLine(&line)); in TEST() 94 EXPECT_TRUE(errors::IsOutOfRange(in.ReadLine(&line))); in TEST() [all …]
|
D | buffered_inputstream_test.cc | 77 EXPECT_TRUE(errors::IsOutOfRange(in.ReadLine(&line))); in TEST() 95 TF_ASSERT_OK(in.ReadLine(&line)); in TEST() 97 TF_ASSERT_OK(in.ReadLine(&line)); in TEST() 99 TF_ASSERT_OK(in.ReadLine(&line)); in TEST() 101 EXPECT_TRUE(errors::IsOutOfRange(in.ReadLine(&line))); in TEST() 103 EXPECT_TRUE(errors::IsOutOfRange(in.ReadLine(&line))); in TEST() 120 TF_ASSERT_OK(in.ReadLine(&line)); in TEST() 122 TF_ASSERT_OK(in.ReadLine(&line)); in TEST() 124 TF_ASSERT_OK(in.ReadLine(&line)); in TEST() 126 EXPECT_TRUE(errors::IsOutOfRange(in.ReadLine(&line))); in TEST() [all …]
|
/external/yapf/third_party/yapf_third_party/_ylib2to3/pgen2/ |
D | tokenize.py | 5 generate_tokens(readline) is a generator that breaks a stream of 6 text into Python tokens. It accepts a readline-like method which is called 21 tokenize_loop(readline, tokeneater) 22 tokenize(readline, tokeneater=printtoken) 180 def tokenize(readline, tokeneater=printtoken): argument 185 The first parameter, readline, must be a callable object which provides 186 the same interface as the readline() method of built-in file objects. 194 tokenize_loop(readline, tokeneater) 200 def tokenize_loop(readline, tokeneater): argument 201 for token_info in generate_tokens(readline): [all …]
|
/external/tensorflow/tensorflow/python/debug/cli/ |
D | readline_ui.py | 15 """Readline-Based Command-Line Interface of TensorFlow Debugger (tfdbg).""" 16 import readline 23 """Readline-based Command-line UI.""" 30 readline.parse_and_bind("set editing-mode emacs") 32 # Disable default readline delimiter in order to receive the full text 34 readline.set_completer_delims("\n") 35 readline.set_completer(self._readline_complete) 36 readline.parse_and_bind("tab: complete")
|
/external/coreboot/payloads/libpayload/libc/ |
D | readline.c | 30 * @file libc/readline.c 31 * Simple readline implementation 42 * This readline implementation is rather simple, but it does more than the 43 * original readline() because it allows us to have a pre-filled buffer. 49 char *readline(const char *prompt) in readline() function 156 * This function allows the user to pass a predefined buffer to readline(). 158 * readline() and can be edited as normal. 159 * The final input string returned by readline() will be returned in 170 readline(NULL); in getline()
|
/external/MPAndroidChart/MPChartLib/src/main/java/com/github/mikephil/charting/utils/ |
D | FileUtils.java | 51 while ((line = br.readLine()) != null) { in loadEntriesFromFile() 84 // String line = br.readLine(); in loadEntriesFromFile() 89 // while ((line = br.readLine()) != null) { in loadEntriesFromFile() 118 String line = reader.readLine(); in loadEntriesFromAssets() 136 line = reader.readLine(); in loadEntriesFromAssets() 163 // label = reader.readLine(); in loadEntriesFromAssets() 164 // String line = reader.readLine(); in loadEntriesFromAssets() 171 // line = reader.readLine(); in loadEntriesFromAssets() 239 String line = reader.readLine(); in loadBarEntriesFromAssets() 247 line = reader.readLine(); in loadBarEntriesFromAssets() [all …]
|
/external/mesa3d/bin/ |
D | perf-annotate-jit.py | 64 def readline(self): member in LineParser 65 line = self._file.readline() 80 self.readline() 107 while not stream.readline().startswith(desiredFunction + ' '): 111 line = stream.readline().strip() 116 line = stream.readline().strip() 138 def readline(self): member in PerfParser 139 # Override LineParser.readline to ignore comment lines 141 LineParser.readline(self) 147 self.readline()
|
/external/python/pyserial/test/ |
D | test_readline.py | 42 """Test readline function""" 51 """Test readline method""" 53 self.assertEqual(self.s.readline(), serial.to_bytes([0x31, 0x0a])) 54 self.assertEqual(self.s.readline(), serial.to_bytes([0x32, 0x0a])) 55 self.assertEqual(self.s.readline(), serial.to_bytes([0x33, 0x0a])) 57 self.assertEqual(self.s.readline(), serial.to_bytes([])) 88 """Test readline with alternative eol settings (skipped for io based systems)""" 92 self.s.readline(eol=serial.to_bytes("\r\n")),
|
/external/pytorch/benchmarks/sparse/dlmc/ |
D | utils.py | 26 line = file.readline() 43 nrows, ncols, nnz = (int(el) for el in file.readline().split(", ")) 44 index_pointers = (int(el) for el in file.readline().split()) 45 indices = (int(el) for el in file.readline().split()) 58 nrows, ncols, nnz = (int(el) for el in file.readline().split(", ")) 59 index_pointers = (int(el) for el in file.readline().split()) 60 indices = (int(el) for el in file.readline().split()) 66 nrows, ncols, nnz = (int(el) for el in file.readline().split(", ")) 67 index_pointers = (int(el) for el in file.readline().split()) 68 indices = (int(el) for el in file.readline().split())
|
/external/rust/android-crates-io/crates/libfuzzer-sys/libfuzzer/scripts/ |
D | unbalanced_allocs.py | 36 line = f.readline() 42 return f.readline() 45 next_line, stack = ProcessStack(f.readline(), f) 60 next_line, stack = ProcessStack(f.readline(), f) 71 line = f.readline() 79 return f.readline() 85 line = f.readline()
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_streams.py | 48 f = reader.readline() 227 # Read one line. 'readline' will need to wait for the data 231 read_task = self.loop.create_task(stream.readline()) 252 ValueError, self.loop.run_until_complete, stream.readline()) 262 ValueError, self.loop.run_until_complete, stream.readline()) 264 # waiting for the new data in buffer, 'readline' will consume 277 self.loop.run_until_complete(stream.readline()) 282 self.loop.run_until_complete(stream.readline()) 287 # their 'readline' methods are called. 298 ValueError, self.loop.run_until_complete, stream.readline()) [all …]
|