Home
last modified time | relevance | path

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

12345678910>>...12

/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.cpp44 char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } in peek() function in __anondba005ef0111::Cursor
86 while (isblank(C.peek())) in skipWhitespace()
95 if (C.peek() != ';') in skipComment()
97 while (!isNewlineChar(C.peek()) && !C.isEOF()) in skipComment()
119 char Char = C.peek(); in unescapeQuotedString()
121 if (C.peek(1) == '\\') { in unescapeQuotedString()
127 if (isxdigit(C.peek(1)) && isxdigit(C.peek(2))) { in unescapeQuotedString()
128 Str += hexDigitValue(C.peek(1)) * 16 + hexDigitValue(C.peek(2)); in unescapeQuotedString()
141 assert(C.peek() == '"'); in lexStringConstant()
142 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/r8/src/main/java/com/android/tools/r8/naming/
DProguardMapReader.java98 private char peek() { in peek() method in ProguardMapReader
99 return peek(0); in peek()
102 private char peek(int distance) { in peek() method in ProguardMapReader
136 while (Character.isWhitespace(peek())) { in skipWhitespace()
190 while (Character.isWhitespace(peek())) { in parseMemberMappings()
198 if (peek() == ':') { in parseMemberMappings()
269 if (allowInit && peek() == '<') { in skipIdentifier()
274 if (!Character.isJavaIdentifierStart(peek())) { in skipIdentifier()
278 while (Character.isJavaIdentifierPart(peek())) { in skipIdentifier()
284 if (Character.isJavaIdentifierPart(peek())) { in skipIdentifier()
[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.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/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/python/cpython2/Lib/
Dmimify.py54 self.peek = None
57 if self.peek is not None:
64 self.peek = line
67 self.peek = line
74 self.peek = None
77 if self.peek is not None:
78 line = self.peek
79 self.peek = None
87 self.peek = self.file.readline()
88 if len(self.peek) == 0 or \
[all …]
/external/valgrind/coregrind/m_demangle/
Dcp-demangle.c1314 char peek = d_peek_char (di); in d_encoding() local
1316 if (peek == 'G' || peek == 'T') in d_encoding()
1353 peek = d_peek_char (di); in d_encoding()
1354 if (dc == NULL || peek == '\0' || peek == 'E') in d_encoding()
1367 char peek; in d_abi_tags() local
1372 while (peek = d_peek_char (di), in d_abi_tags()
1373 peek == 'B') in d_abi_tags()
1401 char peek = d_peek_char (di); in d_name() local
1404 switch (peek) in d_name()
1532 char peek; in d_prefix() local
[all …]
/external/skia/src/core/
DSkValidatingReadBuffer.cpp45 const void* addr = fReader.peek(); in skip()
73 this->validate(IsPtrAlign4(fReader.peek()) && fReader.isAvailable(inc)); in readInt()
79 this->validate(IsPtrAlign4(fReader.peek()) && fReader.isAvailable(inc)); in readScalar()
96 return *((uint8_t*) fReader.peek()); in peekByte()
101 const void* ptr = fReader.peek(); in readString()
138 size = matrix->readFromMemory(fReader.peek(), fReader.available()); in readMatrix()
179 size = region->readFromMemory(fReader.peek(), fReader.available()); in readRegion()
190 size = path->readFromMemory(fReader.peek(), fReader.available()); in readPath()
239 fError = fError || !IsPtrAlign4(fReader.peek()) || !fReader.isAvailable(inc); in getArrayCount()
240 return fError ? 0 : *(uint32_t*)fReader.peek(); in getArrayCount()
/external/skia/src/sksl/
DSkSLParser.cpp86 fParser->error(fParser->peek().fPosition, String("exceeded max parse depth")); in checkValid()
116 switch (this->peek().fKind) { in file()
176 Token Parser::peek() { in peek() function in SkSL::Parser
266 Token next = this->peek(); in directive()
301 if (this->peek().fKind == Token::LPAREN) { in section()
347 Token lookahead = this->peek(); in declaration()
372 while (this->peek().fKind != Token::RPAREN) { in declaration()
430 while (this->peek().fKind != Token::RBRACE) { in structDeclaration()
596 Token start = this->peek(); in layoutCode()
601 Token next = this->peek(); in layoutCode()
[all …]
/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()
/external/v8/src/parsing/
Dparser-base.h713 INLINE(Token::Value peek()) { in INLINE() argument
715 return scanner()->peek(); in INLINE()
744 Token::Value next = peek(); in Check()
763 Token::Value tok = peek(); in ExpectSemicolon()
790 bool peek_any_identifier() { return is_any_identifier(peek()); } in peek_any_identifier()
801 return peek() == Token::IDENTIFIER && in PeekContextualKeyword()
828 return peek() == Token::IN || PeekContextualKeyword(CStrVector("of")); in PeekInOrOf()
1042 GetUnexpectedTokenMessage(peek(), &message, &location, &arg); in BindingPatternUnexpectedToken()
1050 GetUnexpectedTokenMessage(peek(), &message, &location, &arg); in ArrowFormalParametersUnexpectedToken()
1745 switch (peek()) { in ParsePrimaryExpression()
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DParseTreeBuilder.java74 ParseTree parentRuleNode = (ParseTree)callStack.peek(); in enterRule()
82 ParseTree ruleNode = (ParseTree)callStack.peek(); in exitRule()
91 ParseTree ruleNode = (ParseTree)callStack.peek(); in consumeToken()
105 ParseTree ruleNode = (ParseTree)callStack.peek(); in recognitionException()

12345678910>>...12