Home | History | Annotate | Download | only in src

Lines Matching full:indexof

109     Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar), "hello ".length());
110 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar, 2), "hello ".length());
111 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar, 6), 6);
112 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar, 7), -1);
114 Assert.assertEquals(str0.indexOf('a'), -1);
115 Assert.assertEquals(str3.indexOf('a'), 0);
116 Assert.assertEquals(str3.indexOf('b'), 1);
117 Assert.assertEquals(str3.indexOf('c'), 2);
118 Assert.assertEquals(str10.indexOf('j'), 9);
119 Assert.assertEquals(str40.indexOf('a'), 0);
120 Assert.assertEquals(str40.indexOf('b'), 38);
121 Assert.assertEquals(str40.indexOf('c'), 39);
122 Assert.assertEquals(str0.indexOf('a',20), -1);
123 Assert.assertEquals(str0.indexOf('a',0), -1);
124 Assert.assertEquals(str0.indexOf('a',-1), -1);
125 Assert.assertEquals(str3.indexOf('a',0), 0);
126 Assert.assertEquals(str3.indexOf('a',1), -1);
127 Assert.assertEquals(str3.indexOf('a',1234), -1);
128 Assert.assertEquals(str3.indexOf('b',0), 1);
129 Assert.assertEquals(str3.indexOf('b',1), 1);
130 Assert.assertEquals(str3.indexOf('c',2), 2);
131 Assert.assertEquals(str10.indexOf('j',5), 9);
132 Assert.assertEquals(str10.indexOf('j',9), 9);
133 Assert.assertEquals(str40.indexOf('a',10), 10);
134 Assert.assertEquals(str40.indexOf('b',40), -1);
138 strNull.indexOf('a');
143 strNull.indexOf('a', 0);
148 strNull.indexOf('a', -1);