Home
last modified time | relevance | path

Searched refs:substring (Results 1 – 25 of 1507) sorted by relevance

12345678910>>...61

/external/libxml2/test/XPath/expr/
Dstrings16 substring("12345",2,3)
17 substring("12345",2)
18 substring("12345",-4)
19 substring("12345",3.4)
20 substring("12345",3.6)
21 substring("12345",1.5,2.6)
22 substring("12345",2.2,2.2)
23 substring("12345",0,3)
24 substring("12345",-8,10)
25 substring("12345",4,-10)
[all …]
/external/v8/test/mjsunit/
Dstring-slices.js41 var s1 = s.substring(1);
50 assertEquals(s.substring(s.length - 1), s.substr(-1));
51 assertEquals(s.substring(s.length - 1), s.substr(-1.2));
52 assertEquals(s.substring(s.length - 1), s.substr(-1.7));
53 assertEquals(s.substring(s.length - 2), s.substr(-2));
54 assertEquals(s.substring(s.length - 2), s.substr(-2.3));
55 assertEquals(s.substring(s.length - 2, s.length - 1), s.substr(-2, 1));
76 var z = x.substring(i, i+j);
92 var z = x.substring(i, i + j);
107 var z = x.substring(i % xl);
[all …]
Dsubstr.js39 var s1 = s.substring(1);
48 assertEquals(s.substring(s.length - 1), s.substr(-1));
49 assertEquals(s.substring(s.length - 1), s.substr(-1.2));
50 assertEquals(s.substring(s.length - 1), s.substr(-1.7));
51 assertEquals(s.substring(s.length - 2), s.substr(-2));
52 assertEquals(s.substring(s.length - 2), s.substr(-2.3));
53 assertEquals(s.substring(s.length - 2, s.length - 1), s.substr(-2, 1));
74 var z = x.substring(i, i+j);
92 var z = x.substring(i, i + j);
115 var z = x.substring(i % xl);
[all …]
Ddebug-liveedit-diff.js45 assertEquals(s1.substring(pos1, pos1 + similar_length),
46 s2.substring(pos2, pos2 + similar_length));
48 print(s1.substring(pos1, pos1 + similar_length));
52 print(s1.substring(pos1, diff_array[i + 1]));
54 print(s2.substring(pos2, diff_array[i + 2]));
63 assertEquals(s1.substring(pos1, pos1 + similar_length),
64 s2.substring(pos2, pos2 + similar_length));
66 print(s1.substring(pos1, pos1 + similar_length));
Dstring-indexof-2.js56 var substring = lipsum.substring(i, i + len); variable
59 index = lipsum.indexOf(substring, index + 1);
62 assertEquals(lipsum.substring(index, index + len), substring,
/external/libxml2/result/XPath/expr/
Dstrings63 Expression: substring("12345",2,3)
67 Expression: substring("12345",2)
71 Expression: substring("12345",-4)
75 Expression: substring("12345",3.4)
79 Expression: substring("12345",3.6)
83 Expression: substring("12345",1.5,2.6)
87 Expression: substring("12345",2.2,2.2)
91 Expression: substring("12345",0,3)
95 Expression: substring("12345",-8,10)
99 Expression: substring("12345",4,-10)
[all …]
/external/libxml2/win32/
Dconfigure.js191 verCvs = "CVS" + s.substring(iDot + 1, iSlash);
213 verMajor = s.substring(s.indexOf("=") + 1, s.length)
216 verMinor = s.substring(s.indexOf("=") + 1, s.length)
219 verMicro = s.substring(s.indexOf("=") + 1, s.length)
222 verMicroSuffix = s.substring(s.indexOf("=") + 1, s.length)
449 opt = arg.substring(0, arg.indexOf("="));
451 opt = arg.substring(0, arg.indexOf(":"));
454 withTrio = strToBool(arg.substring(opt.length + 1, arg.length));
456 withThreads = arg.substring(opt.length + 1, arg.length);
458 withFtp = strToBool(arg.substring(opt.length + 1, arg.length));
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1GeneralizedTime.java184 return stime.substring(0, stime.length() - 1) + "GMT+00:00"; in getTime()
192 return stime.substring(0, signPos) in getTime()
194 + stime.substring(signPos, signPos + 3) in getTime()
196 + stime.substring(signPos + 3); in getTime()
204 return stime.substring(0, signPos) in getTime()
206 + stime.substring(signPos) in getTime()
321 String frac = d.substring(14); in getDate()
334 frac = frac.substring(0, 4) + frac.substring(index); in getDate()
335 d = d.substring(0, 14) + frac; in getDate()
339 frac = frac.substring(0, index) + "00" + frac.substring(index); in getDate()
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXNumber.java298 s = s.substring(0, len - 2); in str()
311 return s.substring(0, len - 1); in str()
316 int exp = Integer.parseInt(s.substring(e + 1)); in str()
322 s = s.substring(1); in str()
332 return sign + s.substring(0, 1) + s.substring(2, e) in str()
340 return sign + s.substring(0, 1) + s.substring(2, 2 + exp) + "." in str()
341 + s.substring(2 + exp, e); in str()
343 return sign + "0." + zeros(-1 - exp) + s.substring(0, 1) in str()
344 + s.substring(2, e); in str()
/external/easymock/src/org/easymock/internal/matchers/
DContains.java26 private final String substring; field in Contains
28 public Contains(String substring) { in Contains() argument
29 this.substring = substring; in Contains()
34 && ((String) actual).indexOf(substring) >= 0; in matches()
38 buffer.append("contains(\"" + substring + "\")"); in appendTo()
/external/mockito/src/org/mockito/internal/matchers/
DContains.java17 private final String substring; field in Contains
19 public Contains(String substring) { in Contains() argument
20 this.substring = substring; in Contains()
24 return actual != null && ((String) actual).contains(substring); in matches()
28 description.appendText("contains(\"" + substring + "\")"); in describeTo()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/
DTrans.java97 buf.append(line.substring(0, right+1)); in trans()
98 if (DEBUG) System.out.println("*S:" + line.substring(0, right+1)); in trans()
105 buf.append(trans.transliterate(line.substring(right+1))); in trans()
106 if (DEBUG) System.out.println("T:" + line.substring(right+1)); in trans()
111 buf.append(trans.transliterate(line.substring(right+1, left))); in trans()
112 if (DEBUG) System.out.println("T:" + line.substring(right+1, left)); in trans()
116 buf.append(line.substring(left)); in trans()
117 if (DEBUG) System.out.println("S:" + line.substring(left)); in trans()
120 buf.append(line.substring(left, right+1)); in trans()
121 if (DEBUG) System.out.println("S:" + line.substring(left, right+1)); in trans()
/external/proguard/src/proguard/obfuscate/
DMappingReader.java126 String className = line.substring(0, arrowIndex).trim(); in processClassMapping()
127 String newClassName = line.substring(arrowIndex + 2, colonIndex).trim(); in processClassMapping()
162 String type = line.substring(colonIndex2 + 1, spaceIndex).trim(); in processClassMemberMapping()
163 …String name = line.substring(spaceIndex + 1, argumentIndex1 >= 0 ? argumentIndex1 : arrowIndex)… in processClassMemberMapping()
164 String newName = line.substring(arrowIndex + 2).trim(); in processClassMemberMapping()
183 firstLineNumber = Integer.parseInt(line.substring(0, colonIndex1).trim()); in processClassMemberMapping()
184 … lastLineNumber = Integer.parseInt(line.substring(colonIndex1 + 1, colonIndex2).trim()); in processClassMemberMapping()
187 String arguments = line.substring(argumentIndex1 + 1, argumentIndex2).trim(); in processClassMemberMapping()
/external/smali/util/src/main/java/org/jf/util/
DNumberUtils.java89 asFloat = asFloat.substring(0, zeros) + asFloat.substring(exponent); in isLikelyFloat()
93 asFloat = asFloat.substring(0, nines) + asFloat.substring(exponent); in isLikelyFloat()
131 asDouble = asDouble.substring(0, zeros) + asDouble.substring(exponent); in isLikelyDouble()
135 asDouble = asDouble.substring(0, nines) + asDouble.substring(exponent); in isLikelyDouble()
/external/hamcrest/library/src/org/hamcrest/text/
DStringContains.java12 public StringContains(String substring) { in StringContains() argument
13 super(substring); in StringContains()
17 return s.indexOf(substring) >= 0; in evalSubstringOf()
25 public static Matcher<String> containsString(String substring) { in containsString() argument
26 return new StringContains(substring); in containsString()
DStringEndsWith.java12 public StringEndsWith(String substring) { in StringEndsWith() argument
13 super(substring); in StringEndsWith()
17 return s.endsWith(substring); in evalSubstringOf()
25 public static Matcher<String> endsWith(String substring) { in endsWith() argument
26 return new StringEndsWith(substring); in endsWith()
DStringStartsWith.java12 public StringStartsWith(String substring) { in StringStartsWith() argument
13 super(substring); in StringStartsWith()
17 return s.startsWith(substring); in evalSubstringOf()
25 public static Matcher<String> startsWith(String substring) { in startsWith() argument
26 return new StringStartsWith(substring); in startsWith()
DSubstringMatcher.java11 protected final String substring; field in SubstringMatcher
13 protected SubstringMatcher(final String substring) { in SubstringMatcher() argument
14 this.substring = substring; in SubstringMatcher()
25 .appendValue(substring); in describeTo()
/external/junit/src/org/junit/internal/matchers/
DStringContains.java12 public StringContains(String substring) { in StringContains() argument
13 super(substring); in StringContains()
18 return s.indexOf(substring) >= 0; in evalSubstringOf()
27 public static Matcher<String> containsString(String substring) { in containsString() argument
28 return new StringContains(substring); in containsString()
DSubstringMatcher.java7 protected final String substring; field in SubstringMatcher
9 protected SubstringMatcher(final String substring) { in SubstringMatcher() argument
10 this.substring = substring; in SubstringMatcher()
22 .appendValue(substring); in describeTo()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DIPAddress.java65 octet = Integer.parseInt(temp.substring(start, pos)); in isValidIPv4()
86 String mask = address.substring(index + 1); in isValidIPv4WithNetmask()
88 return (index > 0) && isValidIPv4(address.substring(0, index)) in isValidIPv4WithNetmask()
96 String mask = address.substring(index + 1); in isValidIPv6WithNetmask()
98 return (index > 0) && (isValidIPv6(address.substring(0, index)) in isValidIPv6WithNetmask()
148 String value = temp.substring(start, pos); in isValidIPv6()
163 octet = Integer.parseInt(temp.substring(start, pos), 16); in isValidIPv6()
/external/apache-xml/src/main/java/org/apache/xpath/compiler/
DLexer.java158 addToTokenQueue(pat.substring(startSubstring, i)); in tokenize()
168 addToTokenQueue(pat.substring(startSubstring, i + 1)); in tokenize()
192 addToTokenQueue(pat.substring(startSubstring, i)); in tokenize()
202 addToTokenQueue(pat.substring(startSubstring, i + 1)); in tokenize()
228 addToTokenQueue(pat.substring(startSubstring, i)); in tokenize()
278 addToTokenQueue(pat.substring(startSubstring, i)); in tokenize()
315 addToTokenQueue(pat.substring(i, i + 1)); in tokenize()
325 addToTokenQueue(pat.substring(startSubstring, i - 1)); in tokenize()
333 addToTokenQueue(pat.substring(i - 1, i + 1)); in tokenize()
369 addToTokenQueue(pat.substring(startSubstring, nChars)); in tokenize()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFRule.java206 sbuf.append(description.substring(0, brack1)); in makeRules()
208 sbuf.append(description.substring(brack2 + 1)); in makeRules()
217 sbuf.append(description.substring(0, brack1)); in makeRules()
218 sbuf.append(description.substring(brack1 + 1, brack2)); in makeRules()
220 sbuf.append(description.substring(brack2 + 1)); in makeRules()
278 descriptor = description.substring(0, p); in parseRuleDescriptor()
283 description = description.substring(p); in parseRuleDescriptor()
396 description = description.substring(1); in parseRuleDescriptor()
432 String type = this.ruleText.substring(pluralRuleStart + 2, endType); in extractSubstitutions()
444 ruleText.substring(endType + 1, pluralRuleEnd)); in extractSubstitutions()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFRule.java207 sbuf.append(description.substring(0, brack1)); in makeRules()
209 sbuf.append(description.substring(brack2 + 1)); in makeRules()
218 sbuf.append(description.substring(0, brack1)); in makeRules()
219 sbuf.append(description.substring(brack1 + 1, brack2)); in makeRules()
221 sbuf.append(description.substring(brack2 + 1)); in makeRules()
279 descriptor = description.substring(0, p); in parseRuleDescriptor()
284 description = description.substring(p); in parseRuleDescriptor()
397 description = description.substring(1); in parseRuleDescriptor()
433 String type = this.ruleText.substring(pluralRuleStart + 2, endType); in extractSubstitutions()
445 ruleText.substring(endType + 1, pluralRuleEnd)); in extractSubstitutions()
[all …]
/external/proguard/src/proguard/util/
DClassNameParser.java76 new OrMatcher(parse(regularExpression.substring(index + 5)), in parse()
90 createAnyTypeMatcher(parse(regularExpression.substring(index + 5))); in parse()
104 parse(regularExpression.substring(index + 2))); in parse()
118 parse(regularExpression.substring(index + 1))); in parse()
132 parse(regularExpression.substring(index + 1))); in parse()
146 parse(regularExpression.substring(index + 1))); in parse()
154 … (StringMatcher)new FixedStringMatcher(regularExpression.substring(0, index), nextMatcher) : in parse()

12345678910>>...61