Home
last modified time | relevance | path

Searched refs:tokenizer (Results 1 – 6 of 6) sorted by relevance

/system/core/init/parser/
Dtokenizer_test.cpp26 Tokenizer tokenizer(data); \
27 ASSERT_EQ(Tokenizer::TOK_START, tokenizer.current().type)
30 ASSERT_TRUE(tokenizer.Next()); \
31 ASSERT_EQ(test_text, tokenizer.current().text); \
32 ASSERT_EQ(Tokenizer::TOK_TEXT, tokenizer.current().type)
35 ASSERT_TRUE(tokenizer.Next()); \
36 ASSERT_EQ(Tokenizer::TOK_NEWLINE, tokenizer.current().type)
40 ASSERT_FALSE(tokenizer.Next()); in TEST()
46 ASSERT_FALSE(tokenizer.Next()); in TEST()
52 ASSERT_FALSE(tokenizer.Next()); in TEST()
[all …]
/system/core/init/
Dtokenizer_test.cpp59 TEST(tokenizer, null) { in TEST() argument
63 TEST(tokenizer, simple_oneline) { in TEST() argument
67 TEST(tokenizer, simple_multiline) { in TEST() argument
71 TEST(tokenizer, preceding_space) { in TEST() argument
77 TEST(tokenizer, comments) { in TEST() argument
88 TEST(tokenizer, control_chars) { in TEST() argument
117 TEST(tokenizer, cr_lf) { in TEST() argument
138 TEST(tokenizer, quoted) { in TEST() argument
DAndroid.bp134 "tokenizer.cpp",
260 "tokenizer.cpp",
/system/core/property_service/libpropertyinfoserializer/
Dproperty_info_file.cpp60 auto tokenizer = SpaceTokenizer(line); in ParsePropertyInfoLine() local
62 auto property = tokenizer.GetNext(); in ParsePropertyInfoLine()
68 auto context = tokenizer.GetNext(); in ParsePropertyInfoLine()
75 auto exact_match = tokenizer.GetNext(); in ParsePropertyInfoLine()
79 auto type = tokenizer.GetNext(); in ParsePropertyInfoLine()
82 type = tokenizer.GetNext(); in ParsePropertyInfoLine()
/system/core/libutils/
DPropertyMap.cpp117 Tokenizer* tokenizer; in load() local
118 status_t status = Tokenizer::open(filename, &tokenizer); in load()
130 Parser parser(map, tokenizer); in load()
135 tokenizer->getFilename().string(), tokenizer->getLineNumber(), in load()
144 delete tokenizer; in load()
152 PropertyMap::Parser::Parser(PropertyMap* map, Tokenizer* tokenizer) : in Parser() argument
153 mMap(map), mTokenizer(tokenizer) { in Parser()
/system/core/libutils/include/utils/
DPropertyMap.h89 Parser(PropertyMap* map, Tokenizer* tokenizer);