Home
last modified time | relevance | path

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

12345678910>>...133

/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/pdfium/core/fxcrt/xml/
Dcfx_xmlsyntaxparser_unittest.cpp34 CFX_XMLSyntaxParser parser(stream); in TEST() local
35 ASSERT_EQ(FX_XmlSyntaxResult::ElementOpen, parser.DoSyntaxParse()); in TEST()
36 ASSERT_EQ(FX_XmlSyntaxResult::TagName, parser.DoSyntaxParse()); in TEST()
37 ASSERT_EQ(L"script", parser.GetTagName()); in TEST()
39 ASSERT_EQ(FX_XmlSyntaxResult::AttriName, parser.DoSyntaxParse()); in TEST()
40 ASSERT_EQ(L"contentType", parser.GetAttributeName()); in TEST()
41 ASSERT_EQ(FX_XmlSyntaxResult::AttriValue, parser.DoSyntaxParse()); in TEST()
42 ASSERT_EQ(L"application/x-javascript", parser.GetAttributeValue()); in TEST()
44 ASSERT_EQ(FX_XmlSyntaxResult::ElementBreak, parser.DoSyntaxParse()); in TEST()
45 ASSERT_EQ(FX_XmlSyntaxResult::Text, parser.DoSyntaxParse()); in TEST()
[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/python/cpython3/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/expat/lib/
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/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/minijail/tools/
Dparser_unittest.py30 import parser # pylint: disable=wrong-import-order
42 parser_state = parser.ParserState('<memory>')
90 with self.assertRaisesRegex(parser.ParseException,
102 self.parser = parser.PolicyParser(
107 return list(self.parser._parser_state.tokenize([line]))[0]
112 self.parser.parse_value(self._tokenize('0x80000000')), 0x80000000)
115 self.parser.parse_value(self._tokenize('0x8000000000000000')),
121 with self.assertRaisesRegex(parser.ParseException,
123 self.parser.parse_value(self._tokenize('0x100000000'))
124 with self.assertRaisesRegex(parser.ParseException,
[all …]
/external/pdfium/core/fpdfapi/parser/
Dcpdf_syntax_parser_unittest.cpp21 CPDF_SyntaxParser parser; in TEST() local
22 parser.InitParser(pdfium::MakeRetain<CFX_MemoryStream>(data, 0, false), 0); in TEST()
23 EXPECT_EQ("", parser.ReadHexString()); in TEST()
24 EXPECT_EQ(0, parser.GetPos()); in TEST()
30 CPDF_SyntaxParser parser; in TEST() local
31 parser.InitParser(pdfium::MakeRetain<CFX_MemoryStream>(data, 2, false), 0); in TEST()
32 EXPECT_EQ("", parser.ReadHexString()); in TEST()
33 EXPECT_EQ(2, parser.GetPos()); in TEST()
39 CPDF_SyntaxParser parser; in TEST() local
40 parser.InitParser(pdfium::MakeRetain<CFX_MemoryStream>(data, 4, false), 0); in TEST()
[all …]
/external/jsmn/
Djsmn.c6 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, in jsmn_alloc_token() argument
9 if (parser->toknext >= num_tokens) { in jsmn_alloc_token()
12 tok = &tokens[parser->toknext++]; in jsmn_alloc_token()
35 static int jsmn_parse_primitive(jsmn_parser *parser, const char *js, in jsmn_parse_primitive() argument
40 start = parser->pos; in jsmn_parse_primitive()
42 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { in jsmn_parse_primitive()
43 switch (js[parser->pos]) { in jsmn_parse_primitive()
52 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive()
53 parser->pos = start; in jsmn_parse_primitive()
59 parser->pos = start; in jsmn_parse_primitive()
[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/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/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 …]
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/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.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,
52 _string_list_create(glcpp_parser_t *parser);
55 _string_list_append_item(glcpp_parser_t *parser, string_list_t *list,
71 _argument_list_create(glcpp_parser_t *parser);
74 _argument_list_append(glcpp_parser_t *parser, argument_list_t *list,
84 _token_create_str(glcpp_parser_t *parser, int type, char *str);
87 _token_create_ival(glcpp_parser_t *parser, int type, int ival);
90 _token_list_create(glcpp_parser_t *parser);
[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/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/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/expat/tests/
Druntests.c113 static XML_Parser parser = NULL; variable
119 parser = XML_ParserCreate(NULL); in basic_setup()
120 if (parser == NULL) in basic_setup()
127 if (parser != NULL) { in basic_teardown()
128 XML_ParserFree(parser); in basic_teardown()
129 parser = NULL; in basic_teardown()
138 _xml_failure(XML_Parser parser, const char *file, int line) in _xml_failure() argument
141 enum XML_Error err = XML_GetErrorCode(parser); in _xml_failure()
148 XML_GetCurrentLineNumber(parser), in _xml_failure()
149 XML_GetCurrentColumnNumber(parser), in _xml_failure()
[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/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('-c', '--count', dest='count', type='int',
23 parser.add_option('-C', '--force-reconfig', dest='force_reconfig',
26 parser.add_option('-d', '--detail', dest='show_detail',
29 parser.add_option('-D', '--config-only', action='store_true', default=False,
31 parser.add_option('-e', '--show_errors', action='store_true',
33 parser.add_option('-E', '--warnings-as-errors', action='store_true',
35 parser.add_option('-f', '--force-build', dest='force_build',
[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/icu/icu4c/source/i18n/
Dnumparse_impl.cpp39 LocalPointer<NumberParserImpl> parser(new NumberParserImpl(parseFlags)); in createSimpleParser() local
42 parser->fLocalMatchers.ignorables = {unisets::DEFAULT_IGNORABLES}; 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>>...133