Home
last modified time | relevance | path

Searched refs:indexOf (Results 1 – 25 of 564) sorted by relevance

12345678910>>...23

/external/v8/test/mjsunit/
Dstring-indexof-1.js30 assertEquals(0, s.indexOf("t"));
31 assertEquals(3, s.indexOf("t", 1));
32 assertEquals(5, s.indexOf("t", 4));
33 assertEquals(1, s.indexOf("e"));
34 assertEquals(2, s.indexOf("s"));
36 assertEquals(5, s.indexOf("test", 4));
37 assertEquals(5, s.indexOf("test", 5));
38 assertEquals(10, s.indexOf("test", 6));
39 assertEquals(0, s.indexOf("test", 0));
40 assertEquals(0, s.indexOf("test", -1));
[all …]
Darray-indexing.js53 assertEquals(-1, [].indexOf(1));
54 assertEquals(-1, array.indexOf(4));
55 assertEquals(-1, array.indexOf(3, array.length));
57 assertEquals(2, array.indexOf(3));
59 assertEquals(0, array.indexOf(1, -17));
61 assertEquals(3, array.indexOf(1, -11));
63 assertEquals(3, array.indexOf(1, 1));
64 assertEquals(3, array.indexOf(1, 3));
65 assertEquals(6, array.indexOf(1, 4));
68 assertEquals(3, undef_array.indexOf(undefined));
[all …]
Ddebug-breakpoints.js70 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
76 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]") < 0);
84 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]b=2;") > 0);
90 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
91 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
97 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
98 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
99 assertTrue(Debug.showBreakPoints(g).indexOf("[B2]}") > 0);
105 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
106 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]}") > 0);
[all …]
Dfor-in-special-cases.js77 assertTrue(-1 != elements.indexOf("0"));
78 assertTrue(-1 != elements.indexOf("1"));
79 assertTrue(-1 != elements.indexOf("2"));
80 assertTrue(-1 != elements.indexOf("3"));
103 assertTrue(-1 != elements.indexOf("0"));
104 assertTrue(-1 != elements.indexOf("1"));
105 assertTrue(-1 != elements.indexOf("2"));
106 assertTrue(-1 != elements.indexOf("7"));
107 assertTrue(-1 != elements.indexOf("foo"));
108 assertTrue(-1 != elements.indexOf("bar"));
[all …]
Dstack-traces.js122 assertTrue(e.stack.indexOf(expected[i]) != -1,
127 assertEquals(e.stack.indexOf(unexpected[i]), -1,
142 assertEquals(-1, e.stack.indexOf('at new ReferenceError'),
159 assertTrue(e.stack.indexOf('at new ReferenceError') != -1,
178 assertTrue(e.stack.indexOf('<error: ReferenceError') != -1,
190 assertTrue(e.stack.indexOf('<error>') != -1,
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DXMLFormatterTest.java60 assertTrue(result.indexOf("<message>" + rb.getString("pattern") in testLocalFormat()
62 assertTrue(result.indexOf("<key>pattern</key>") > 0); in testLocalFormat()
66 assertTrue(result.indexOf("<message>" + rb.getString("msg") in testLocalFormat()
68 assertTrue(result.indexOf("<key>msg</key>") > 0); in testLocalFormat()
72 assertTrue(result.indexOf("<message>pattern {0, number}</message>") > 0); in testLocalFormat()
73 assertTrue(result.indexOf("<key>") < 0); in testLocalFormat()
78 assertTrue(result.indexOf("<message>bad key</message>") > 0); in testLocalFormat()
79 assertTrue(result.indexOf("<key>") < 0); in testLocalFormat()
96 assertTrue(output.indexOf("<record>") >= 0);
97 assertTrue(output.indexOf("<date>") >= 0);
[all …]
DSimpleFormatterTest.java65 assertTrue(str.indexOf(localeMsg) > 0); in testLocalizedFormat()
73 assertTrue(str.indexOf(localeMsg) < 0); in testLocalizedFormat()
99 assertTrue(str.indexOf(String.valueOf(cal.get(Calendar.YEAR))) >= 0);
100 assertTrue(str.indexOf("class") > 0);
101 assertTrue(str.indexOf("method") > 0);
102 assertTrue(str.indexOf("100") > 0);
103 assertTrue(str.indexOf(t.toString()) > 0);
104 assertTrue(str.indexOf(Level.FINE.getLocalizedName()) > 0);
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/
D15.5.4.6-2.js92 this.indexOf = String.prototype.indexOf;
104 …Of.length", 1, String.prototype.indexOf.length );
106 …f.length", false, delete String.prototype.indexOf.length );
125 TEST_STRING.indexOf( String.fromCharCode(u) ) );
131 TEST_STRING.indexOf( String.fromCharCode(u), void 0 ) );
138 … new TestCase( SECTION, "var foo = new MyObject('hello');foo.indexOf('h')", 0, foo.indexOf("h") );
139 … new TestCase( SECTION, "var foo = new MyObject('hello');foo.indexOf('e')", 1, foo.indexOf("e") );
140 … new TestCase( SECTION, "var foo = new MyObject('hello');foo.indexOf('l')", 2, foo.indexOf("l") );
141 … new TestCase( SECTION, "var foo = new MyObject('hello');foo.indexOf('l')", 2, foo.indexOf("l") );
142 … new TestCase( SECTION, "var foo = new MyObject('hello');foo.indexOf('o')", 4, foo.indexOf("o") );
[all …]
D15.5.4.6-1.js83 TEST_STRING.indexOf( String.fromCharCode(i), 0 ) );
90 TEST_STRING.indexOf( String.fromCharCode(i), k ) );
97 TEST_STRING.indexOf( String.fromCharCode(i), k+1 ) );
106 TEST_STRING.indexOf( (String.fromCharCode(i)+
118 TEST_STRING.indexOf( (String.fromCharCode(i)+
129 TEST_STRING.indexOf( (String.fromCharCode(i)+
135 …Case( SECTION, "String.indexOf(" +TEST_STRING + ", 0 )", 0, TEST_STRING.indexOf( TEST_STRING, 0 )…
136 …ase( SECTION, "String.indexOf(" +TEST_STRING + ", 1 )", -1, TEST_STRING.indexOf( TEST_STRING, 1 )…
/external/proguard/src/proguard/util/
DListUtil.java80 nextIndex = string.indexOf('\'', index + 1); in commaSeparatedList()
91 nextIndex = string.indexOf(',', index); in commaSeparatedList()
131 string.indexOf(' ') >= 0 || in quotedString()
132 string.indexOf('@') >= 0 || in quotedString()
133 string.indexOf('{') >= 0 || in quotedString()
134 string.indexOf('}') >= 0 || in quotedString()
135 string.indexOf('(') >= 0 || in quotedString()
136 string.indexOf(')') >= 0 || in quotedString()
137 string.indexOf(':') >= 0 || in quotedString()
138 string.indexOf(';') >= 0 || in quotedString()
[all …]
/external/doclava/res/assets/templates/assets/
Ddoclava-developer-docs.js30 if ((agent.indexOf("mobile") != -1) || // android, iphone, ipod
31 (agent.indexOf("blackberry") != -1) ||
32 (agent.indexOf("webos") != -1) ||
33 (agent.indexOf("mini") != -1)) { // opera mini browsers
37 } else if (agent.indexOf("msie 6") != -1) {
106 var index = document.cookie.indexOf(myCookie);
109 var valEnd = document.cookie.indexOf(";", valStart);
132 if (location.href.indexOf("/reference/") != -1) {
134 } else if (location.href.indexOf("/guide/") != -1) {
136 } else if (location.href.indexOf("/resources/") != -1) {
[all …]
/external/v8/test/mjsunit/compiler/
Dregress-stacktrace-methods.js57 var p3 = stack.indexOf("at Hest.three");
58 var p2 = stack.indexOf("at Svin.two");
59 var p1 = stack.indexOf("at Hest.one");
65 assertTrue(stack.indexOf("38:56") != -1);
66 assertTrue(stack.indexOf("34:51") != -1);
67 assertTrue(stack.indexOf("36:38") != -1);
68 assertTrue(stack.indexOf("54:5") != -1);
/external/apache-xml/src/main/java/org/apache/xml/utils/
DXMLStringDefault.java407 public int indexOf(int ch) in indexOf() method in XMLStringDefault
409 return m_str.indexOf(ch); in indexOf()
440 public int indexOf(int ch, int fromIndex) in indexOf() method in XMLStringDefault
442 return m_str.indexOf(ch, fromIndex); in indexOf()
510 public int indexOf(String str) in indexOf() method in XMLStringDefault
512 return m_str.indexOf(str); in indexOf()
532 public int indexOf(XMLString str) in indexOf() method in XMLStringDefault
534 return m_str.indexOf(str.toString()); in indexOf()
563 public int indexOf(String str, int fromIndex) in indexOf() method in XMLStringDefault
565 return m_str.indexOf(str, fromIndex); in indexOf()
DXMLString.java344 public abstract int indexOf(int ch); in indexOf() method
374 public abstract int indexOf(int ch, int fromIndex); in indexOf() method
435 public abstract int indexOf(String str); in indexOf() method
454 public abstract int indexOf(XMLString str); in indexOf() method
482 public abstract int indexOf(String str, int fromIndex); in indexOf() method
/external/proguard/src/proguard/obfuscate/
DMappingReader.java113 int arrowIndex = line.indexOf("->"); in processClassMapping()
119 int colonIndex = line.indexOf(':', arrowIndex + 2); in processClassMapping()
148 int colonIndex1 = line.indexOf(':'); in processClassMemberMapping()
149 int colonIndex2 = colonIndex1 < 0 ? -1 : line.indexOf(':', colonIndex1 + 1); in processClassMemberMapping()
150 int spaceIndex = line.indexOf(' ', colonIndex2 + 2); in processClassMemberMapping()
151 int argumentIndex1 = line.indexOf('(', spaceIndex + 1); in processClassMemberMapping()
152 int argumentIndex2 = argumentIndex1 < 0 ? -1 : line.indexOf(')', argumentIndex1 + 1); in processClassMemberMapping()
153 …int arrowIndex = line.indexOf("->", Math.max(spaceIndex, argumentInd… in processClassMemberMapping()
/external/jdiff/src/jdiff/
DRootDocToXML.java688 if (rct != null && rct.indexOf(excludeTag) != -1) { in shownElement()
818 rct.indexOf(Comments.placeHolderText) == -1 && in addDocumentation()
819 rct.indexOf("InsertOtherCommentsHere") == -1) { in addDocumentation()
832 if (checkForAts && firstSentence.indexOf("@") != -1 && in addDocumentation()
833 firstSentence.indexOf("@link") == -1) { in addDocumentation()
927 rct.indexOf(Comments.placeHolderText) == -1 && in addPkgDocumentation()
928 rct.indexOf("InsertOtherCommentsHere") == -1) { in addPkgDocumentation()
983 int ellipsis = text.indexOf(". . ."); // Handles one instance of this in endOfFirstSentence()
994 index = minIndex(index, text.indexOf("? ", fromindex)); in endOfFirstSentence()
995 index = minIndex(index, text.indexOf("?\t", fromindex)); in endOfFirstSentence()
[all …]
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
DPKIXNameConstraintValidator.java637 String sub = email.substring(email.indexOf('@') + 1); in emailIsConstrained()
639 if (constraint.indexOf('@') != -1) in emailIsConstrained()
757 if (email1.indexOf('@') != -1) in unionEmail()
759 String _sub = email1.substring(email1.indexOf('@') + 1); in unionEmail()
761 if (email2.indexOf('@') != -1) in unionEmail()
803 if (email2.indexOf('@') != -1) in unionEmail()
805 String _sub = email2.substring(email1.indexOf('@') + 1); in unionEmail()
850 if (email2.indexOf('@') != -1) in unionEmail()
852 String _sub = email2.substring(email1.indexOf('@') + 1); in unionEmail()
895 if (email1.indexOf('@') != -1) in unionURI()
[all …]
/external/apache-harmony/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/
DInvalidPreferencesFormatExceptionTest.java49 assertTrue(e.getMessage().indexOf("root") < 0); in testInvalidPreferencesFormatExceptionStringThrowable()
50 assertTrue(e.getMessage().indexOf(t.getClass().getName()) < 0); in testInvalidPreferencesFormatExceptionStringThrowable()
51 assertTrue(e.getMessage().indexOf("msg") >= 0); in testInvalidPreferencesFormatExceptionStringThrowable()
62 assertTrue(e.getMessage().indexOf("root") >= 0);
63 assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0);
/external/webkit/Source/WebCore/inspector/front-end/
DCSSCompletions.js48 while (firstIndex < this._values.length && this._values[firstIndex].indexOf(prefix) === 0)
72 if (this._values[middleIndex].indexOf(prefix) === 0) {
85 while (foundIndex && this._values[foundIndex - 1].indexOf(prefix) === 0)
111 var index = this._values.indexOf(str);
121 var j = propertiesWithPrefix.indexOf(str);
/external/proguard/src/proguard/classfile/util/
DExternalTypeEnumeration.java64 index = descriptor.indexOf(ClassConstants.EXTERNAL_METHOD_ARGUMENTS_OPEN) + 1; in reset()
84 index = descriptor.indexOf(ClassConstants.EXTERNAL_METHOD_ARGUMENTS_SEPARATOR, in nextType()
90 index = descriptor.indexOf(ClassConstants.EXTERNAL_METHOD_ARGUMENTS_CLOSE, in nextType()
104 …return descriptor.substring(0, descriptor.indexOf(ClassConstants.EXTERNAL_METHOD_ARGUMENTS_OPEN)).… in methodName()
/external/doclava/src/com/google/doclava/
DDocFile.java123 if (outfile.indexOf("sdk/") != -1) { in writePage()
125 if ((outfile.indexOf("index.html") != -1) && (outfile.indexOf("preview/") == -1)) { in writePage()
130 } else if (outfile.indexOf("guide/") != -1) { in writePage()
133 } else if ((outfile.indexOf("resources/") != -1) || (outfile.indexOf("training/") != -1)) { in writePage()
/external/nist-sip/java/gov/nist/javax/sip/stack/
DHopImpl.java79 if(host.indexOf(":") >= 0) in HopImpl()
80 if(host.indexOf("[") < 0) in HopImpl()
99 int brack = hop.indexOf(']'); in HopImpl()
100 int colon = hop.indexOf(':',brack); in HopImpl()
101 int slash = hop.indexOf('/',colon); in HopImpl()
/external/bouncycastle/src/main/java/org/bouncycastle/util/
DIPAddress.java54 && (pos = temp.indexOf('.', start)) > start) in isValidIPv4()
82 int index = address.indexOf("/"); in isValidIPv4WithNetmask()
92 int index = address.indexOf("/"); in isValidIPv6WithNetmask()
136 && (pos = temp.indexOf(':', start)) >= start) in isValidIPv6()
147 if (pos == (temp.length() - 1) && value.indexOf('.') > 0) in isValidIPv6()
/external/guava/src/com/google/common/collect/
DImmutableSortedAsList.java41 return set.indexOf(target) >= 0; in contains()
44 @Override public int indexOf(Object target) { in indexOf() method in ImmutableSortedAsList
45 return set.indexOf(target); in indexOf()
49 return set.indexOf(target); in lastIndexOf()
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/sasl/
DAuthenticationExceptionTest.java125 .indexOf(toS) != -1)); in testAuthenticationException06()
144 .indexOf(msgs[i]) != -1); in testAuthenticationException07()
147 .indexOf(toS) != -1); in testAuthenticationException07()
172 .indexOf(msgs[i]) >= 0); in testToString()
176 assertTrue("Incorrect result string", eT.toString().indexOf( in testToString()
180 .indexOf(th[j].toString()) >= 0); in testToString()

12345678910>>...23