HomeSort by relevance Sort by last modified time
    Searched refs:repl (Results 1 - 25 of 146) sorted by null

1 2 3 4 5 6

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
ReplaceTest.java 29 String target, pattern, repl; local
33 repl = "xxx";
38 assertEquals("foobarxxxarfoofo1", m.replaceFirst(repl));
39 assertEquals("foobarxxxarfooxxx", m.replaceAll(repl));
43 String target, pattern, repl, s; local
49 repl = "$2[$1]";
53 s = m.replaceFirst(repl);
55 s = m.replaceAll(repl);
60 repl = "[$5]$6($3)$4{$1}$2";
63 s = m.replaceFirst(repl);
76 String target, pattern, repl, s; local
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
ReplaceTest.java 26 String target, pattern, repl; local
30 repl = "xxx";
35 assertEquals("foobarxxxarfoofo1barfort", m.replaceFirst(repl));
36 assertEquals("foobarxxxarfooxxxbarxxxt", m.replaceAll(repl));
40 String target, pattern, repl, s; local
46 repl = "$2[$1]";
50 s = m.replaceFirst(repl);
52 s = m.replaceAll(repl);
57 repl = "[$5]$6($3)$4{$1}$2";
60 s = m.replaceFirst(repl);
71 String target, pattern, repl, s; local
    [all...]
  /external/clang/www/
