Home
last modified time | relevance | path

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

12345678910>>...152

/external/jemalloc_new/test/unit/
Dstats_print.c24 parser_t *parser; member
43 token_init(token_t *token, parser_t *parser, token_type_t token_type, in token_init() argument
45 token->parser = parser; in token_init()
55 if (!token->parser->verbose) { in token_error()
71 &token->parser->buf[token->pos], token->len); in token_error()
76 parser_init(parser_t *parser, bool verbose) { in parser_init() argument
77 parser->verbose = verbose; in parser_init()
78 parser->buf = NULL; in parser_init()
79 parser->len = 0; in parser_init()
80 parser->pos = 0; in parser_init()
[all …]
/external/curl/lib/
Dftplistparser.c190 struct ftp_parselist_data *parser = *parserp; in Curl_ftp_parselist_data_free() local
191 if(parser) in Curl_ftp_parselist_data_free()
192 Curl_fileinfo_cleanup(parser->file_data); in Curl_ftp_parselist_data_free()
193 free(parser); in Curl_ftp_parselist_data_free()
278 struct ftp_parselist_data *parser = ftpwc->parser; in ftp_pl_insert_finfo() local
284 finfo->filename = str + parser->offsets.filename; in ftp_pl_insert_finfo()
285 finfo->strings.group = parser->offsets.group ? in ftp_pl_insert_finfo()
286 str + parser->offsets.group : NULL; in ftp_pl_insert_finfo()
287 finfo->strings.perm = parser->offsets.perm ? in ftp_pl_insert_finfo()
288 str + parser->offsets.perm : NULL; in ftp_pl_insert_finfo()
[all …]
/external/minijail/tools/
Dparser_unittest.py30 import parser # pylint: disable=wrong-import-order
42 parser_state = parser.ParserState('<memory>')
102 with self.assertRaisesRegex(parser.ParseException,
114 self.parser = parser.PolicyParser(
119 return list(self.parser._parser_state.tokenize([line]))[0]
124 self.parser.parse_value(self._tokenize('0x80000000')), 0x80000000)
127 self.parser.parse_value(self._tokenize('0x8000000000000000')),
133 with self.assertRaisesRegex(parser.ParseException,
135 self.parser.parse_value(self._tokenize('0x100000000'))
136 with self.assertRaisesRegex(parser.ParseException,
[all …]
/external/expat/lib/
Dxmlparse.c191 static void copy_salt_to_sipkey(XML_Parser parser, struct sipkey *key);
376 typedef enum XML_Error PTRCALL Processor(XML_Parser parser, const char *start,
398 static enum XML_Error handleUnknownEncoding(XML_Parser parser,
400 static enum XML_Error processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
402 static enum XML_Error initializeEncoding(XML_Parser parser);
403 static enum XML_Error doProlog(XML_Parser parser, const ENCODING *enc,
407 static enum XML_Error processInternalEntity(XML_Parser parser, ENTITY *entity,
409 static enum XML_Error doContent(XML_Parser parser, int startTagLevel,
413 static enum XML_Error doCdataSection(XML_Parser parser, const ENCODING *,
417 static enum XML_Error doIgnoreSection(XML_Parser parser, const ENCODING *,
[all …]
/external/python/cpython3/Modules/expat/
Dxmlparse.c189 static void copy_salt_to_sipkey(XML_Parser parser, struct sipkey *key);
374 typedef enum XML_Error PTRCALL Processor(XML_Parser parser, const char *start,
396 static enum XML_Error handleUnknownEncoding(XML_Parser parser,
398 static enum XML_Error processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
400 static enum XML_Error initializeEncoding(XML_Parser parser);
401 static enum XML_Error doProlog(XML_Parser parser, const ENCODING *enc,
405 static enum XML_Error processInternalEntity(XML_Parser parser, ENTITY *entity,
407 static enum XML_Error doContent(XML_Parser parser, int startTagLevel,
411 static enum XML_Error doCdataSection(XML_Parser parser, const ENCODING *,
415 static enum XML_Error doIgnoreSection(XML_Parser parser, const ENCODING *,
[all …]
/external/python/cpython2/Modules/expat/
Dxmlparse.c198 copy_salt_to_sipkey(XML_Parser parser, struct sipkey * key);
383 typedef enum XML_Error PTRCALL Processor(XML_Parser parser,
408 handleUnknownEncoding(XML_Parser parser, const XML_Char *encodingName);
410 processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
413 initializeEncoding(XML_Parser parser);
415 doProlog(XML_Parser parser, const ENCODING *enc, const char *s,
419 processInternalEntity(XML_Parser parser, ENTITY *entity,
422 doContent(XML_Parser parser, int startTagLevel, const ENCODING *enc,
426 doCdataSection(XML_Parser parser, const ENCODING *, const char **startPtr,
430 doIgnoreSection(XML_Parser parser, const ENCODING *, const char **startPtr,
[all …]
/external/angle/src/tests/test_expectations/
DGPUTestExpectationsParser_unittest.cpp37 GPUTestExpectationsParser parser; in TEST() local
38 EXPECT_TRUE(parser.loadTestExpectations(config, line)); in TEST()
39 EXPECT_TRUE(parser.getErrorMessages().empty()); in TEST()
41 parser.getTestExpectation("dEQP-GLES31.functional.layout_binding.ubo.vertex_binding_max"), in TEST()
52 GPUTestExpectationsParser parser; in TEST() local
53 EXPECT_TRUE(parser.loadTestExpectations(config, line)); in TEST()
54 EXPECT_TRUE(parser.getErrorMessages().empty()); in TEST()
56 parser.getTestExpectation("dEQP-GLES31.functional.layout_binding.ubo.vertex_binding_max"), in TEST()
67 GPUTestExpectationsParser parser; in TEST() local
68 EXPECT_TRUE(parser.loadTestExpectations(config, line)); in TEST()
[all …]
/external/bcc/tests/cc/
Dtest_usdt_args.cc25 static void verify_register(USDT::ArgumentParser &parser, int arg_size, in verify_register() argument
28 REQUIRE(parser.parse(&arg)); in verify_register()
35 static void verify_register(USDT::ArgumentParser &parser, int arg_size, in verify_register() argument
42 REQUIRE(parser.parse(&arg)); in verify_register()
58 USDT::ArgumentParser_aarch64 parser("4@[x32,200]"); variable
60 USDT::ArgumentParser_powerpc64 parser("4@-12(42)");
62 USDT::ArgumentParser_x64 parser("4@i%ra+1r");
65 REQUIRE(!parser.parse(&arg));
67 for (i = 0; i < 10 && !parser.done(); ++i) {
68 parser.parse(&arg);
[all …]
/external/antlr/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 …]
/external/freetype/src/type1/
Dt1parse.c136 T1_New_Parser( T1_Parser parser, in T1_New_Parser() argument
146 psaux->ps_parser_funcs->init( &parser->root, NULL, NULL, 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 = NULL; in T1_New_Parser()
151 parser->private_len = 0; in T1_New_Parser()
152 parser->private_dict = NULL; 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/jsmn/
Djsmn.h98 JSMN_API void jsmn_init(jsmn_parser *parser);
105 JSMN_API int jsmn_parse(jsmn_parser *parser, const char *js, const size_t len,
112 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, jsmntok_t *tokens, in jsmn_alloc_token() argument
115 if (parser->toknext >= num_tokens) { in jsmn_alloc_token()
118 tok = &tokens[parser->toknext++]; in jsmn_alloc_token()
141 static int jsmn_parse_primitive(jsmn_parser *parser, const char *js, in jsmn_parse_primitive() argument
147 start = parser->pos; in jsmn_parse_primitive()
149 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { in jsmn_parse_primitive()
150 switch (js[parser->pos]) { in jsmn_parse_primitive()
164 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive()
[all …]
/external/libvterm/src/
Dparser.c15 if(vt->parser.callbacks && vt->parser.callbacks->control) in do_control()
16 if((*vt->parser.callbacks->control)(control, vt->parser.cbdata)) in do_control()
26 printf(" leader: %s\n", vt->parser.csi_leader); in do_csi()
27 for(int argi = 0; argi < vt->parser.csi_argi; argi++) { in do_csi()
28 printf(" %lu", CSI_ARG(vt->parser.csi_args[argi])); in do_csi()
29 if(!CSI_ARG_HAS_MORE(vt->parser.csi_args[argi])) in do_csi()
31 printf(" intermed: %s\n", vt->parser.intermed); in do_csi()
35 if(vt->parser.callbacks && vt->parser.callbacks->csi) in do_csi()
36 if((*vt->parser.callbacks->csi)( in do_csi()
37 vt->parser.csi_leaderlen ? vt->parser.csi_leader : NULL, in do_csi()
[all …]
/external/mesa3d/src/compiler/glsl/glcpp/
Dglcpp-parse.y46 yyerror(YYLTYPE *locp, glcpp_parser_t *parser, const char *error);
49 _define_object_macro(glcpp_parser_t *parser,
55 _define_function_macro(glcpp_parser_t *parser,
62 _string_list_create(glcpp_parser_t *parser);
65 _string_list_append_item(glcpp_parser_t *parser, string_list_t *list,
81 _argument_list_create(glcpp_parser_t *parser);
84 _argument_list_append(glcpp_parser_t *parser, argument_list_t *list,
94 _token_create_str(glcpp_parser_t *parser, int type, char *str);
97 _token_create_ival(glcpp_parser_t *parser, int type, int ival);
100 _token_list_create(glcpp_parser_t *parser);
[all …]
/external/python/parse_type/tests/
Dtest_builder.py30 parser = parse.Parser(schema, extra_types)
33 self.ensure_can_parse_all_enum_values(parser,
37 self.assert_match(parser, "Answer: yes", "answer", True)
38 self.assert_match(parser, "Answer: no", "answer", False)
41 self.assert_match(parser, "Answer: YES", "answer", True)
44 self.assert_mismatch(parser, "Answer: __YES__", "answer")
45 self.assert_mismatch(parser, "Answer: yes ", "answer")
46 self.assert_mismatch(parser, "Answer: yes ZZZ", "answer")
54 parser = parse.Parser(schema, extra_types)
57 self.ensure_can_parse_all_enum_values(parser,
[all …]
Dtest_cardinality_field0.py50 parser = parse.Parser(schema, extra_types)
53 self.assert_match(parser, "One: Alice", "person", "Alice")
54 self.assert_match(parser, "One: Bob", "person", "Bob")
57 self.assert_mismatch(parser, "One: ", "person") # Missing.
58 self.assert_mismatch(parser, "One: BAlice", "person") # Similar1.
59 self.assert_mismatch(parser, "One: Boby", "person") # Similar2.
60 self.assert_mismatch(parser, "One: a", "person") # INVALID ...
68 parser = parse.Parser(schema, extra_types)
71 self.assert_match(parser, "Optional: ", "person", None)
72 self.assert_match(parser, "Optional: Alice", "person", "Alice")
[all …]
/external/grpc-grpc/src/core/lib/http/
Dparser.cc40 static grpc_error* handle_response_line(grpc_http_parser* parser) { in handle_response_line() argument
41 uint8_t* beg = parser->cur_line; in handle_response_line()
43 uint8_t* end = beg + parser->cur_line_length; in handle_response_line()
71 parser->http.response->status = in handle_response_line()
81 static grpc_error* handle_request_line(grpc_http_parser* parser) { in handle_request_line() argument
82 uint8_t* beg = parser->cur_line; in handle_request_line()
84 uint8_t* end = beg + parser->cur_line_length; in handle_request_line()
93 parser->http.request->method = in handle_request_line()
101 parser->http.request->path = buf2str(beg, static_cast<size_t>(cur - beg - 1)); in handle_request_line()
122 parser->http.request->version = GRPC_HTTP_HTTP10; in handle_request_line()
[all …]
/external/pdfium/core/fpdfapi/parser/
Dcpdf_syntax_parser_unittest.cpp20 CPDF_SyntaxParser parser(pdfium::MakeRetain<CFX_ReadOnlyMemoryStream>( in TEST() local
22 EXPECT_EQ("", parser.ReadHexString()); in TEST()
23 EXPECT_EQ(0, parser.GetPos()); in TEST()
29 CPDF_SyntaxParser parser(pdfium::MakeRetain<CFX_ReadOnlyMemoryStream>( in TEST() local
31 EXPECT_EQ("", parser.ReadHexString()); in TEST()
32 EXPECT_EQ(2, parser.GetPos()); in TEST()
38 CPDF_SyntaxParser parser(pdfium::MakeRetain<CFX_ReadOnlyMemoryStream>( in TEST() local
40 EXPECT_EQ("\x12\xb0", parser.ReadHexString()); in TEST()
41 EXPECT_EQ(4, parser.GetPos()); in TEST()
47 CPDF_SyntaxParser parser(pdfium::MakeRetain<CFX_ReadOnlyMemoryStream>( in TEST() local
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtcp_packet_unittest.cc55 RtcpPacketParser parser; in TEST() local
56 parser.Parse(packet->Buffer(), packet->Length()); in TEST()
58 EXPECT_EQ(1, parser.sender_report()->num_packets()); in TEST()
59 EXPECT_EQ(kSenderSsrc, parser.sender_report()->Ssrc()); in TEST()
60 EXPECT_EQ(0x11111111U, parser.sender_report()->NtpSec()); in TEST()
61 EXPECT_EQ(0x22222222U, parser.sender_report()->NtpFrac()); in TEST()
62 EXPECT_EQ(0x33333333U, parser.sender_report()->RtpTimestamp()); in TEST()
63 EXPECT_EQ(0x44444444U, parser.sender_report()->PacketCount()); in TEST()
64 EXPECT_EQ(0x55555555U, parser.sender_report()->OctetCount()); in TEST()
65 EXPECT_EQ(0, parser.report_block()->num_packets()); in TEST()
[all …]
/external/python/cpython3/Lib/test/
Dtest_pyexpat.py19 self.parser = expat.ParserCreate(namespace_separator='!')
22 self.assertIs(self.parser.buffer_text, False)
24 self.parser.buffer_text = x
25 self.assertIs(self.parser.buffer_text, bool(x))
28 self.assertIs(self.parser.namespace_prefixes, False)
30 self.parser.namespace_prefixes = x
31 self.assertIs(self.parser.namespace_prefixes, bool(x))
34 self.assertIs(self.parser.ordered_attributes, False)
36 self.parser.ordered_attributes = x
37 self.assertIs(self.parser.ordered_attributes, bool(x))
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DXmlResourceParserImplTest.java39 private XmlResourceParser parser; field in XmlResourceParserImplTest
45 parser = context.getResources().getXml(R.xml.preferences); in setUp()
50 parser.close(); in tearDown()
54 while (parser.next() != event) { in parseUntilNext()
55 if (parser.getEventType() == XmlResourceParser.END_DOCUMENT) { in parseUntilNext()
72 parser = new XmlResourceParserImpl(document, "file", R.class.getPackage().getName(), in forgeAndOpenDocument()
86 return parser.getAttributeCount() + 1; in attributeIndexOutOfIndex()
91 assertThat(parser).isNotNull(); in testGetXmlInt()
92 int evt = parser.next(); in testGetXmlInt()
98 assertThat(parser).isNotNull(); in testGetXmlString()
[all …]
/external/u-boot/tools/buildman/
Dcmdline.py15 parser = OptionParser()
16 parser.add_option('-b', '--branch', type='string',
18 parser.add_option('-B', '--bloat', dest='show_bloat',
21 parser.add_option('--boards', type='string', action='append',
23 parser.add_option('-c', '--count', dest='count', type='int',
25 parser.add_option('-C', '--force-reconfig', dest='force_reconfig',
28 parser.add_option('-d', '--detail', dest='show_detail',
31 parser.add_option('-D', '--config-only', action='store_true', default=False,
33 parser.add_option('-e', '--show_errors', action='store_true',
35 parser.add_option('-E', '--warnings-as-errors', action='store_true',
[all …]
/external/antlr/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/python/cpython2/Lib/test/
Dtest_pyexpat.py15 self.parser = expat.ParserCreate(namespace_separator='!')
18 self.assertIs(self.parser.buffer_text, False)
20 self.parser.buffer_text = x
21 self.assertIs(self.parser.buffer_text, bool(x))
24 self.assertIs(self.parser.namespace_prefixes, False)
26 self.parser.namespace_prefixes = x
27 self.assertIs(self.parser.namespace_prefixes, bool(x))
30 self.assertIs(self.parser.returns_unicode, test_support.have_unicode)
32 self.parser.returns_unicode = x
33 self.assertIs(self.parser.returns_unicode, bool(x))
[all …]
/external/freetype/src/type42/
Dt42parse.c136 t42_parser_init( T42_Parser parser, in t42_parser_init() argument
145 psaux->ps_parser_funcs->init( &parser->root, NULL, NULL, memory ); in t42_parser_init()
147 parser->stream = stream; in t42_parser_init()
148 parser->base_len = 0; in t42_parser_init()
149 parser->base_dict = NULL; in t42_parser_init()
150 parser->in_memory = 0; in t42_parser_init()
189 parser->base_dict = (FT_Byte*)stream->base + stream->pos; in t42_parser_init()
190 parser->base_len = size; in t42_parser_init()
191 parser->in_memory = 1; in t42_parser_init()
200 if ( FT_ALLOC( parser->base_dict, size ) || in t42_parser_init()
[all …]
/external/icu/icu4c/source/i18n/
Dnumparse_impl.cpp39 LocalPointer<NumberParserImpl> parser(new NumberParserImpl(parseFlags)); in createSimpleParser() local
42 parser->fLocalMatchers.ignorables = {parseFlags}; in createSimpleParser()
43 IgnorablesMatcher& ignorables = parser->fLocalMatchers.ignorables; in createSimpleParser()
56 parser->fLocalMatchers.affixTokenMatcherWarehouse = {&affixSetupData}; in createSimpleParser()
57parser->fLocalMatchers.affixMatcherWarehouse = {&parser->fLocalMatchers.affixTokenMatcherWarehouse… in createSimpleParser()
58 parser->fLocalMatchers.affixMatcherWarehouse.createAffixMatchers( in createSimpleParser()
59 patternInfo, *parser, ignorables, parseFlags, status); in createSimpleParser()
64 parser->addMatcher(parser->fLocalMatchers.ignorables); in createSimpleParser()
65 parser->addMatcher(parser->fLocalMatchers.decimal = {symbols, grouper, parseFlags}); in createSimpleParser()
66 parser->addMatcher(parser->fLocalMatchers.minusSign = {symbols, false}); in createSimpleParser()
[all …]

12345678910>>...152