Home
last modified time | relevance | path

Searched refs:repl (Results 1 – 25 of 78) sorted by relevance

1234

/external/deqp/framework/qphelper/
DqpXmlWriter.c56 const char* repl = DE_NULL; in writeEscaped() local
60 case '<': repl = "&lt;"; break; in writeEscaped()
61 case '>': repl = "&gt;"; break; in writeEscaped()
62 case '&': repl = "&amp;"; break; in writeEscaped()
63 case '\'': repl = "&apos;"; break; in writeEscaped()
64 case '"': repl = "&quot;"; break; in writeEscaped()
67 case 1: repl = "&lt;SOH&gt;"; break; in writeEscaped()
68 case 2: repl = "&lt;STX&gt;"; break; in writeEscaped()
69 case 3: repl = "&lt;ETX&gt;"; break; in writeEscaped()
70 case 4: repl = "&lt;EOT&gt;"; break; in writeEscaped()
[all …]
/external/libnl/lib/netfilter/
Dct_obj.c631 int nfnl_ct_set_src(struct nfnl_ct *ct, int repl, struct nl_addr *addr) in nfnl_ct_set_src() argument
633 struct nfnl_ct_dir *dir = repl ? &ct->ct_repl : &ct->ct_orig; in nfnl_ct_set_src()
634 int attr = repl ? CT_ATTR_REPL_SRC : CT_ATTR_ORIG_SRC; in nfnl_ct_set_src()
638 int nfnl_ct_set_dst(struct nfnl_ct *ct, int repl, struct nl_addr *addr) in nfnl_ct_set_dst() argument
640 struct nfnl_ct_dir *dir = repl ? &ct->ct_repl : &ct->ct_orig; in nfnl_ct_set_dst()
641 int attr = repl ? CT_ATTR_REPL_DST : CT_ATTR_ORIG_DST; in nfnl_ct_set_dst()
645 struct nl_addr *nfnl_ct_get_src(const struct nfnl_ct *ct, int repl) in nfnl_ct_get_src() argument
647 const struct nfnl_ct_dir *dir = repl ? &ct->ct_repl : &ct->ct_orig; in nfnl_ct_get_src()
648 int attr = repl ? CT_ATTR_REPL_SRC : CT_ATTR_ORIG_SRC; in nfnl_ct_get_src()
654 struct nl_addr *nfnl_ct_get_dst(const struct nfnl_ct *ct, int repl) in nfnl_ct_get_dst() argument
[all …]
Dct.c119 static int ct_parse_ip(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_ip() argument
133 err = nfnl_ct_set_src(ct, repl, addr); in ct_parse_ip()
142 err = nfnl_ct_set_dst(ct, repl, addr); in ct_parse_ip()
151 err = nfnl_ct_set_src(ct, repl, addr); in ct_parse_ip()
160 err = nfnl_ct_set_dst(ct, repl, addr); in ct_parse_ip()
174 static int ct_parse_proto(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_proto() argument
183 if (!repl && tb[CTA_PROTO_NUM]) in ct_parse_proto()
186 nfnl_ct_set_src_port(ct, repl, in ct_parse_proto()
189 nfnl_ct_set_dst_port(ct, repl, in ct_parse_proto()
194 nfnl_ct_set_icmp_id(ct, repl, in ct_parse_proto()
[all …]
/external/libnetfilter_conntrack/src/conntrack/
Dobjopt.c19 other = &ct->repl; in __autocomplete()
22 this = &ct->repl; in __autocomplete()
57 ct->snat.min_ip.v4 = ct->repl.dst.v4; in setobjopt_undo_snat()
59 ct->repl.dst.v4 = ct->head.orig.src.v4; in setobjopt_undo_snat()
63 memcpy(&ct->snat.min_ip.v6, &ct->repl.dst.v6, in setobjopt_undo_snat()
67 memcpy(&ct->repl.dst.v6, &ct->head.orig.src.v6, in setobjopt_undo_snat()
80 ct->dnat.min_ip.v4 = ct->repl.src.v4; in setobjopt_undo_dnat()
82 ct->repl.src.v4 = ct->head.orig.dst.v4; in setobjopt_undo_dnat()
85 memcpy(&ct->dnat.min_ip.v6, &ct->repl.src.v6, in setobjopt_undo_dnat()
89 memcpy(&ct->repl.src.v6, &ct->head.orig.dst.v6, in setobjopt_undo_dnat()
[all …]
Dgrp_setter.c51 ct->repl.src.v4 = this->src; in set_attr_grp_repl_ipv4()
52 ct->repl.dst.v4 = this->dst; in set_attr_grp_repl_ipv4()
53 ct->repl.l3protonum = AF_INET; in set_attr_grp_repl_ipv4()
67 memcpy(&ct->repl.src.v6, this->src, sizeof(uint32_t)*4); in set_attr_grp_repl_ipv6()
68 memcpy(&ct->repl.dst.v6, this->dst, sizeof(uint32_t)*4); in set_attr_grp_repl_ipv6()
69 ct->repl.l3protonum = AF_INET6; in set_attr_grp_repl_ipv6()
82 ct->repl.l4src.all = this->sport; in set_attr_grp_repl_port()
83 ct->repl.l4dst.all = this->dport; in set_attr_grp_repl_port()
107 ct->repl.l4dst.icmp.type = rtype - 1; in set_attr_grp_icmp()
109 ct->repl.l4dst.icmp.type = 255; /* -EINVAL */ in set_attr_grp_icmp()
[all …]
Dgrp_getter.c22 this->src = ct->repl.src.v4; in get_attr_grp_repl_ipv4()
23 this->dst = ct->repl.dst.v4; in get_attr_grp_repl_ipv4()
36 memcpy(this->src, &ct->repl.src.v6, sizeof(uint32_t)*4); in get_attr_grp_repl_ipv6()
37 memcpy(this->dst, &ct->repl.dst.v6, sizeof(uint32_t)*4); in get_attr_grp_repl_ipv6()
50 this->sport = ct->repl.l4src.all; in get_attr_grp_repl_port()
51 this->dport = ct->repl.l4dst.all; in get_attr_grp_repl_port()
115 memcpy(&this->addr, &ct->repl.src, sizeof(ct->repl.src)); in get_attr_grp_repl_addr_src()
122 memcpy(&this->addr, &ct->repl.dst, sizeof(ct->repl.dst)); in get_attr_grp_repl_addr_dst()
Dcompare.c188 return (ct1->repl.l3protonum == ct2->repl.l3protonum); in cmp_repl_l3proto()
196 return (ct1->repl.l4src.all == ct2->repl.l4src.all); in cmp_repl_port_src()
204 return (ct1->repl.l4dst.all == ct2->repl.l4dst.all); in cmp_repl_port_dst()
212 if (ct1->repl.protonum != ct2->repl.protonum) in cmp_repl_l4proto()
215 switch(ct1->repl.protonum) { in cmp_repl_l4proto()
246 return (ct1->repl.src.v4 == ct2->repl.src.v4);} in cmp_repl_ipv4_src()
253 return (ct1->repl.dst.v4 == ct2->repl.dst.v4);} in cmp_repl_ipv4_dst()
260 return (memcmp(&ct1->repl.src.v6, &ct2->repl.src.v6, in cmp_repl_ipv6_src()
269 return (memcmp(&ct1->repl.dst.v6, &ct2->repl.dst.v6, in cmp_repl_ipv6_dst()
Dcopy.c27 dest->repl.src.v4 = orig->repl.src.v4; in copy_attr_repl_ipv4_src()
33 dest->repl.dst.v4 = orig->repl.dst.v4; in copy_attr_repl_ipv4_dst()
55 memcpy(&dest->repl.src, in copy_attr_repl_ipv6_src()
56 &orig->repl.src, in copy_attr_repl_ipv6_src()
63 memcpy(&dest->repl.dst, in copy_attr_repl_ipv6_dst()
64 &orig->repl.dst, in copy_attr_repl_ipv6_dst()
83 dest->repl.l4src.all = orig->repl.l4src.all; in copy_attr_repl_port_src()
89 dest->repl.l4dst.all = orig->repl.l4dst.all; in copy_attr_repl_port_dst()
101 dest->repl.zone = orig->repl.zone; in copy_attr_repl_zone()
136 dest->repl.l3protonum = orig->repl.l3protonum; in copy_attr_repl_l3proto()
[all …]
Dgetter.c24 return &ct->repl.src.v4; in get_attr_repl_ipv4_src()
29 return &ct->repl.dst.v4; in get_attr_repl_ipv4_dst()
44 return &ct->repl.src.v6; in get_attr_repl_ipv6_src()
49 return &ct->repl.dst.v6; in get_attr_repl_ipv6_dst()
64 return &ct->repl.l4src.all; in get_attr_repl_port_src()
69 return &ct->repl.l4dst.all; in get_attr_repl_port_dst()
79 return &ct->repl.zone; in get_attr_repl_zone()
104 return &ct->repl.l3protonum; in get_attr_repl_l3proto()
114 return &ct->repl.protonum; in get_attr_repl_l4proto()
Dsetter.c55 ct->repl.src.v4 = *((uint32_t *) value); in set_attr_repl_ipv4_src()
61 ct->repl.dst.v4 = *((uint32_t *) value); in set_attr_repl_ipv4_dst()
79 memcpy(&ct->repl.src.v6, value, sizeof(uint32_t)*4); in set_attr_repl_ipv6_src()
85 memcpy(&ct->repl.dst.v6, value, sizeof(uint32_t)*4); in set_attr_repl_ipv6_dst()
103 ct->repl.l4src.all = *((uint16_t *) value); in set_attr_repl_port_src()
109 ct->repl.l4dst.all = *((uint16_t *) value); in set_attr_repl_port_dst()
121 ct->repl.zone = *((uint16_t *) value); in set_attr_repl_zone()
145 ct->repl.l4dst.icmp.type = rtype - 1; in set_attr_icmp_type()
147 ct->repl.l4dst.icmp.type = 255; /* will fail with -EINVAL */ in set_attr_icmp_type()
155 ct->repl.l4dst.icmp.code = *((uint8_t *) value); in set_attr_icmp_code()
[all …]
/external/clang/www/
Dbuiltins.py147 def report_repl(builtin, repl): argument
148 …iltin %s used, replaced with %s\n" % (fileinput.filename(), fileinput.filelineno(), builtin, repl))
154 for builtin, repl in repl_map.iteritems():
156 line = line.replace(builtin, repl)
157 report_repl(builtin, repl)
/external/swiftshader/src/OpenGL/compiler/preprocessor/
DMacroExpander.cpp253 Token& repl = replacements->front(); in expandMacro() local
258 repl.text = stream.str(); in expandMacro()
264 repl.text = stream.str(); in expandMacro()
281 Token& repl = replacements->at(i); in expandMacro() local
286 repl.setAtStartOfLine(identifier.atStartOfLine()); in expandMacro()
287 repl.setHasLeadingSpace(identifier.hasLeadingSpace()); in expandMacro()
289 repl.location = identifier.location; in expandMacro()
389 const Token& repl = macro.replacements[i]; in replaceMacroParams() local
390 if (repl.type != Token::IDENTIFIER) in replaceMacroParams()
392 replacements->push_back(repl); in replaceMacroParams()
[all …]
/external/iptables/libiptc/
Dlibiptc.c1118 static inline int iptcc_compile_rule (struct xtc_handle *h, STRUCT_REPLACE *repl, struct rule_head … in iptcc_compile_rule() argument
1137 memcpy((char *)repl->entries+r->offset, r->entry, r->size); in iptcc_compile_rule()
1143 static int iptcc_compile_chain(struct xtc_handle *h, STRUCT_REPLACE *repl, struct chain_head *c) in iptcc_compile_chain() argument
1153 head = (void *)repl->entries + c->head_offset; in iptcc_compile_chain()
1161 repl->hook_entry[c->hooknum-1] = c->head_offset; in iptcc_compile_chain()
1162 repl->underflow[c->hooknum-1] = c->foot_offset; in iptcc_compile_chain()
1167 ret = iptcc_compile_rule(h, repl, r); in iptcc_compile_chain()
1173 foot = (void *)repl->entries + c->foot_offset; in iptcc_compile_chain()
1249 static int iptcc_compile_table(struct xtc_handle *h, STRUCT_REPLACE *repl) in iptcc_compile_table() argument
1256 int ret = iptcc_compile_chain(h, repl, c); in iptcc_compile_table()
[all …]
/external/mesa3d/src/compiler/glsl/
Dopt_function_inlining.cpp40 ir_dereference *repl);
341 ir_variable_replacement_visitor(ir_variable *orig, ir_dereference *repl) in ir_variable_replacement_visitor() argument
344 this->repl = repl; in ir_variable_replacement_visitor()
360 ir_dereference *repl; member in ir_variable_replacement_visitor
368 *deref = this->repl->clone(ralloc_parent(*deref), NULL); in replace_deref()
426 ir_dereference *repl) in do_variable_replacement() argument
428 ir_variable_replacement_visitor v(orig, repl); in do_variable_replacement()
/external/python/cpython2/Lib/
Dre.py148 def sub(pattern, repl, string, count=0, flags=0): argument
155 return _compile(pattern, flags).sub(repl, string, count)
157 def subn(pattern, repl, string, count=0, flags=0): argument
166 return _compile(pattern, flags).subn(repl, string, count)
269 repl, pattern = key
271 p = sre_parse.parse_template(repl, pattern)
/external/python/cpython2/Lib/idlelib/
DReplaceDialog.py65 def _replace_expand(self, m, repl): argument
70 new = m.expand(repl)
72 self.engine.report_error(repl, 'Invalid Replace Expression')
75 new = repl
82 repl = self.replvar.get()
106 new = self._replace_expand(m, repl)
/external/selinux/libsemanage/src/
Dgenhomedircon.c519 static char *replace_all(const char *str, const replacement_pair_t * repl) in replace_all() argument
524 if (!str || !repl) in replace_all()
528 for (i = 0; retval != NULL && repl[i].search_for; i++) { in replace_all()
529 retval2 = semanage_str_replace(repl[i].search_for, in replace_all()
530 repl[i].replace_with, retval, 0); in replace_all()
584 const replacement_pair_t *repl) in write_replacements() argument
589 line = replace_all(tpl->data, repl); in write_replacements()
606 semanage_list_t *tpl, const replacement_pair_t *repl, in write_contexts() argument
616 line = replace_all(tpl->data, repl); in write_contexts()
690 replacement_pair_t repl[] = { in write_home_dir_context() local
[all …]
/external/llvm/test/MC/Mips/dsp/
Dinvalid.s32 repl.qb $2, -1 # CHECK: :[[@LINE]]:15: error: expected 8-bit unsigned immediate
33 repl.qb $2, 256 # CHECK: :[[@LINE]]:15: error: expected 8-bit unsigned immediate
34 repl.ph $2, -1 # CHECK: :[[@LINE]]:15: error: expected 10-bit unsigned immediate
35 repl.ph $2, 1024 # CHECK: :[[@LINE]]:15: error: expected 10-bit unsigned immediate
Dvalid.s100repl.ph $2, 12 # CHECK: repl.ph $2, 12 # encoding: [0x7c,0x…
101repl.qb $1, 85 # CHECK: repl.qb $1, 85 # encoding: [0x7c,0x…
/external/owasp/sanitizer/src/main/org/owasp/html/
DEncoding.java171 String repl = REPLACEMENTS[ch]; in encodeHtmlOnto() local
172 if (repl != null) { in encodeHtmlOnto()
173 output.append(plainText, pos, i).append(repl); in encodeHtmlOnto()
/external/icu/icu4c/source/test/intltest/
Dregextst.cpp5369 UnicodeString repl; in NamedCapture() local
5372 repl = UnicodeString("<$0>"); in NamedCapture()
5373 …resultLength = uregex_replaceAll(re, repl.getBuffer(), repl.length(), resultBuf, UPRV_LENGTHOF(res… in NamedCapture()
5378 repl = UnicodeString("<$1>"); in NamedCapture()
5379 …resultLength = uregex_replaceAll(re, repl.getBuffer(), repl.length(), resultBuf, UPRV_LENGTHOF(res… in NamedCapture()
5384 repl = UnicodeString("<${one}>"); in NamedCapture()
5385 …resultLength = uregex_replaceAll(re, repl.getBuffer(), repl.length(), resultBuf, UPRV_LENGTHOF(res… in NamedCapture()
5390 repl = UnicodeString("<$2>"); in NamedCapture()
5391 …resultLength = uregex_replaceAll(re, repl.getBuffer(), repl.length(), resultBuf, UPRV_LENGTHOF(res… in NamedCapture()
5396 repl = UnicodeString("<$3>"); in NamedCapture()
[all …]
/external/llvm/test/MC/Mips/micromips-dsp/
Dvalid.s98 repl.ph $1, 512 # CHECK: repl.ph $1, 512 # encoding: [0x02,0x00,0x08,0x3d]
99 repl.qb $1, 128 # CHECK: repl.qb $1, 128 # encoding: [0x00,0x30,0x05,0xfc]
/external/antlr/antlr-3.4/runtime/Python/
Dez_setup.py202 repl = "".join(data)
213 src = src[:match.start(1)] + repl + src[match.end(1):]
/external/llvm/test/Transforms/Inline/
Dalloca-bonus.ll36 ; %D poisons this call, scalar-repl can't handle that instruction.
95 ; %B poisons this call, scalar-repl can't handle that instruction. However, we
136 ; %D poisons this call, scalar-repl can't handle that instruction. However, if
/external/icu/icu4c/source/test/cintltst/
Dreapits.c999 UChar repl[100]; in TestRegexCAPI() local
1010 u_uastrncpy(repl, "some other", UPRV_LENGTHOF(repl)); in TestRegexCAPI()
1018 uregex_appendReplacement(re, repl, -1, &bufPtr, &bufCap, &status); in TestRegexCAPI()
1027 u_uastrncpy(repl, "abc\\u0041\\U00000042 \\\\ \\$ \\abc", UPRV_LENGTHOF(repl)); in TestRegexCAPI()
1028 uregex_appendReplacement(re, repl, -1, &bufPtr, &bufCap, &status); in TestRegexCAPI()
1038 uregex_appendReplacement(re, repl, -1, &bufPtr, NULL, &status); in TestRegexCAPI()
1904 UChar repl[100]; in TestUTextAPI() local
1914 u_uastrncpy(repl, "some other", UPRV_LENGTHOF(repl)); in TestUTextAPI()
1922 uregex_appendReplacement(re, repl, -1, &bufPtr, &bufCap, &status); in TestUTextAPI()
1931 u_uastrncpy(repl, "abc\\u0041\\U00000042 \\\\ \\$ \\abc", UPRV_LENGTHOF(repl)); in TestUTextAPI()
[all …]

1234