/external/v8/test/mjsunit/ |
string-lastindexof.js | 35 assertEquals(10, s.lastIndexOf("test", Infinity), "tinf"); 36 assertEquals(10, s.lastIndexOf("test", MAX_DOUBLE), "tmaxdouble"); 37 assertEquals(10, s.lastIndexOf("test", MAX_SMI), "tmaxsmi"); 38 assertEquals(10, s.lastIndexOf("test", s.length * 2), "t2length"); 39 assertEquals(10, s.lastIndexOf("test", 15), "t15"); 40 assertEquals(10, s.lastIndexOf("test", 14), "t14"); 41 assertEquals(10, s.lastIndexOf("test", 10), "t10"); 42 assertEquals(5, s.lastIndexOf("test", 9), "t9"); 43 assertEquals(5, s.lastIndexOf("test", 6), "t6"); 44 assertEquals(5, s.lastIndexOf("test", 5), "t5") [all...] |
array-indexing.js | 117 // Array.prototype.lastIndexOf. 121 assertEquals(-1, [].lastIndexOf(1)); 122 assertEquals(-1, array.lastIndexOf(1, -17)); 124 assertEquals(9, array.lastIndexOf(1)); 126 assertEquals(9, array.lastIndexOf(1, array.length)); 128 assertEquals(0, array.lastIndexOf(1, 2)); 129 assertEquals(3, array.lastIndexOf(1, 4)); 130 assertEquals(3, array.lastIndexOf(1, 3)); 132 assertEquals(0, array.lastIndexOf(1, -11)); 135 assertEquals(7, undef_array.lastIndexOf(undefined)) [all...] |
/libcore/luni/src/main/java/java/net/ |
DefaultFileNameMap.java | 31 int lastCharInExtension = filename.lastIndexOf('#'); 35 int firstCharInExtension = filename.lastIndexOf('.') + 1; 37 if (firstCharInExtension > filename.lastIndexOf('/')) {
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_6/Array/ |
regress-310425-01.js | 39 var summary = 'Array.indexOf/lastIndexOf edge cases'; 47 actual = [].lastIndexOf(undefined, -1); 57 actual = x.lastIndexOf(1);
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_5/String/ |
regress-107771.js | 43 k = str.lastIndexOf('/'); 49 k = str.lastIndexOf('/'); 56 k = str.lastIndexOf('/'); 63 k = str.lastIndexOf('/'); 70 k = str.lastIndexOf('/');
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/String/ |
match-002.js | 65 s.lastIndexOf("0"), 75 s.lastIndexOf("0"), 78 re.lastIndex = s.lastIndexOf("0"); 82 s.lastIndexOf("0"), 84 s.lastIndexOf("0"), 87 re.lastIndex = s.lastIndexOf("0") + 1; 91 s.lastIndexOf("0") +1, 93 s.lastIndexOf("0"),
|
match-003.js | 79 re.lastIndex = s.lastIndexOf("0"); 83 "re = "+ re +"; re.lastIndex = " + s.lastIndexOf("0"), 87 re.lastIndex = s.lastIndexOf("0") + 1; 91 "re = " +re+ "; re.lastIndex = " + (s.lastIndexOf("0") +1),
|
/frameworks/base/core/java/com/android/internal/util/ |
State.java | 71 int lastDollar = name.lastIndexOf('$');
|
/libcore/dalvik/src/main/java/dalvik/system/ |
DalvikLogging.java | 43 int lastPeriod = loggerName.lastIndexOf(".");
|
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
XMLStringDefault.java | 460 public int lastIndexOf(int ch) 462 return m_str.lastIndexOf(ch); 488 public int lastIndexOf(int ch, int fromIndex) 490 return m_str.lastIndexOf(ch, fromIndex); 586 public int lastIndexOf(String str) 588 return m_str.lastIndexOf(str); 611 public int lastIndexOf(String str, int fromIndex) 613 return m_str.lastIndexOf(str, fromIndex);
|
XMLString.java | 391 public abstract int lastIndexOf(int ch); 416 public abstract int lastIndexOf(int ch, int fromIndex); 502 public abstract int lastIndexOf(String str); 524 public abstract int lastIndexOf(String str, int fromIndex);
|
/frameworks/base/core/java/android/webkit/ |
MimeTypeMap.java | 45 int fragment = url.lastIndexOf('#'); 50 int query = url.lastIndexOf('?'); 55 int filenamePos = url.lastIndexOf('/'); 63 int dotPos = filename.lastIndexOf('.');
|
/frameworks/base/telephony/java/com/android/internal/telephony/cat/ |
CatLog.java | 30 Log.d("CAT", className.substring(className.lastIndexOf('.') + 1) + ": "
|
/packages/apps/Email/src/org/apache/commons/io/filefilter/ |
AbstractFileFilter.java | 63 int period = name.lastIndexOf('.');
|
/libcore/luni/src/test/java/libcore/java/util/ |
OldAndroidArrayListTest.java | 52 assertEquals(4, array.lastIndexOf(new Integer(1))); 54 assertTrue(array.lastIndexOf(new Integer(5)) < 0); 68 assertEquals(2, array.lastIndexOf(new Integer(1))); 70 assertTrue(array.lastIndexOf(new Integer(5)) < 0); 77 assertTrue(array.lastIndexOf(new Integer(5)) < 0);
|
/external/javassist/src/main/javassist/compiler/ast/ |
ASTree.java | 56 return name.substring(name.lastIndexOf('.') + 1);
|
/external/jmonkeyengine/engine/src/core/com/jme3/asset/ |
AssetKey.java | 59 int idx = name.lastIndexOf('.'); 62 idx = name.substring(0, idx).lastIndexOf('.'); 64 idx = name.lastIndexOf('.'); 74 int idx = name.lastIndexOf('/');
|
/frameworks/support/v4/java/android/support/v4/util/ |
DebugUtils.java | 34 int end = simpleName.lastIndexOf('.');
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/ |
15.5.4.7-1.js | 24 ECMA Section: 15.5.4.7 String.prototype.lastIndexOf( searchString, pos) 34 When the lastIndexOf method is called with two arguments searchString and 51 Note that the lastIndexOf function is intentionally generic; it does not require that its this value be a 60 var TITLE = "String.protoype.lastIndexOf"; 76 "String.lastIndexOf(" +String.fromCharCode(i)+ ", 0)", 78 TEST_STRING.lastIndexOf( String.fromCharCode(i), 0 ) ); 83 "String.lastIndexOf("+String.fromCharCode(i)+ ", "+ k +")", 85 TEST_STRING.lastIndexOf( String.fromCharCode(i), k ) ); 90 "String.lastIndexOf("+String.fromCharCode(i)+ ", "+k+1+")", 92 TEST_STRING.lastIndexOf( String.fromCharCode(i), k+1 ) ) [all...] |
/external/dexmaker/src/main/java/com/google/dexmaker/ |
AppDataDirGuesser.java | 53 int index = result.lastIndexOf('['); 66 int end = potential.lastIndexOf(".apk");
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
ListLastIndexOfTester.java | 27 * A generic JUnit test which tests {@code lastIndexOf()} operations on a list. 37 return getList().lastIndexOf(o); 41 return "lastIndexOf"; 51 "lastIndexOf(duplicate) should return index of last occurrence", 52 getNumElements() / 2, getList().lastIndexOf(samples.e0));
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
BytesTest.java | 111 assertEquals(-1, Bytes.lastIndexOf(EMPTY, (byte) 1)); 112 assertEquals(-1, Bytes.lastIndexOf(ARRAY1, (byte) 2)); 113 assertEquals(-1, Bytes.lastIndexOf(ARRAY234, (byte) 1)); 114 assertEquals(0, Bytes.lastIndexOf( 116 assertEquals(0, Bytes.lastIndexOf(ARRAY234, (byte) 2)); 117 assertEquals(1, Bytes.lastIndexOf(ARRAY234, (byte) 3)); 118 assertEquals(2, Bytes.lastIndexOf(ARRAY234, (byte) 4)); 119 assertEquals(3, Bytes.lastIndexOf(
|
BooleansTest.java | 82 assertEquals(-1, Booleans.lastIndexOf(EMPTY, false)); 83 assertEquals(-1, Booleans.lastIndexOf(ARRAY_FALSE, true)); 84 assertEquals(-1, Booleans.lastIndexOf(ARRAY_FALSE_FALSE, true)); 85 assertEquals(0, Booleans.lastIndexOf(ARRAY_FALSE, false)); 86 assertEquals(0, Booleans.lastIndexOf(ARRAY_FALSE_TRUE, false)); 87 assertEquals(1, Booleans.lastIndexOf(ARRAY_FALSE_TRUE, true)); 88 assertEquals(2, Booleans.lastIndexOf(new boolean[] {false, true, true}, true));
|
/development/tools/apkcheck/src/com/android/apkcheck/ |
TypeUtils.java | 106 int start = typeName.lastIndexOf("."); 118 int end = typeName.lastIndexOf("."); 210 int lastDot = typeName.lastIndexOf('.'); 231 nextDot = typeName.lastIndexOf('.', nextDot-1); 270 int gtIndex = str.lastIndexOf('>');
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
StringBufferTest.java | 561 * @tests {@link java.lang.StringBuffer#lastIndexOf(String, int)} 567 assertEquals(0, sb.lastIndexOf("0")); 568 assertEquals(0, sb.lastIndexOf("012")); 569 assertEquals(-1, sb.lastIndexOf("02")); 570 assertEquals(8, sb.lastIndexOf("89")); 572 assertEquals(0, sb.lastIndexOf("0"), 0); 573 assertEquals(0, sb.lastIndexOf("012"), 0); 574 assertEquals(-1, sb.lastIndexOf("02"), 0); 575 assertEquals(8, sb.lastIndexOf("89"), 0); 577 assertEquals(-1, sb.lastIndexOf("0"), 5) [all...] |