/third_party/node/lib/internal/repl/ |
D | utils.js | 138 function setupPreview(repl, contextSymbol, bufferSymbol, active) { argument 157 const displayPos = repl._getDisplayPos(`${repl.getPrompt()}${repl.line}`); 158 const cursorPos = repl.line.length !== repl.cursor ? 159 repl.getCursorPos() : 174 moveCursor(repl.output, 0, rows); 175 clearLine(repl.output); 176 moveCursor(repl.output, 0, -rows); 182 const move = repl.line.length !== repl.cursor; 186 cursorTo(repl.output, pos.displayPos.cols); 188 moveCursor(repl.output, 0, rows); [all …]
|
D | history.js | 28 function _writeToOutput(repl, message) { argument 29 repl._writeToOutput(message); 30 repl._refreshLine(); 33 function setupHistory(repl, historyPath, ready) { argument 39 repl._historyPrev = _replHistoryMessage; 40 return ready(null, repl); 47 _writeToOutput(repl, '\nError: Could not get the home directory.\n' + 51 repl._historyPrev = _replHistoryMessage; 52 return ready(null, repl); 59 repl.pause(); [all …]
|
/third_party/vk-gl-cts/framework/qphelper/ |
D | qpXmlWriter.c | 56 const char* repl = DE_NULL; in writeEscaped() local 60 case '<': repl = "<"; break; in writeEscaped() 61 case '>': repl = ">"; break; in writeEscaped() 62 case '&': repl = "&"; break; in writeEscaped() 63 case '\'': repl = "'"; break; in writeEscaped() 64 case '"': repl = """; break; in writeEscaped() 67 case 1: repl = "<SOH>"; break; in writeEscaped() 68 case 2: repl = "<STX>"; break; in writeEscaped() 69 case 3: repl = "<ETX>"; break; in writeEscaped() 70 case 4: repl = "<EOT>"; break; in writeEscaped() [all …]
|
/third_party/libnl/lib/netfilter/ |
D | ct_obj.c | 632 int nfnl_ct_set_src(struct nfnl_ct *ct, int repl, struct nl_addr *addr) in nfnl_ct_set_src() argument 634 struct nfnl_ct_dir *dir = repl ? &ct->ct_repl : &ct->ct_orig; in nfnl_ct_set_src() 635 int attr = repl ? CT_ATTR_REPL_SRC : CT_ATTR_ORIG_SRC; in nfnl_ct_set_src() 639 int nfnl_ct_set_dst(struct nfnl_ct *ct, int repl, struct nl_addr *addr) in nfnl_ct_set_dst() argument 641 struct nfnl_ct_dir *dir = repl ? &ct->ct_repl : &ct->ct_orig; in nfnl_ct_set_dst() 642 int attr = repl ? CT_ATTR_REPL_DST : CT_ATTR_ORIG_DST; in nfnl_ct_set_dst() 646 struct nl_addr *nfnl_ct_get_src(const struct nfnl_ct *ct, int repl) in nfnl_ct_get_src() argument 648 const struct nfnl_ct_dir *dir = repl ? &ct->ct_repl : &ct->ct_orig; in nfnl_ct_get_src() 649 int attr = repl ? CT_ATTR_REPL_SRC : CT_ATTR_ORIG_SRC; in nfnl_ct_get_src() 655 struct nl_addr *nfnl_ct_get_dst(const struct nfnl_ct *ct, int repl) in nfnl_ct_get_dst() argument [all …]
|
D | ct.c | 102 static int ct_parse_ip(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_ip() argument 116 err = nfnl_ct_set_src(ct, repl, addr); in ct_parse_ip() 125 err = nfnl_ct_set_dst(ct, repl, addr); in ct_parse_ip() 134 err = nfnl_ct_set_src(ct, repl, addr); in ct_parse_ip() 143 err = nfnl_ct_set_dst(ct, repl, addr); in ct_parse_ip() 157 static int ct_parse_proto(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_proto() argument 166 if (!repl && tb[CTA_PROTO_NUM]) in ct_parse_proto() 169 nfnl_ct_set_src_port(ct, repl, in ct_parse_proto() 172 nfnl_ct_set_dst_port(ct, repl, in ct_parse_proto() 177 nfnl_ct_set_icmp_id(ct, repl, in ct_parse_proto() [all …]
|
/third_party/gettext/gettext-tools/src/ |
D | filter-sr-latin.c | 331 const char *repl = table[uc - 0x0400]; in serbian_to_latin() local 333 if (repl[0] != '\0') in serbian_to_latin() 354 repl = "LJ"; break; in serbian_to_latin() 356 repl = "NJ"; break; in serbian_to_latin() 358 repl = "D\xC5\xBD"/* "DŽ" */; break; in serbian_to_latin() 365 *op++ = *repl++; in serbian_to_latin() 366 if (*repl != '\0') in serbian_to_latin() 368 *op++ = *repl++; in serbian_to_latin() 369 if (*repl != '\0') in serbian_to_latin() 371 *op++ = *repl++; in serbian_to_latin() [all …]
|
/third_party/node/test/parallel/ |
D | test-repl-use-global.js | 7 const repl = require('internal/repl'); constant 17 const globalTest = (useGlobal, cb, output) => (err, repl) => { 24 repl.write('global.lunch;\n'); 25 repl.close(); 45 const processTest = (useGlobal, cb, output) => (err, repl) => { 53 repl.write('let process;\n'); 54 repl.write('21 * 2;\n'); 55 repl.close(); 77 repl.createInternalRepl(
|
D | test-repl-options.js | 28 const repl = require('repl'); constant 31 assert.strictEqual(repl.repl, undefined); 32 repl._builtinLibs; // eslint-disable-line no-unused-expressions 48 const r1 = repl.start({ 62 assert.strictEqual(r1.replMode, repl.REPL_MODE_SLOPPY); 77 const r2 = repl.start({ 86 replMode: repl.REPL_MODE_STRICT, 98 assert.strictEqual(r2.replMode, repl.REPL_MODE_STRICT); 109 const r3 = () => repl.start({ 121 const r4 = repl.start(); [all …]
|
D | test-repl-underscore.js | 5 const repl = require('repl'); constant 16 const r = initRepl(repl.REPL_MODE_SLOPPY); 49 const r = initRepl(repl.REPL_MODE_STRICT); 82 const r = initRepl(repl.REPL_MODE_MAGIC); 115 const r = initRepl(repl.REPL_MODE_SLOPPY); 137 const r = initRepl(repl.REPL_MODE_STRICT, true); 158 const r = initRepl(repl.REPL_MODE_STRICT); 233 return repl.start({
|
D | test-repl-preview.js | 60 function runAndWait(cmds, repl) { argument 61 const promise = repl.inputStream.wait(); 63 repl.inputStream.run(cmd); 69 const repl = REPLServer({ 77 repl.inputStream.run([ 171 const hasPreview = repl.terminal && 178 let lines = await runAndWait(toBeRun, repl);
|
D | test-repl-mode.js | 5 const repl = require('repl'); constant 19 const cli = initRepl(repl.REPL_MODE_SLOPPY); 30 const cli = initRepl(repl.REPL_MODE_STRICT); 47 const cli = initRepl(repl.REPL_MODE_STRICT, { 58 const cli = initRepl(repl.REPL_MODE_MAGIC); 80 return repl.start({
|
D | test-repl-envvars.js | 50 REPL.createInternalRepl(process.env, opts, function(err, repl) { argument 53 assert.strictEqual(repl.terminal, expected.terminal, 55 assert.strictEqual(repl.useColors, expected.useColors, 60 repl.close();
|
D | test-repl-programmatic-history.js | 216 const repl = REPL.start({ 242 repl.setupHistory(historyFile, function(err, repl) { argument 248 repl.once('close', () => { 249 if (repl._flushing) { 250 repl.once('flushHistory', onClose); 270 repl.inputStream.run(test);
|
/third_party/node/doc/api/ |
D | repl.md | 7 <!-- source_link=lib/repl.js --> 9 The `repl` module provides a Read-Eval-Print-Loop (REPL) implementation that 14 const repl = require('repl'); 19 The `repl` module exports the [`repl.REPLServer`][] class. While running, 20 instances of [`repl.REPLServer`][] will accept individual lines of user input, 25 Instances of [`repl.REPLServer`][] support automatic completion of inputs, 81 By default, all instances of [`repl.REPLServer`][] use an evaluation function 84 evaluation function when the [`repl.REPLServer`][] instance is created. 110 const repl = require('repl'); 113 repl.start('> ').context.m = msg; [all …]
|
/third_party/node/lib/internal/debugger/ |
D | inspect_repl.js | 322 let repl; 1038 get repl() { getter 1040 const listeners = ArrayPrototypeSlice(repl.listeners('SIGINT')); 1041 repl.removeAllListeners('SIGINT'); 1043 const oldContext = repl.context; 1049 repl.on('SIGINT', listener); 1054 repl.eval = controlEval; 1057 history.debug = repl.history; 1058 repl.history = history.control; 1060 repl.context = oldContext; [all …]
|
D | inspect.js | 177 const repl = await startRepl(); 178 this.repl = repl; 179 this.repl.on('exit', exitCodeZero); 185 if (this.repl) { 186 this.repl.pause(); 194 if (this.repl) { 195 this.repl.resume(); 196 this.repl.displayPrompt(); 267 this.repl.displayPrompt(true);
|
/third_party/node/lib/internal/main/ |
D | repl.js | 41 cliRepl.createInternalRepl(process.env, (err, repl) => { 45 repl.on('exit', () => { 46 if (repl._flushing) { 47 repl.pause(); 48 return repl.once('flushHistory', () => {
|
/third_party/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt03.c | 38 struct ipt_replace repl; member 66 p.repl.num_entries = 2; in run() 67 p.repl.num_counters = 1; in run() 68 p.repl.size = sizeof(struct payload); in run() 69 p.repl.valid_hooks = 0; in run()
|
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/ |
D | MacroExpander.cpp | 312 Token &repl = replacements->front(); in expandMacro() local 315 repl.text = ToString(identifier.location.line); in expandMacro() 319 repl.text = ToString(identifier.location.file); in expandMacro() 336 Token &repl = replacements->at(i); in expandMacro() local 341 repl.setAtStartOfLine(identifier.atStartOfLine()); in expandMacro() 342 repl.setHasLeadingSpace(identifier.hasLeadingSpace()); in expandMacro() 344 repl.location = replacementLocation; in expandMacro() 477 const Token &repl = macro.replacements[i]; in replaceMacroParams() local 478 if (repl.type != Token::IDENTIFIER) in replaceMacroParams() 480 replacements->push_back(repl); in replaceMacroParams() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/preprocessor/ |
D | MacroExpander.cpp | 318 Token &repl = replacements->front(); in expandMacro() local 321 repl.text = std::to_string(identifier.location.line); in expandMacro() 325 repl.text = std::to_string(identifier.location.file); in expandMacro() 342 Token &repl = replacements->at(i); in expandMacro() local 347 repl.setAtStartOfLine(identifier.atStartOfLine()); in expandMacro() 348 repl.setHasLeadingSpace(identifier.hasLeadingSpace()); in expandMacro() 350 repl.location = replacementLocation; in expandMacro() 481 const Token &repl = macro.replacements[i]; in replaceMacroParams() local 482 if (repl.type != Token::IDENTIFIER) in replaceMacroParams() 484 replacements->push_back(repl); in replaceMacroParams() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/preprocessor/ |
D | MacroExpander.cpp | 312 Token &repl = replacements->front(); in expandMacro() local 315 repl.text = ToString(identifier.location.line); in expandMacro() 319 repl.text = ToString(identifier.location.file); in expandMacro() 336 Token &repl = replacements->at(i); in expandMacro() local 341 repl.setAtStartOfLine(identifier.atStartOfLine()); in expandMacro() 342 repl.setHasLeadingSpace(identifier.hasLeadingSpace()); in expandMacro() 344 repl.location = replacementLocation; in expandMacro() 477 const Token &repl = macro.replacements[i]; in replaceMacroParams() local 478 if (repl.type != Token::IDENTIFIER) in replaceMacroParams() 480 replacements->push_back(repl); in replaceMacroParams() [all …]
|
/third_party/gettext/gettext-tools/examples/hello-c++-kde/admin/ |
D | config.pl | 65 my $repl = $2; 66 $repl =~ s/\\(.)/$1/g; 67 push @comp_subs, make_closure($srch, $repl); 87 my $repl = $2; 89 $repl =~ s/\\(.)/$1/g; 90 push @comp_subs, $repl;
|
/third_party/iptables/libiptc/ |
D | libiptc.c | 1103 static inline int iptcc_compile_rule (struct xtc_handle *h, STRUCT_REPLACE *repl, struct rule_head … in iptcc_compile_rule() argument 1123 memcpy((char *)repl->entries+r->offset, r->entry, r->size); in iptcc_compile_rule() 1129 static int iptcc_compile_chain(struct xtc_handle *h, STRUCT_REPLACE *repl, struct chain_head *c) in iptcc_compile_chain() argument 1139 head = (void *)repl->entries + c->head_offset; in iptcc_compile_chain() 1148 repl->hook_entry[c->hooknum-1] = c->head_offset; in iptcc_compile_chain() 1149 repl->underflow[c->hooknum-1] = c->foot_offset; in iptcc_compile_chain() 1154 ret = iptcc_compile_rule(h, repl, r); in iptcc_compile_chain() 1160 foot = (void *)repl->entries + c->foot_offset; in iptcc_compile_chain() 1236 static int iptcc_compile_table(struct xtc_handle *h, STRUCT_REPLACE *repl) in iptcc_compile_table() argument 1243 int ret = iptcc_compile_chain(h, repl, c); in iptcc_compile_table() [all …]
|
/third_party/mesa3d/src/panfrost/bifrost/ |
D | bi_opt_mod_props.c | 29 bi_takes_fabs(unsigned arch, bi_instr *I, bi_index repl, unsigned s) in bi_takes_fabs() argument 37 && bi_is_word_equiv(I->src[1 - s], repl)); in bi_takes_fabs() 93 bi_compose_float_index(bi_index old, bi_index repl) in bi_compose_float_index() argument 97 repl.neg = old.neg ^ (repl.neg && !old.abs); in bi_compose_float_index() 100 repl.abs |= old.abs; in bi_compose_float_index() 103 repl.swizzle = bi_compose_swizzle_16(old.swizzle, repl.swizzle); in bi_compose_float_index() 105 return repl; in bi_compose_float_index()
|
D | bi_opt_copy_prop.c | 75 bi_index repl = replacement[bi_word_node(use)]; in bi_opt_copy_prop() local 77 if (repl.type == BI_INDEX_CONSTANT && bi_reads_fau(ins)) in bi_opt_copy_prop() 80 if (!bi_is_null(repl)) in bi_opt_copy_prop() 81 ins->src[s] = bi_replace_index(ins->src[s], repl); in bi_opt_copy_prop()
|