Home
last modified time | relevance | path

Searched refs:tokenizer (Results 1 – 5 of 5) 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/connectivity/shill/
Dscope_logger.cc133 StringTokenizer tokenizer(expression, "+-"); in EnableScopesByName() local
134 tokenizer.set_options(StringTokenizer::RETURN_DELIMS); in EnableScopesByName()
135 while (tokenizer.GetNext()) { in EnableScopesByName()
136 if (tokenizer.token_is_delim()) { in EnableScopesByName()
137 enable_scope = (tokenizer.token() == "+"); in EnableScopesByName()
141 if (tokenizer.token().empty()) in EnableScopesByName()
146 if (tokenizer.token() == kScopeNames[i]) { in EnableScopesByName()
152 << "Unknown scope '" << tokenizer.token() << "'"; in EnableScopesByName()
/system/core/libutils/
DPropertyMap.cpp121 Tokenizer* tokenizer; in load() local
122 status_t status = Tokenizer::open(filename, &tokenizer); in load()
134 Parser parser(map, tokenizer); in load()
139 tokenizer->getFilename().string(), tokenizer->getLineNumber(), in load()
148 delete tokenizer; in load()
156 PropertyMap::Parser::Parser(PropertyMap* map, Tokenizer* tokenizer) : in Parser() argument
157 mMap(map), mTokenizer(tokenizer) { in Parser()
/system/core/include/utils/
DPropertyMap.h89 Parser(PropertyMap* map, Tokenizer* tokenizer);
/system/core/init/
DAndroid.mk28 parser/tokenizer.cpp \