Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 2171) sorted by relevance

12345678910>>...87

/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/
Dt1parse.c136 T1_New_Parser( T1_Parser parser, in T1_New_Parser() argument
146 psaux->ps_parser_funcs->init( &parser->root, 0, 0, memory ); in T1_New_Parser()
148 parser->stream = stream; in T1_New_Parser()
149 parser->base_len = 0; in T1_New_Parser()
150 parser->base_dict = 0; in T1_New_Parser()
151 parser->private_len = 0; in T1_New_Parser()
152 parser->private_dict = 0; in T1_New_Parser()
153 parser->in_pfb = 0; in T1_New_Parser()
154 parser->in_memory = 0; in T1_New_Parser()
155 parser->single_block = 0; in T1_New_Parser()
[all …]
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3parser.c38 static void setDebugListener (pANTLR3_PARSER parser, pANTLR3_DEBUG_EVENT_LISTENER dbg);
39 static void setTokenStream (pANTLR3_PARSER parser, pANTLR3_TOKEN_STREAM);
40 static pANTLR3_TOKEN_STREAM getTokenStream (pANTLR3_PARSER parser);
41 static void freeParser (pANTLR3_PARSER parser);
46 pANTLR3_PARSER parser; in antlr3ParserNewStreamDbg() local
48 parser = antlr3ParserNewStream(sizeHint, tstream, state); in antlr3ParserNewStreamDbg()
50 if (parser == NULL) in antlr3ParserNewStreamDbg()
55 parser->setDebugListener(parser, dbg); in antlr3ParserNewStreamDbg()
57 return parser; in antlr3ParserNewStreamDbg()
63 pANTLR3_PARSER parser; in antlr3ParserNew() local
[all …]
Dantlr3treeparser.c42 static void setTreeNodeStream (pANTLR3_TREE_PARSER parser, pANTLR3_COMMON_TREE_NODE_STREAM in…
44 getTreeNodeStream (pANTLR3_TREE_PARSER parser);
45 static void freeParser (pANTLR3_TREE_PARSER parser);
54 pANTLR3_TREE_PARSER parser; in antlr3TreeParserNewStream() local
58 parser =(pANTLR3_TREE_PARSER) ANTLR3_MALLOC(sizeof(ANTLR3_TREE_PARSER)); in antlr3TreeParserNewStream()
60 if (parser == NULL) in antlr3TreeParserNewStream()
67 parser->rec = antlr3BaseRecognizerNew(ANTLR3_TYPE_PARSER, sizeHint, state); in antlr3TreeParserNewStream()
69 if (parser->rec == NULL) in antlr3TreeParserNewStream()
71 parser->free(parser); in antlr3TreeParserNewStream()
78 parser->rec->super = parser; in antlr3TreeParserNewStream()
[all …]
/external/chromium_org/third_party/webrtc/modules/rtp_rtcp/source/
Drtcp_packet_unittest.cc52 RtcpPacketParser parser; in TEST() local
53 parser.Parse(packet.buffer(), packet.buffer_length()); in TEST()
54 EXPECT_EQ(1, parser.receiver_report()->num_packets()); in TEST()
55 EXPECT_EQ(kSenderSsrc, parser.receiver_report()->Ssrc()); in TEST()
56 EXPECT_EQ(0, parser.report_block()->num_packets()); in TEST()
74 RtcpPacketParser parser; in TEST() local
75 parser.Parse(packet.buffer(), packet.buffer_length()); in TEST()
76 EXPECT_EQ(1, parser.receiver_report()->num_packets()); in TEST()
77 EXPECT_EQ(kSenderSsrc, parser.receiver_report()->Ssrc()); in TEST()
78 EXPECT_EQ(1, parser.report_block()->num_packets()); in TEST()
[all …]
/external/jsmn/
Djsmn.c8 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, in jsmn_alloc_token() argument
11 if (parser->toknext >= num_tokens) { in jsmn_alloc_token()
14 tok = &tokens[parser->toknext++]; in jsmn_alloc_token()
37 static jsmnerr_t jsmn_parse_primitive(jsmn_parser *parser, const char *js, in jsmn_parse_primitive() argument
42 start = parser->pos; in jsmn_parse_primitive()
44 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { in jsmn_parse_primitive()
45 switch (js[parser->pos]) { in jsmn_parse_primitive()
54 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive()
55 parser->pos = start; in jsmn_parse_primitive()
61 parser->pos = start; in jsmn_parse_primitive()
[all …]
/external/chromium_org/gpu/config/
Dgpu_test_expectations_parser_unittest.cc41 GPUTestExpectationsParser parser; in TEST_F() local
42 EXPECT_TRUE(parser.LoadTestExpectations(text)); in TEST_F()
43 EXPECT_EQ(0u, parser.GetErrorMessages().size()); in TEST_F()
45 parser.GetTestExpectation("some_test", bot_config())); in TEST_F()
52 GPUTestExpectationsParser parser; in TEST_F() local
53 EXPECT_TRUE(parser.LoadTestExpectations(text)); in TEST_F()
54 EXPECT_EQ(0u, parser.GetErrorMessages().size()); in TEST_F()
56 parser.GetTestExpectation("MyTest", bot_config())); in TEST_F()
63 GPUTestExpectationsParser parser; in TEST_F() local
64 EXPECT_TRUE(parser.LoadTestExpectations(text)); in TEST_F()
[all …]
/external/qemu/qobject/
Djson-streamer.c26 JSONMessageParser *parser = container_of(lexer, JSONMessageParser, lexer); in json_message_process_token() local
32 parser->brace_count++; in json_message_process_token()
35 parser->brace_count--; in json_message_process_token()
38 parser->bracket_count++; in json_message_process_token()
41 parser->bracket_count--; in json_message_process_token()
55 parser->token_size += token->length; in json_message_process_token()
57 qlist_append(parser->tokens, dict); in json_message_process_token()
61 } else if (parser->brace_count < 0 || in json_message_process_token()
62 parser->bracket_count < 0 || in json_message_process_token()
63 (parser->brace_count == 0 && in json_message_process_token()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/xml/
DXPathGrammar.y54 %pure-parser
55 %parse-param { blink::XPath::Parser* parser }
121 parser->m_topExpr = $1;
141 parser->registerParseNode($$);
153 parser->unregisterParseNode($1);
162 parser->unregisterParseNode($1);
163 parser->registerParseNode($$);
169 parser->unregisterParseNode($3);
176 parser->unregisterParseNode($2);
177 parser->unregisterParseNode($3);
[all …]
/external/mesa3d/src/glsl/glcpp/
Dglcpp-parse.y36 yyerror (YYLTYPE *locp, glcpp_parser_t *parser, const char *error);
39 _define_object_macro (glcpp_parser_t *parser,
45 _define_function_macro (glcpp_parser_t *parser,
98 _parser_active_list_push (glcpp_parser_t *parser,
103 _parser_active_list_pop (glcpp_parser_t *parser);
106 _parser_active_list_contains (glcpp_parser_t *parser, const char *identifier);
112 _glcpp_parser_expand_and_lex_from (glcpp_parser_t *parser,
118 _glcpp_parser_expand_token_list (glcpp_parser_t *parser,
122 _glcpp_parser_print_expanded_token_list (glcpp_parser_t *parser,
126 _glcpp_parser_skip_stack_push_if (glcpp_parser_t *parser, YYLTYPE *loc,
[all …]
/external/chromium_org/third_party/mesa/src/src/glsl/glcpp/
Dglcpp-parse.y36 yyerror (YYLTYPE *locp, glcpp_parser_t *parser, const char *error);
39 _define_object_macro (glcpp_parser_t *parser,
45 _define_function_macro (glcpp_parser_t *parser,
98 _parser_active_list_push (glcpp_parser_t *parser,
103 _parser_active_list_pop (glcpp_parser_t *parser);
106 _parser_active_list_contains (glcpp_parser_t *parser, const char *identifier);
112 _glcpp_parser_expand_and_lex_from (glcpp_parser_t *parser,
118 _glcpp_parser_expand_token_list (glcpp_parser_t *parser,
122 _glcpp_parser_print_expanded_token_list (glcpp_parser_t *parser,
126 _glcpp_parser_skip_stack_push_if (glcpp_parser_t *parser, YYLTYPE *loc,
[all …]
/external/smack/src/org/jivesoftware/smackx/provider/
DMUCUserProvider.java51 public PacketExtension parseExtension(XmlPullParser parser) throws Exception { in parseExtension() argument
55 int eventType = parser.next(); in parseExtension()
57 if (parser.getName().equals("invite")) { in parseExtension()
58 mucUser.setInvite(parseInvite(parser)); in parseExtension()
60 if (parser.getName().equals("item")) { in parseExtension()
61 mucUser.setItem(parseItem(parser)); in parseExtension()
63 if (parser.getName().equals("password")) { in parseExtension()
64 mucUser.setPassword(parser.nextText()); in parseExtension()
66 if (parser.getName().equals("status")) { in parseExtension()
67 mucUser.setStatus(new MUCUser.Status(parser.getAttributeValue("", "code"))); in parseExtension()
[all …]
DDataFormProvider.java46 public PacketExtension parseExtension(XmlPullParser parser) throws Exception { in parseExtension() argument
49 DataForm dataForm = new DataForm(parser.getAttributeValue("", "type")); in parseExtension()
51 int eventType = parser.next(); in parseExtension()
53 if (parser.getName().equals("instructions")) { in parseExtension()
54 dataForm.addInstruction(parser.nextText()); in parseExtension()
56 else if (parser.getName().equals("title")) { in parseExtension()
57 dataForm.setTitle(parser.nextText()); in parseExtension()
59 else if (parser.getName().equals("field")) { in parseExtension()
60 dataForm.addField(parseField(parser)); in parseExtension()
62 else if (parser.getName().equals("item")) { in parseExtension()
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/
Dbasic.rb40 parser = Identifiers::Parser.new( tokens )
42 parser.document
44 parser.reported_errors.should be_empty
45 parser.identifiers.should == %w(blah_de_blah)
52 parser = Identifiers::Parser.new( lexer )
53 parser.document
55 parser.reported_errors.should have( 1 ).thing
64 parser = Identifiers::Parser.new( 'blah_de_blah', :file => 'blah.txt' )
66 parser.document
68 parser.reported_errors.should be_empty
[all …]
/external/chromium_org/chrome/common/extensions/
Dupdate_manifest_unittest.cc120 UpdateManifest parser; in TEST() local
123 EXPECT_FALSE(parser.Parse(std::string())); in TEST()
124 EXPECT_FALSE(parser.errors().empty()); in TEST()
126 EXPECT_TRUE(parser.Parse(kMissingAppId)); in TEST()
127 EXPECT_TRUE(parser.results().list.empty()); in TEST()
128 EXPECT_FALSE(parser.errors().empty()); in TEST()
130 EXPECT_TRUE(parser.Parse(kInvalidCodebase)); in TEST()
131 EXPECT_TRUE(parser.results().list.empty()); in TEST()
132 EXPECT_FALSE(parser.errors().empty()); in TEST()
134 EXPECT_TRUE(parser.Parse(kMissingVersion)); in TEST()
[all …]
/external/chromium_org/components/component_updater/test/
Dupdate_response_unittest.cc212 UpdateResponse parser; in TEST() local
215 EXPECT_FALSE(parser.Parse(std::string())); in TEST()
216 EXPECT_FALSE(parser.errors().empty()); in TEST()
218 EXPECT_TRUE(parser.Parse(kMissingAppId)); in TEST()
219 EXPECT_TRUE(parser.results().list.empty()); in TEST()
220 EXPECT_FALSE(parser.errors().empty()); in TEST()
222 EXPECT_TRUE(parser.Parse(kInvalidCodebase)); in TEST()
223 EXPECT_TRUE(parser.results().list.empty()); in TEST()
224 EXPECT_FALSE(parser.errors().empty()); in TEST()
226 EXPECT_TRUE(parser.Parse(kMissingVersion)); in TEST()
[all …]
/external/smack/src/org/jivesoftware/smack/util/
DPacketParserUtils.java73 public static Packet parseMessage(XmlPullParser parser) throws Exception { in parseMessage() argument
75 String id = parser.getAttributeValue("", "id"); in parseMessage()
77 message.setTo(parser.getAttributeValue("", "to")); in parseMessage()
78 message.setFrom(parser.getAttributeValue("", "from")); in parseMessage()
79 message.setType(Message.Type.fromString(parser.getAttributeValue("", "type"))); in parseMessage()
80 String language = getLanguageAttribute(parser); in parseMessage()
99 int eventType = parser.next(); in parseMessage()
101 String elementName = parser.getName(); in parseMessage()
102 String namespace = parser.getNamespace(); in parseMessage()
104 String xmlLang = getLanguageAttribute(parser); in parseMessage()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/css/parser/
DCSSGrammar.y63 %pure-parser
65 %parse-param { BisonCSSParser* parser }
66 %lex-param { BisonCSSParser* parser }
389 parser->m_rule = $3;
395 parser->m_keyframe = $3;
401 parser->m_valueList = parser->sinkFloatingValueList($3);
413 parser->m_valueList = parser->sinkFloatingValueList($3);
414 int oldParsedProperties = parser->m_parsedProperties.size();
415 if (!parser->parseValue(parser->m_id, parser->m_important))
416 parser->rollbackLastProperties(parser->m_parsedProperties.size() - oldParsedProperties);
[all …]
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/cid/
Dcidparse.c51 cid_parser_new( CID_Parser* parser, in cid_parser_new() argument
62 FT_MEM_ZERO( parser, sizeof ( *parser ) ); in cid_parser_new()
63 psaux->ps_parser_funcs->init( &parser->root, 0, 0, memory ); in cid_parser_new()
65 parser->stream = stream; in cid_parser_new()
143 FT_FRAME_EXTRACT( ps_len, parser->postscript ) ) in cid_parser_new()
146 parser->data_offset = offset; in cid_parser_new()
147 parser->postscript_len = ps_len; in cid_parser_new()
148 parser->root.base = parser->postscript; in cid_parser_new()
149 parser->root.cursor = parser->postscript; in cid_parser_new()
150 parser->root.limit = parser->root.cursor + ps_len; in cid_parser_new()
[all …]
/external/chromium_org/gpu/command_buffer/service/
Dcmd_parser_test.cc51 CommandParser* parser = new CommandParser(api_mock()); in MakeParser() local
53 parser->SetBuffer(buffer(), shm_size, 0, command_buffer_size); in MakeParser()
54 return parser; in MakeParser()
69 scoped_ptr<CommandParser> parser(MakeParser(10)); in TEST_F() local
70 EXPECT_EQ(0, parser->get()); in TEST_F()
71 EXPECT_EQ(0, parser->put()); in TEST_F()
72 EXPECT_TRUE(parser->IsEmpty()); in TEST_F()
77 scoped_ptr<CommandParser> parser(MakeParser(10)); in TEST_F() local
78 CommandBufferOffset put = parser->put(); in TEST_F()
85 parser->set_put(put); in TEST_F()
[all …]
/external/expat/tests/
Druntests.c31 static XML_Parser parser; variable
37 parser = XML_ParserCreate(NULL); in basic_setup()
38 if (parser == NULL) in basic_setup()
45 if (parser != NULL) in basic_teardown()
46 XML_ParserFree(parser); in basic_teardown()
54 _xml_failure(XML_Parser parser, const char *file, int line) in _xml_failure() argument
57 enum XML_Error err = XML_GetErrorCode(parser); in _xml_failure()
63 XML_GetCurrentLineNumber(parser), in _xml_failure()
64 XML_GetCurrentColumnNumber(parser), in _xml_failure()
69 #define xml_failure(parser) _xml_failure((parser), __FILE__, __LINE__) argument
[all …]
/external/chromium_org/tools/telemetry/telemetry/core/
Dbrowser_options_unittest.py14 parser = options.CreateParser()
15 parser.add_option('-x', action='store', default=3)
16 parser.parse_args(['--browser', 'any'])
21 parser = options.CreateParser()
22 parser.add_option('-x', action='store', default=3)
23 parser.parse_args(['--browser', 'any', '-x', 10])
29 parser = options.CreateParser()
30 parser.add_option('-x', action='store', default=3)
31 parser.parse_args(['--browser', 'any'])
36 parser = options.CreateParser()
[all …]
/external/chromium_org/net/websockets/
Dwebsocket_extension_parser_test.cc17 WebSocketExtensionParser parser; in TEST() local
18 parser.Parse("", 0); in TEST()
20 EXPECT_TRUE(parser.has_error()); in TEST()
24 WebSocketExtensionParser parser; in TEST() local
27 parser.Parse("foo"); in TEST()
29 ASSERT_FALSE(parser.has_error()); in TEST()
30 EXPECT_TRUE(expected.Equals(parser.extension())); in TEST()
34 WebSocketExtensionParser parser; in TEST() local
38 parser.Parse("\tfoo ; bar"); in TEST()
40 ASSERT_FALSE(parser.has_error()); in TEST()
[all …]
/external/chromium_org/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dparser_unittest.py26 import mojom.parse.parser as parser namespace
45 self.assertEquals(parser.Parse(source, "my_file.mojom"), expected)
55 self.assertEquals(parser.Parse(source, "my_file.mojom"), expected)
66 parser.ParseError,
68 parser.Parse(source, "my_file.mojom")
81 parser.ParseError,
83 parser.Parse(source1, "my_file.mojom")
98 parser.ParseError,
100 parser.Parse(source2, "my_file.mojom")
110 parser.ParseError,
[all …]
/external/chromium_org/base/json/
Djson_parser_unittest.cc18 JSONParser* parser = new JSONParser(JSON_PARSE_RFC); in NewTestParser() local
19 parser->start_pos_ = input.data(); in NewTestParser()
20 parser->pos_ = parser->start_pos_; in NewTestParser()
21 parser->end_pos_ = parser->start_pos_ + input.length(); in NewTestParser()
22 return parser; in NewTestParser()
25 void TestLastThree(JSONParser* parser) { in TestLastThree() argument
26 EXPECT_EQ(',', *parser->NextChar()); in TestLastThree()
27 EXPECT_EQ('|', *parser->NextChar()); in TestLastThree()
28 EXPECT_EQ('\0', *parser->NextChar()); in TestLastThree()
29 EXPECT_EQ(parser->end_pos_, parser->pos_); in TestLastThree()
[all …]
/external/smack/src/org/jivesoftware/smack/
DPacketReader.java50 private XmlPullParser parser; field in PacketReader
160 parser = XmlPullParserFactory.newInstance().newPullParser(); in resetParser()
161 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true); in resetParser()
162 parser.setInput(connection.reader); in resetParser()
176 int eventType = parser.getEventType(); in parsePackets()
179 if (parser.getName().equals("message")) { in parsePackets()
180 processPacket(PacketParserUtils.parseMessage(parser)); in parsePackets()
182 else if (parser.getName().equals("iq")) { in parsePackets()
183 processPacket(PacketParserUtils.parseIQ(parser, connection)); in parsePackets()
185 else if (parser.getName().equals("presence")) { in parsePackets()
[all …]

12345678910>>...87