builtins.py 147 def report_repl(builtin, repl):
148 sys.stderr.write("%s:%d: x86 builtin %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/libnetfilter_conntrack/src/conntrack/
objopt.c 19 other = &ct->repl;
22 this = &ct->repl;
57 ct->snat.min_ip.v4 = ct->repl.dst.v4;
59 ct->repl.dst.v4 = ct->head.orig.src.v4;
63 memcpy(&ct->snat.min_ip.v6, &ct->repl.dst.v6,
67 memcpy(&ct->repl.dst.v6, &ct->head.orig.src.v6,
80 ct->dnat.min_ip.v4 = ct->repl.src.v4;
82 ct->repl.src.v4 = ct->head.orig.dst.v4;
85 memcpy(&ct->dnat.min_ip.v6, &ct->repl.src.v6,
89 memcpy(&ct->repl.src.v6, &ct->head.orig.dst.v6
    [all...]
grp_getter.c 22 this->src = ct->repl.src.v4;
23 this->dst = ct->repl.dst.v4;
36 memcpy(this->src, &ct->repl.src.v6, sizeof(uint32_t)*4);
37 memcpy(this->dst, &ct->repl.dst.v6, sizeof(uint32_t)*4);
50 this->sport = ct->repl.l4src.all;
51 this->dport = ct->repl.l4dst.all;
115 memcpy(&this->addr, &ct->repl.src, sizeof(ct->repl.src));
122 memcpy(&this->addr, &ct->repl.dst, sizeof(ct->repl.dst))
    [all...]
grp_setter.c 51 ct->repl.src.v4 = this->src;
52 ct->repl.dst.v4 = this->dst;
53 ct->repl.l3protonum = AF_INET;
67 memcpy(&ct->repl.src.v6, this->src, sizeof(uint32_t)*4);
68 memcpy(&ct->repl.dst.v6, this->dst, sizeof(uint32_t)*4);
69 ct->repl.l3protonum = AF_INET6;
82 ct->repl.l4src.all = this->sport;
83 ct->repl.l4dst.all = this->dport;
107 ct->repl.l4dst.icmp.type = rtype - 1;
109 ct->repl.l4dst.icmp.type = 255; /* -EINVAL *
    [all...]
compare.c 188 return (ct1->repl.l3protonum == ct2->repl.l3protonum);
196 return (ct1->repl.l4src.all == ct2->repl.l4src.all);
204 return (ct1->repl.l4dst.all == ct2->repl.l4dst.all);
212 if (ct1->repl.protonum != ct2->repl.protonum)
215 switch(ct1->repl.protonum) {
246 return (ct1->repl.src.v4 == ct2->repl.src.v4);
    [all...]
copy.c 27 dest->repl.src.v4 = orig->repl.src.v4;
33 dest->repl.dst.v4 = orig->repl.dst.v4;
55 memcpy(&dest->repl.src,
56 &orig->repl.src,
63 memcpy(&dest->repl.dst,
64 &orig->repl.dst,
83 dest->repl.l4src.all = orig->repl.l4src.all
    [all...]
getter.c 24 return &ct->repl.src.v4;
29 return &ct->repl.dst.v4;
44 return &ct->repl.src.v6;
49 return &ct->repl.dst.v6;
64 return &ct->repl.l4src.all;
69 return &ct->repl.l4dst.all;
79 return &ct->repl.zone;
104 return &ct->repl.l3protonum;
114 return &ct->repl.protonum;
  /external/libnl/lib/netfilter/
ct.c 119 static int ct_parse_ip(struct nfnl_ct *ct, int repl, struct nlattr *attr)
133 err = nfnl_ct_set_src(ct, repl, addr);
142 err = nfnl_ct_set_dst(ct, repl, addr);
151 err = nfnl_ct_set_src(ct, repl, addr);
160 err = nfnl_ct_set_dst(ct, repl, addr);
174 static int ct_parse_proto(struct nfnl_ct *ct, int repl, struct nlattr *attr)
183 if (!repl && tb[CTA_PROTO_NUM])
186 nfnl_ct_set_src_port(ct, repl,
189 nfnl_ct_set_dst_port(ct, repl,
194 nfnl_ct_set_icmp_id(ct, repl,
    [all...]
ct_obj.c 631 int nfnl_ct_set_src(struct nfnl_ct *ct, int repl, struct nl_addr *addr)
633 struct nfnl_ct_dir *dir = repl ? &ct->ct_repl : &ct->ct_orig;
634 int attr = repl ? CT_ATTR_REPL_SRC : CT_ATTR_ORIG_SRC;
638 int nfnl_ct_set_dst(struct nfnl_ct *ct, int repl, struct nl_addr *addr)
640 struct nfnl_ct_dir *dir = repl ? &ct->ct_repl : &ct->ct_orig;
641 int attr = repl ? CT_ATTR_REPL_DST : CT_ATTR_ORIG_DST;
645 struct nl_addr *nfnl_ct_get_src(const struct nfnl_ct *ct, int repl)
647 const struct nfnl_ct_dir *dir = repl ? &ct->ct_repl : &ct->ct_orig;
648 int attr = repl ? CT_ATTR_REPL_SRC : CT_ATTR_ORIG_SRC;
654 struct nl_addr *nfnl_ct_get_dst(const struct nfnl_ct *ct, int repl)
    [all...]
  /build/kati/testcase/
subst.mk 11 echo $(subst ,repl,str)
  /cts/tests/tests/text/src/android/text/method/cts/
QwertyKeyListenerTest.java 196 Object[] repl = content.getSpans(0, content.length(), Object.class); local
197 assertEquals(0, repl.length);
200 repl = content.getSpans(0, content.length(), Object.class);
201 assertEquals(1, repl.length);
202 assertEquals(0, content.getSpanStart(repl[0]));
203 assertEquals(content.length(), content.getSpanEnd(repl[0]));
204 assertEquals(Spannable.SPAN_EXCLUSIVE_EXCLUSIVE, content.getSpanFlags(repl[0]));
207 repl = content.getSpans(0, content.length(), Object.class);
208 assertEquals(1, repl.length);
209 assertEquals(1, content.getSpanStart(repl[0]))
    [all...]
  /build/kati/
strutil_test.go 104 repl string
110 repl: "%.o",
116 repl: "o.%",
122 repl: "%.o",
128 repl: "%.o",
134 repl: "OK",
140 repl: "XX",
146 repl: "XX",
152 repl: "XX",
157 got := substPattern(tc.pat, tc.repl, tc.in
    [all...]
strutil.go 147 func substPattern(pat, repl, str string) string {
151 return repl
171 rs := strings.SplitN(repl, "%", 2)
173 return repl
178 func substPatternBytes(pat, repl, str []byte) (pre, subst, post []byte) {
182 return repl, nil, nil
202 i = bytes.IndexByte(repl, '%')
204 return repl, nil, nil
207 return repl[:i], trimed, repl[i+1:
    [all...]
  /external/swiftshader/src/OpenGL/compiler/preprocessor/
MacroExpander.cpp 249 Token& repl = replacements->front(); local
254 repl.text = stream.str();
260 repl.text = stream.str();
277 Token& repl = replacements->at(i); local
282 repl.setAtStartOfLine(identifier.atStartOfLine());
283 repl.setHasLeadingSpace(identifier.hasLeadingSpace());
285 repl.location = identifier.location;
385 const Token& repl = macro.replacements[i]; local
386 if (repl.type != Token::IDENTIFIER)
388 replacements->push_back(repl);
    [all...]
  /external/llvm/test/MC/Mips/dsp/
invalid.s 32 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
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
re.py 148 def sub(pattern, repl, string, count=0, flags=0):
151 replacement repl. repl can be either a string or a callable;
155 return _compile(pattern, flags).sub(repl, string, count)
157 def subn(pattern, repl, string, count=0, flags=0):
161 string by the replacement repl. number is the number of
162 substitutions that were made. repl can be either a string or a
166 return _compile(pattern, flags).subn(repl, string, count)
269 repl, pattern = key
271 p = sre_parse.parse_template(repl, pattern)
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
re.py 144 def sub(pattern, repl, string, count=0, flags=0):
147 replacement repl. repl can be either a string or a callable;
151 return _compile(pattern, flags).sub(repl, string, count)
153 def subn(pattern, repl, string, count=0, flags=0):
157 string by the replacement repl. number is the number of
158 substitutions that were made. repl can be either a string or a
162 return _compile(pattern, flags).subn(repl, string, count)
255 repl, pattern = key
257 p = sre_parse.parse_template(repl, pattern)
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/idlelib/
ReplaceDialog.py 65 def _replace_expand(self, m, repl):
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)
  /prebuilts/gdb/darwin-x86/lib/python2.7/
re.py 144 def sub(pattern, repl, string, count=0, flags=0):
147 replacement repl. repl can be either a string or a callable;
151 return _compile(pattern, flags).sub(repl, string, count)
153 def subn(pattern, repl, string, count=0, flags=0):
157 string by the replacement repl. number is the number of
158 substitutions that were made. repl can be either a string or a
162 return _compile(pattern, flags).subn(repl, string, count)
253 repl, pattern = key
255 p = sre_parse.parse_template(repl, pattern
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/idlelib/
ReplaceDialog.py 65 def _replace_expand(self, m, repl):
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)
  /prebuilts/gdb/linux-x86/lib/python2.7/
re.py 144 def sub(pattern, repl, string, count=0, flags=0):
147 replacement repl. repl can be either a string or a callable;
151 return _compile(pattern, flags).sub(repl, string, count)
153 def subn(pattern, repl, string, count=0, flags=0):
157 string by the replacement repl. number is the number of
158 substitutions that were made. repl can be either a string or a
162 return _compile(pattern, flags).subn(repl, string, count)
253 repl, pattern = key
255 p = sre_parse.parse_template(repl, pattern
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/
ReplaceDialog.py 65 def _replace_expand(self, m, repl):
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)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
re.py 144 def sub(pattern, repl, string, count=0, flags=0):
147 replacement repl. repl can be either a string or a callable;
151 return _compile(pattern, flags).sub(repl, string, count)
153 def subn(pattern, repl, string, count=0, flags=0):
157 string by the replacement repl. number is the number of
158 substitutions that were made. repl can be either a string or a
162 return _compile(pattern, flags).subn(repl, string, count)
253 repl, pattern = key
255 p = sre_parse.parse_template(repl, pattern
    [all...]

Completed in 1081 milliseconds

1 2 3 4 5 6