/external/llvm/tools/llvm-c-test/ |
H A D | disassemble.c | 62 static void handle_line(char **tokens, int ntokens) { argument 65 char *triple = tokens[0]; 71 disbuf[disbuflen++] = strtol(tokens[i], NULL, 16);
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d1x/tools/ |
H A D | dxbc2tgsi.cpp | 71 const struct tgsi_token* tokens = (const struct tgsi_token*)sm4_to_tgsi(*sm4); local 72 if(tokens) 76 tgsi_dump(tokens, 0);
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
H A D | UserAgent.java | 50 /** Product tokens. 60 StringBuffer tokens = new StringBuffer(); 64 tokens.append((String) it.next()); 67 return tokens.toString();
|
/external/smack/src/org/xbill/DNS/ |
H A D | Address.java | 77 String [] tokens = s.split(":", -1); 80 int last = tokens.length - 1; 82 if (tokens[0].length() == 0) { 83 // If the first two tokens are empty, it means the string 86 if (last - first > 0 && tokens[1].length() == 0) 92 if (tokens[last].length() == 0) { 93 // If the last two tokens are empty, it means the string 96 if (last - first > 0 && tokens[last - 1].length() == 0) 107 if (tokens[i].length() == 0) { 114 if (tokens[ [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/ |
H A D | streams.rb | 72 parsers with the means to sequential walk through series of tokens. 79 In a similar fashion to CommonTokenStream, CommonTreeNodeStream feeds tokens 82 the two-dimensional shape of the tree using special UP and DOWN tokens. The 99 is the <i>integer token type of the token</i> <tt>k</tt> tokens ahead of the 108 <b>TokenStreams</b>, this is the <i>full token structure</i> <tt>k</tt> tokens 282 sequence of tokens. Unlike simple character-based streams, such as StringStream, 287 <i>channel</i> feature, which allows you to hold on to all tokens of interest 288 while only presenting a specific set of interesting tokens to a parser. For 291 whitespace to channel value HIDDEN as it creates the tokens. 295 yield tokens tha 1044 def tokens( start = nil, stop = nil ) method in class:ANTLR3.that.CommonTokenStream [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
H A D | CommonTreeNodeStream.java | 45 protected TokenStream tokens; field in class:CommonTreeNodeStream 108 public TokenStream getTokenStream() { return tokens; } 110 public void setTokenStream(TokenStream tokens) { this.tokens = tokens; } argument
|
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/ |
H A D | tokens_test.py | 20 from closure_linter.common import tokens namespace 24 return tokens.Token('foo', None, 1, 1) 82 a = tokens.Token('foo', 'fakeType1', 1, 1) 87 a = tokens.Token('foo', 'fakeType1', 1, 1) 92 a = tokens.Token('foo', 'fakeType1', 1, 1)
|
/external/chromium_org/third_party/closure_linter/closure_linter/common/ |
H A D | tokens_test.py | 20 from closure_linter.common import tokens namespace 24 return tokens.Token('foo', None, 1, 1) 82 a = tokens.Token('foo', 'fakeType1', 1, 1) 87 a = tokens.Token('foo', 'fakeType1', 1, 1) 92 a = tokens.Token('foo', 'fakeType1', 1, 1)
|
/external/chromium_org/third_party/cython/src/Cython/Plex/ |
H A D | Lexicons.py | 32 tokens = None variable in class:State 34 def __init__(self, name, tokens): 36 self.tokens = tokens 56 State(name, tokens) 59 and |tokens| is a list of token definitions as 93 Associated with each state is a set of possible tokens. When scanning, 94 only tokens associated with the current state are recognised. 126 for token in spec.tokens:
|
/external/deqp/framework/delibs/decpp/ |
H A D | deStringUtil.cpp | 86 //! Split a string into tokens. If `delim` is `'\0'`, separate by spans of 150 vector <string> tokens(splitString(" foo bar\n\tbaz ")); 151 DE_TEST_ASSERT(tokens.size() == 3); 152 DE_TEST_ASSERT(tokens[0] == "foo"); 153 DE_TEST_ASSERT(tokens[1] == "bar"); 154 DE_TEST_ASSERT(tokens[2] == "baz");
|
/external/antlr/antlr-3.4/runtime/Python/unittests/ |
H A D | testtreewizard.py | 138 self.tokens = [ 141 self.wizard = TreeWizard(self.adaptor, tokenNames=self.tokens) 240 self.tokens = [ 265 tokenNames=self.tokens 284 wiz = TreeWizard(self.adaptor, self.tokens) 292 wiz = TreeWizard(self.adaptor, self.tokens) 300 wiz = TreeWizard(self.adaptor, self.tokens) 308 wiz = TreeWizard(self.adaptor, self.tokens) 316 wiz = TreeWizard(self.adaptor, self.tokens) 324 wiz = TreeWizard(self.adaptor, self.tokens) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_parse.c | 36 const struct tgsi_token *tokens ) 38 ctx->FullHeader.Header = *(struct tgsi_header *) &tokens[0]; 40 ctx->FullHeader.Processor = *(struct tgsi_processor *) &tokens[1]; 46 ctx->Tokens = tokens; 306 tgsi_dup_tokens(const struct tgsi_token *tokens) argument 308 unsigned n = tgsi_num_tokens(tokens); 312 memcpy(new_tokens, tokens, bytes); 318 * Allocate memory for num_tokens tokens. 329 tgsi_dump_tokens(const struct tgsi_token *tokens) argument 331 const unsigned *dwords = (const unsigned *)tokens; [all...] |
/external/libvpx/libvpx/vp9/encoder/ |
H A D | vp9_encodemb.c | 96 // to scan previous tokens to work out the correct context. 115 vp9_token_state tokens[1025][2]; local 146 tokens[eob][0].rate = 0; 147 tokens[eob][0].error = 0; 148 tokens[eob][0].next = default_eob; 149 tokens[eob][0].token = EOB_TOKEN; 150 tokens[eob][0].qc = 0; 151 *(tokens[eob] + 1) = *(tokens[eob] + 0); 165 error0 = tokens[nex [all...] |
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_parse.c | 36 const struct tgsi_token *tokens ) 38 ctx->FullHeader.Header = *(struct tgsi_header *) &tokens[0]; 40 ctx->FullHeader.Processor = *(struct tgsi_processor *) &tokens[1]; 46 ctx->Tokens = tokens; 306 tgsi_dup_tokens(const struct tgsi_token *tokens) argument 308 unsigned n = tgsi_num_tokens(tokens); 312 memcpy(new_tokens, tokens, bytes); 318 * Allocate memory for num_tokens tokens. 329 tgsi_dump_tokens(const struct tgsi_token *tokens) argument 331 const unsigned *dwords = (const unsigned *)tokens; [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
H A D | svga_state_vs.c | 79 const struct tgsi_token *tokens; local 93 tokens = ureg_get_tokens(ureg, &num_tokens); 97 return tokens; 118 FREE((void *) vs->base.tokens); 119 vs->base.tokens = dummy; 136 result->tokens, 137 result->nr_tokens * sizeof result->tokens[0]);
|
/external/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_state_vs.c | 79 const struct tgsi_token *tokens; local 93 tokens = ureg_get_tokens(ureg, &num_tokens); 97 return tokens; 118 FREE((void *) vs->base.tokens); 119 vs->base.tokens = dummy; 136 result->tokens, 137 result->nr_tokens * sizeof result->tokens[0]);
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
H A D | shaders_cache.c | 78 struct tgsi_token *tokens; local 80 tokens = (struct tgsi_token *) MALLOC(num_tokens * sizeof(tokens[0])); 82 tgsi_text_translate(txt, tokens, num_tokens); 85 tgsi_dump(tokens, 0); 88 return tokens; 227 shader->tokens = ureg_finalize(ureg); 228 if(!shader->tokens) 437 struct tgsi_token *tokens = tokens_from_assembly(txt, num_tokens); local 443 state.tokens [all...] |
/external/mesa3d/src/gallium/state_trackers/vega/ |
H A D | shaders_cache.c | 78 struct tgsi_token *tokens; local 80 tokens = (struct tgsi_token *) MALLOC(num_tokens * sizeof(tokens[0])); 82 tgsi_text_translate(txt, tokens, num_tokens); 85 tgsi_dump(tokens, 0); 88 return tokens; 227 shader->tokens = ureg_finalize(ureg); 228 if(!shader->tokens) 437 struct tgsi_token *tokens = tokens_from_assembly(txt, num_tokens); local 443 state.tokens [all...] |
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
H A D | CssTokensTest.java | 46 CssTokens tokens = CssTokens.lex(s); 50 tokens.normalizedCss, 51 CssTokens.lex(tokens.normalizedCss).normalizedCss); 52 return tokens; 57 CssTokens tokens = lex("([foo[[||]])"); 58 assertEquals("([foo[[||]]])", tokens.normalizedCss); 63 for (CssTokens.TokenIterator it = tokens.iterator(); it.hasNext();) { 65 partners.add(tokens.brackets.partner(it.tokenIndex())); 118 CssTokens tokens = lex(input); 119 assertEquals(input, golden != null ? golden : "", tokens [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/tree-parser/ |
H A D | basic.rb | 33 tokens = ANTLR3::CommonTokenStream.new( lexer ) 34 parser = FlatList::Parser.new( tokens ) 38 nodes.token_stream = tokens 69 tokens = ANTLR3::CommonTokenStream.new( lexer ) 70 parser = SimpleTree::Parser.new( tokens ) 74 nodes.token_stream = tokens 108 tokens = ANTLR3::CommonTokenStream.new( lexer ) 109 parser = FlatVsTreeDecision::Parser.new( tokens ) 113 nodes.token_stream = tokens 146 tokens [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
H A D | u_simple_shaders.c | 382 struct tgsi_token tokens[1000]; local 383 struct pipe_shader_state state = {tokens}; 390 if (!tgsi_text_translate(text, tokens, Elements(tokens))) { 396 tgsi_dump(state.tokens, 0); 471 struct tgsi_token tokens[1000]; local 472 struct pipe_shader_state state = {tokens}; 479 if (!tgsi_text_translate(text, tokens, Elements(tokens))) { 484 tgsi_dump(state.tokens, [all...] |
/external/chromium_org/third_party/webrtc/base/ |
H A D | linux.cc | 215 std::vector<std::string> tokens; local 216 if (2 != split(line, ':', &tokens)) { 220 size_t pos = tokens[0].length() - 1; 221 while ((pos > 0) && isspace(tokens[0][pos])) { 224 tokens[0].erase(pos + 1); 227 while (pos < tokens[1].length() && isspace(tokens[1][pos])) { 230 tokens[1].erase(0, pos); 231 *key = tokens[0]; 232 *value = tokens[ [all...] |
/external/chromium_org/tools/gn/ |
H A D | input_file_manager.cc | 27 std::vector<Token>* tokens, 66 *tokens = Tokenizer::Tokenize(file, err); 71 *root = Parser::Parse(*tokens, err); 237 std::vector<Token>** tokens, 245 *tokens = &data->tokens; 279 std::vector<Token> tokens; local 282 &tokens, &root, err); 298 data->tokens.swap(tokens); 23 DoLoadFile(const LocationRange& origin, const BuildSettings* build_settings, const SourceFile& name, InputFile* file, std::vector<Token>* tokens, scoped_ptr<ParseNode>* root, Err* err) argument 235 AddDynamicInput(const SourceFile& name, InputFile** file, std::vector<Token>** tokens, scoped_ptr<ParseNode>** parse_root) argument [all...] |
H A D | parser_unittest.cc | 23 std::vector<Token> tokens; local 26 ASSERT_TRUE(GetTokens(&input_file, &tokens)); 29 scoped_ptr<ParseNode> result = Parser::Parse(tokens, &err); 41 std::vector<Token> tokens; local 44 ASSERT_TRUE(GetTokens(&input_file, &tokens)); 47 scoped_ptr<ParseNode> result = Parser::ParseExpression(tokens, &err); 63 std::vector<Token> tokens = Tokenizer::Tokenize(&input_file, &err); local 65 scoped_ptr<ParseNode> result = Parser::Parse(tokens, &err); 81 std::vector<Token> tokens = Tokenizer::Tokenize(&input_file, &err); local 83 scoped_ptr<ParseNode> result = Parser::ParseExpression(tokens, [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_simple_shaders.c | 382 struct tgsi_token tokens[1000]; local 383 struct pipe_shader_state state = {tokens}; 390 if (!tgsi_text_translate(text, tokens, Elements(tokens))) { 396 tgsi_dump(state.tokens, 0); 471 struct tgsi_token tokens[1000]; local 472 struct pipe_shader_state state = {tokens}; 479 if (!tgsi_text_translate(text, tokens, Elements(tokens))) { 484 tgsi_dump(state.tokens, [all...] |