Lines Matching refs:next

38             new JSONTokener(null).next();  in testNulls()
44 new JSONTokener(null).next(3); in testNulls()
50 new JSONTokener(null).next('A'); in testNulls()
108 assertEquals('\0', new JSONTokener("").next()); in testEmptyString()
110 new JSONTokener("").next(3); in testEmptyString()
115 new JSONTokener("").next('A'); in testEmptyString()
141 assertEquals('A', abcdeTokener.next()); in testCharacterNavigation()
142 assertEquals('B', abcdeTokener.next('B')); in testCharacterNavigation()
143 assertEquals("CD", abcdeTokener.next(2)); in testCharacterNavigation()
145 abcdeTokener.next(2); in testCharacterNavigation()
150 assertEquals('\0', abcdeTokener.next()); in testCharacterNavigation()
154 assertEquals('E', abcdeTokener.next()); in testCharacterNavigation()
160 abcTokener.next(); in testBackNextAndMore()
161 abcTokener.next(); in testBackNextAndMore()
163 abcTokener.next(); in testBackNextAndMore()
167 abcTokener.next(); in testBackNextAndMore()
173 assertEquals('A', abcTokener.next()); in testBackNextAndMore()
178 assertEquals('A', abcdTokener.next('A')); in testNextMatching()
180 abcdTokener.next('C'); // although it failed, this op consumes a character of input in testNextMatching()
184 assertEquals('C', abcdTokener.next('C')); in testNextMatching()
185 assertEquals('D', abcdTokener.next('D')); in testNextMatching()
187 abcdTokener.next('E'); in testNextMatching()
195 assertEquals("", abcdeTokener.next(0)); in testNextN()
197 abcdeTokener.next(7); in testNextN()
201 assertEquals("ABC", abcdeTokener.next(3)); in testNextN()
203 abcdeTokener.next(4); in testNextN()
211 tokener.next(3); in testNextNWithAllRemaining()
213 tokener.next(3); in testNextNWithAllRemaining()
223 tokener.next(5); in testNext0()
224 tokener.next(); in testNext0()
226 tokener.next(0); in testNext0()
348 tokener.next(); in testNextString()
349 assertEquals('\'', tokener.next()); in testNextString()
351 tokener.next(); in testNextString()
352 assertEquals('\'', tokener.next()); in testNextString()
354 tokener.next(); in testNextString()
355 assertEquals('"', tokener.next()); in testNextString()
368 tokener.next(); in testNextStringNoDelimiter()
369 tokener.next(); in testNextStringNoDelimiter()
371 tokener.next('\''); in testNextStringNoDelimiter()
437 assertEquals('\r', tokener.next()); in testNextTo()
439 assertEquals('\n', tokener.next()); in testNextTo()
441 assertEquals('\r', tokener.next()); in testNextTo()
442 assertEquals('\n', tokener.next()); in testNextTo()
448 assertEquals('D', tokener.next()); in testNextTo()
450 assertEquals('E', tokener.next()); in testNextTo()
452 assertEquals('F', tokener.next()); in testNextTo()
458 assertEquals('D', tokener.next()); in testNextTo()
486 assertEquals(message, '\n', tokener.next()); in testNextToDoesntStopOnNull()
494 assertEquals(message, '\0', tokener.next()); in testNextToConsumesNull()
501 assertEquals('D', tokener.next()); in testSkipPast()
503 assertEquals('\0', tokener.next()); in testSkipPast()
507 assertEquals('\0', tokener.next()); in testSkipPast()
511 assertEquals('\0', tokener.next()); in testSkipPast()
515 assertEquals('\0', tokener.next()); in testSkipPast()
516 assertEquals('A', tokener.next()); in testSkipPast()
520 assertEquals('\0', tokener.next()); in testSkipPast()
524 assertEquals('\0', tokener.next()); in testSkipPast()
528 assertEquals('\0', tokener.next()); in testSkipPast()
532 assertEquals('D', tokener.next()); in testSkipPast()
534 assertEquals('D', tokener.next()); in testSkipPast()
536 assertEquals('D', tokener.next()); in testSkipPast()
549 assertEquals('A', tokener.next()); in testSkipTo()
551 assertEquals('D', tokener.next()); in testSkipTo()
553 assertEquals('E', tokener.next()); in testSkipTo()
555 assertEquals('F', tokener.next()); in testSkipTo()
559 assertEquals('F', tokener.next()); in testSkipTo()
563 assertEquals('F', tokener.next()); in testSkipTo()
567 assertEquals('D', tokener.next()); in testSkipTo()
573 assertEquals("skipTo shouldn't stop when it sees '\\0'", 'F', tokener.next()); in testSkipToStopsOnNull()