Home
last modified time | relevance | path

Searched refs:peek (Results 1 – 25 of 252) sorted by relevance

1234567891011

/external/snakeyaml/src/test/java/org/yaml/snakeyaml/reader/
DReaderBomTest.java34 assertEquals('t', reader.peek()); in testReader()
36 assertEquals('e', reader.peek()); in testReader()
38 assertEquals('s', reader.peek()); in testReader()
40 assertEquals('t', reader.peek()); in testReader()
42 assertEquals('\u0000', reader.peek()); in testReader()
50 assertEquals('t', reader.peek()); in testNoBom()
53 assertEquals('e', reader.peek()); in testNoBom()
55 assertEquals('s', reader.peek()); in testNoBom()
57 assertEquals('t', reader.peek()); in testNoBom()
59 assertEquals('\u0000', reader.peek()); in testNoBom()
[all …]
DReaderStringTest.java80 while (reader.peek() != '\u0000') { in testForward()
84 assertEquals('t', reader.peek()); in testForward()
86 assertEquals('e', reader.peek()); in testForward()
88 assertEquals('s', reader.peek()); in testForward()
90 assertEquals('t', reader.peek()); in testForward()
92 assertEquals('\u0000', reader.peek()); in testForward()
97 assertEquals('t', reader.peek(0)); in testPeekInt()
98 assertEquals('e', reader.peek(1)); in testPeekInt()
99 assertEquals('s', reader.peek(2)); in testPeekInt()
100 assertEquals('t', reader.peek(3)); in testPeekInt()
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/template/
Dgroup-file-lexer.rb368 look_1_0 = @input.peek( 1 )
377 …if @input.peek( 1 ).between?( 0x30, 0x39 ) || @input.peek( 1 ).between?( 0x41, 0x5a ) || @input.pe…
414 if @input.peek( 1 ) == 0x5f || @input.peek( 1 ).between?( 0x61, 0x7a )
426 look_2_0 = @input.peek( 1 )
435 …if @input.peek( 1 ).between?( 0x30, 0x39 ) || @input.peek( 1 ).between?( 0x41, 0x5a ) || @input.pe…
476 look_3_0 = @input.peek( 1 )
479 look_3_1 = @input.peek( 2 )
482 look_3_4 = @input.peek( 3 )
495 look_3_2 = @input.peek( 2 )
548 look_6_0 = @input.peek( 1 )
[all …]
Dgroup-file-parser.rb182 look_1_0 = @input.peek( 1 )
211 look_2_0 = @input.peek( 1 )
262 look_3_0 = @input.peek( 1 )
265 look_3_1 = @input.peek( 2 )
292 look_4_0 = @input.peek( 1 )
340 look_5_0 = @input.peek( 1 )
359 case look_6 = @input.peek( 1 )
422 look_8_0 = @input.peek( 1 )
437 look_7_0 = @input.peek( 1 )
500 look_9_0 = @input.peek( 1 )
[all …]
/external/llvm/lib/CodeGen/MIRParser/
DMILexer.cpp40 char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } in peek() function in __anon3cade4750111::Cursor
82 while (isblank(C.peek())) in skipWhitespace()
91 if (C.peek() != ';') in skipComment()
93 while (!isNewlineChar(C.peek()) && !C.isEOF()) in skipComment()
115 char Char = C.peek(); in unescapeQuotedString()
117 if (C.peek(1) == '\\') { in unescapeQuotedString()
123 if (isxdigit(C.peek(1)) && isxdigit(C.peek(2))) { in unescapeQuotedString()
124 Str += hexDigitValue(C.peek(1)) * 16 + hexDigitValue(C.peek(2)); in unescapeQuotedString()
139 assert(C.peek() == '"'); in lexStringConstant()
140 for (C.advance(); C.peek() != '"'; C.advance()) { in lexStringConstant()
[all …]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/scanner/
DScannerImpl.java297 char ch = reader.peek(); in fetchMoreTokens()
1070 if ("---".equals(reader.prefix(3)) && Constant.NULL_BL_T_LINEBR.has(reader.peek(3))) { in checkDocumentStart()
1084 if ("...".equals(reader.prefix(3)) && Constant.NULL_BL_T_LINEBR.has(reader.peek(3))) { in checkDocumentEnd()
1096 return Constant.NULL_BL_T_LINEBR.has(reader.peek(1)); in checkBlockEntry()
1108 return Constant.NULL_BL_T_LINEBR.has(reader.peek(1)); in checkKey()
1121 return Constant.NULL_BL_T_LINEBR.has(reader.peek(1)); in checkValue()
1145 char ch = reader.peek(); in checkPlain()
1149 … || (Constant.NULL_BL_T_LINEBR.hasNo(reader.peek(1)) && (ch == '-' || (this.flowLevel == 0 && "?:" in checkPlain()
1179 if (reader.getIndex() == 0 && reader.peek() == '\uFEFF') { in scanToNextToken()
1187 while (reader.peek(ff) == ' ') { in scanToNextToken()
[all …]
/external/libcxx/test/std/strings/basic.string/string.nonmembers/string.io/
Dstream_extract.pass.cpp31 assert(in.peek() == ' '); in main()
35 assert(in.peek() == ' '); in main()
40 assert(in.peek() == 'g'); in main()
53 assert(in.peek() == L' '); in main()
57 assert(in.peek() == L' '); in main()
62 assert(in.peek() == L'g'); in main()
77 assert(in.peek() == ' '); in main()
81 assert(in.peek() == ' '); in main()
86 assert(in.peek() == 'g'); in main()
100 assert(in.peek() == L' '); in main()
[all …]
/external/skia/tests/
DTDPQueueTest.cpp20 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
27 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
30 REPORTER_ASSERT(reporter, 1 == heap.peek()); in simple_test()
38 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
41 REPORTER_ASSERT(reporter, 1 == heap.peek()); in simple_test()
44 REPORTER_ASSERT(reporter, 2 == heap.peek()); in simple_test()
53 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
56 REPORTER_ASSERT(reporter, 1 == heap.peek()); in simple_test()
59 REPORTER_ASSERT(reporter, 2 == heap.peek()); in simple_test()
62 REPORTER_ASSERT(reporter, 3 == heap.peek()); in simple_test()
[all …]
DReader32Test.cpp14 REPORTER_ASSERT(reporter, (const char*)reader.peek() == in assert_eof()
23 REPORTER_ASSERT(reporter, reader.peek() == reader.base()); in assert_start()
39 REPORTER_ASSERT(reporter, nullptr == reader.peek()); in DEF_TEST()
54 REPORTER_ASSERT(reporter, (const void*)&data[i] == reader.peek()); in DEF_TEST()
68 REPORTER_ASSERT(reporter, (const void*)&data2[i] == reader.peek()); in DEF_TEST()
80 REPORTER_ASSERT(reporter, nullptr == reader.peek()); in DEF_TEST()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DQueueDispatcher.java40 if (failFastResponse != null && responseQueue.peek() == null) { in dispatch()
48 @Override public MockResponse peek() { in peek() method in QueueDispatcher
49 MockResponse peek = responseQueue.peek(); in peek() local
50 if (peek != null) return peek; in peek()
52 return super.peek(); in peek()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DQueueDispatcher.java38 if (failFastResponse != null && responseQueue.peek() == null) { in dispatch()
46 @Override public MockResponse peek() { in peek() method in QueueDispatcher
47 MockResponse peek = responseQueue.peek(); in peek() local
48 if (peek != null) return peek; in peek()
50 return super.peek(); in peek()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DPeekingIteratorTest.java105 peekingIterator.peek(); in testPeekOnEmptyList()
117 "A", peekingIterator.peek()); in testPeekDoesntChangeIteration()
119 "A", peekingIterator.peek()); in testPeekDoesntChangeIteration()
124 "B", peekingIterator.peek()); in testPeekDoesntChangeIteration()
126 "B", peekingIterator.peek()); in testPeekDoesntChangeIteration()
131 "C", peekingIterator.peek()); in testPeekDoesntChangeIteration()
133 "C", peekingIterator.peek()); in testPeekDoesntChangeIteration()
138 peekingIterator.peek(); in testPeekDoesntChangeIteration()
142 peekingIterator.peek(); in testPeekDoesntChangeIteration()
157 assertEquals("B", peekingIterator.peek()); in testCantRemoveAfterPeek()
[all …]
DAbstractIteratorTest.java100 assertEquals(0, (int) iter.peek()); in testDefaultBehaviorOfPeek()
101 assertEquals(0, (int) iter.peek()); in testDefaultBehaviorOfPeek()
103 assertEquals(0, (int) iter.peek()); in testDefaultBehaviorOfPeek()
106 assertEquals(1, (int) iter.peek()); in testDefaultBehaviorOfPeek()
110 iter.peek(); in testDefaultBehaviorOfPeek()
116 iter.peek(); in testDefaultBehaviorOfPeek()
128 iter.peek(); in testDefaultBehaviorOfPeek()
148 empty.peek(); in testDefaultBehaviorOfPeekForEmptyIteration()
154 empty.peek(); in testDefaultBehaviorOfPeekForEmptyIteration()
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/
Dtest-streams.rb82 @stream.peek(1).should == ?o.ord
89 @stream.peek(1).should == ?o.ord
90 @stream.peek(2).should == ?h.ord
91 @stream.peek(3).should == ?\n.ord
97 @stream.peek(1).should == ?!.ord
98 @stream.peek(2).should == ?\n.ord
99 @stream.peek(3).should == EOF
114 @stream.peek(1).should == ?h.ord
168 @stream.peek(1).should == ?e.ord
197 @stream.peek(1).should == ?y.ord
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DPeekingIteratorTest.java115 peekingIterator.peek(); in testPeekOnEmptyList()
127 "A", peekingIterator.peek()); in testPeekDoesntChangeIteration()
129 "A", peekingIterator.peek()); in testPeekDoesntChangeIteration()
134 "B", peekingIterator.peek()); in testPeekDoesntChangeIteration()
136 "B", peekingIterator.peek()); in testPeekDoesntChangeIteration()
141 "C", peekingIterator.peek()); in testPeekDoesntChangeIteration()
143 "C", peekingIterator.peek()); in testPeekDoesntChangeIteration()
148 peekingIterator.peek(); in testPeekDoesntChangeIteration()
152 peekingIterator.peek(); in testPeekDoesntChangeIteration()
167 assertEquals("B", peekingIterator.peek()); in testCantRemoveAfterPeek()
[all …]
DAbstractIteratorTest.java103 assertEquals(0, (int) iter.peek()); in testDefaultBehaviorOfPeek()
104 assertEquals(0, (int) iter.peek()); in testDefaultBehaviorOfPeek()
106 assertEquals(0, (int) iter.peek()); in testDefaultBehaviorOfPeek()
109 assertEquals(1, (int) iter.peek()); in testDefaultBehaviorOfPeek()
113 iter.peek(); in testDefaultBehaviorOfPeek()
119 iter.peek(); in testDefaultBehaviorOfPeek()
131 iter.peek(); in testDefaultBehaviorOfPeek()
162 empty.peek(); in testDefaultBehaviorOfPeekForEmptyIteration()
168 empty.peek(); in testDefaultBehaviorOfPeekForEmptyIteration()
DEvictingQueueTest.java61 assertNull(queue.peek()); in testCreateWithZeroSize()
99 assertEquals("hi", queue.peek()); in testEvictingAfterOne()
105 assertEquals("there", queue.peek()); in testEvictingAfterOne()
123 assertEquals("one", queue.peek()); in testEvictingAfterThree()
129 assertEquals("two", queue.peek()); in testEvictingAfterThree()
145 assertEquals("one", queue.peek()); in testAddAll()
151 assertEquals("two", queue.peek()); in testAddAll()
/external/jetty/src/java/org/eclipse/jetty/io/
DAbstractBuffer.java82 peek(getIndex(), bytes, 0, length()); in asArray()
156 poke(0, peek(s, length)); in compact()
192 byte b1 = peek(i); in equals()
193 byte b2 = b.peek(--bi); in equals()
238 byte b1 = peek(i); in equalsIgnoreCase()
239 byte b2 = b.peek(--bi); in equalsIgnoreCase()
253 return peek(_get++); in get()
266 length = peek(gi, b, offset, length); in get()
275 Buffer view = peek(gi, length); in get()
301 byte b = peek(i); in hashCode()
[all …]
DView.java167 public byte peek(int index) in peek() method in View
169 return _buffer.peek(index); in peek()
175 public int peek(int index, byte[] b, int offset, int length) in peek() method in View
177 return _buffer.peek(index,b,offset,length); in peek()
184 public Buffer peek(int index, int length) in peek() method in View
186 return _buffer.peek(index, length); in peek()
DBuffer.java210 byte peek(); in peek() method
217 byte peek(int index); in peek() method
225 Buffer peek(int index, int length); in peek() method
235 int peek(int index, byte[] b, int offset, int length); in peek() method
/external/v8/src/parsing/
Dpreparser.cc131 DCHECK_EQ(Token::RBRACE, scanner()->peek()); in PreParseLazyFunction()
191 switch (peek()) { in ParseStatementListItem()
224 while (peek() != end_token) { in ParseStatementList()
225 if (directive_prologue && peek() != Token::STRING) { in ParseStatementList()
228 bool starts_with_identifier = peek() == Token::IDENTIFIER; in ParseStatementList()
320 if (peek() == Token::SEMICOLON) { in ParseStatement()
354 switch (peek()) { in ParseSubStatement()
485 while (peek() != Token::RBRACE) { in ParseBlock()
531 if (peek() == Token::VAR) { in ParseVariableDeclarations()
539 } else if (peek() == Token::CONST && allow_const()) { in ParseVariableDeclarations()
[all …]
Dparser-base.h356 INLINE(Token::Value peek()) { in INLINE() argument
358 return scanner()->peek(); in INLINE()
387 Token::Value next = peek(); in Check()
406 Token::Value tok = peek(); in ExpectSemicolon()
420 Token::Value next = peek(); in peek_any_identifier()
435 return peek() == Token::IDENTIFIER && in PeekContextualKeyword()
663 GetUnexpectedTokenMessage(peek(), &message, &arg); in ExpressionUnexpectedToken()
670 GetUnexpectedTokenMessage(peek(), &message, &arg); in BindingPatternUnexpectedToken()
678 GetUnexpectedTokenMessage(peek(), &message, &arg); in ArrowFormalParametersUnexpectedToken()
687 GetUnexpectedTokenMessage(peek(), &message, &arg); in FormalParameterInitializerUnexpectedToken()
[all …]
/external/valgrind/coregrind/m_demangle/
Dcp-demangle.c1262 char peek = d_peek_char (di); in d_encoding() local
1264 if (peek == 'G' || peek == 'T') in d_encoding()
1305 peek = d_peek_char (di); in d_encoding()
1306 if (dc == NULL || peek == '\0' || peek == 'E') in d_encoding()
1318 char peek; in d_abi_tags() local
1319 while (peek = d_peek_char (di), in d_abi_tags()
1320 peek == 'B') in d_abi_tags()
1345 char peek = d_peek_char (di); in d_name() local
1348 switch (peek) in d_name()
1476 char peek; in d_prefix() local
[all …]
/external/skia/src/core/
DSkValidatingReadBuffer.cpp45 const void* addr = fReader.peek(); in skip()
75 this->validate(IsPtrAlign4(fReader.peek()) && fReader.isAvailable(inc)); in readInt()
81 this->validate(IsPtrAlign4(fReader.peek()) && fReader.isAvailable(inc)); in readScalar()
95 const void* ptr = fReader.peek(); in readString()
130 size = matrix->readFromMemory(fReader.peek(), fReader.available()); in readMatrix()
155 size = region->readFromMemory(fReader.peek(), fReader.available()); in readRegion()
166 size = path->readFromMemory(fReader.peek(), fReader.available()); in readPath()
211 fError = fError || !IsPtrAlign4(fReader.peek()) || !fReader.isAvailable(inc); in getArrayCount()
212 return fError ? 0 : *(uint32_t*)fReader.peek(); in getArrayCount()
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/
Dpeek.pass.cpp46 assert(is.peek() == ' '); in main()
51 assert(is.peek() == '1'); in main()
59 assert(is.peek() == L' '); in main()
64 assert(is.peek() == L'1'); in main()

1234567891011