/external/smack/src/org/xbill/DNS/ |
Address.java | 77 String [] tokens = s.split(":", -1); local 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[i].indexOf('.') >= 0) [all...] |
/frameworks/base/core/java/com/google/android/util/ |
SmileyParser.java | 64 ArrayList<Token> tokens = part.getTokens(); local 65 int len = tokens.size(); 67 Token token = tokens.get(i);
|
/frameworks/base/services/java/com/android/server/wm/ |
Watermark.java | 54 Watermark(Display display, DisplayMetrics dm, SurfaceSession session, String[] tokens) { 57 for (int i=0; i<tokens.length; i++) { 58 Log.i(WindowManagerService.TAG, " TOKEN #" + i + ": " + tokens[i]); 63 mTokens = tokens; 84 int fontSize = WindowManagerService.getPropertyInt(tokens, 1, 95 mDeltaX = WindowManagerService.getPropertyInt(tokens, 2, 97 mDeltaY = WindowManagerService.getPropertyInt(tokens, 3, 99 int shadowColor = WindowManagerService.getPropertyInt(tokens, 4, 101 int color = WindowManagerService.getPropertyInt(tokens, 5, 103 int shadowRadius = WindowManagerService.getPropertyInt(tokens, 6 [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/ |
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 that have the same value for <tt>channel</tt>. The stream skip 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/ |
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; }
|
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/ |
tokens_test.py | 20 from closure_linter.common import tokens namespace 24 return tokens.Token('foo', None, 1, 1) 56 # Tokens on same line 62 # Tokens on different lines 73 # Tokens on same line 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/antlr/antlr-3.4/runtime/Python/unittests/ |
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/webkit/Source/ThirdParty/ANGLE/src/compiler/ |
glslang.l | 332 void HandlePragma(const char **tokens, int numTokens) 335 if (!strcmp(tokens[0], "optimize")) { 341 if (strcmp(tokens[1], "(")) { 346 if (!strcmp(tokens[2], "on")) 348 else if (!strcmp(tokens[2], "off")) 355 if (strcmp(tokens[3], ")")) { 359 } else if (!strcmp(tokens[0], "debug")) { 365 if (strcmp(tokens[1], "(")) { 370 if (!strcmp(tokens[2], "on")) 372 else if (!strcmp(tokens[2], "off") [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/tree-parser/ |
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 = ANTLR3::CommonTokenStream.new( lexer [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
linux.cc | 157 std::vector<std::string> tokens; local 158 if (2 != split(line, ':', &tokens)) { 162 size_t pos = tokens[0].length() - 1; 163 while ((pos > 0) && isspace(tokens[0][pos])) { 166 tokens[0].erase(pos + 1); 169 while (pos < tokens[1].length() && isspace(tokens[1][pos])) { 172 tokens[1].erase(0, pos); 173 *key = tokens[0]; 174 *value = tokens[1] [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/ |
MachineProbe.java | 102 List<String> tokens = new ArrayList<String>(); local 104 tokens.add(label.toString(g)); 105 return tokens.toString(); 110 * tokens (from grammar) associated with path through NFA following the 117 List<Token> tokens = new ArrayList<Token>(); local 137 tokens.add(token); 145 return tokens;
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/ |
ANTLRCommonTreeNodeStream.h | 43 id <ANTLRTokenStream> tokens; variable 61 @property (retain, getter=getTokens,setter=setTokens:) id<ANTLRTokenStream> tokens; variable 87 - (void) setTokenStream:(id<ANTLRTokenStream>) tokens;
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/ |
ANTLRCommonTreeNodeStream.h | 43 id <ANTLRTokenStream> tokens; variable 61 @property (retain, getter=getTokens,setter=setTokens:) id<ANTLRTokenStream> tokens; variable 87 - (void) setTokenStream:(id<ANTLRTokenStream>) tokens;
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/ |
ANTLRCommonTreeNodeStream.h | 43 id <ANTLRTokenStream> tokens; variable 61 @property (retain, getter=getTokens,setter=setTokens:) id<ANTLRTokenStream> tokens; variable 87 - (void) setTokenStream:(id<ANTLRTokenStream>) tokens;
|
/external/chromium/chrome/common/net/gaia/ |
gaia_authenticator.cc | 232 typedef vector<pair<string, string> > Tokens; 233 Tokens tokens; local 234 base::SplitStringIntoKeyValuePairs(message_text, '=', '\n', &tokens); 235 for (Tokens::iterator i = tokens.begin(); i != tokens.end(); ++i) { 298 // Helper method that extracts tokens from a successful reply, and saves them 302 vector<pair<string, string> > tokens; local 303 base::SplitStringIntoKeyValuePairs(response, '=', '\n', &tokens); 320 vector<pair<string, string> > tokens; local [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ProfileAwareUriMatcher.java | 70 String[] tokens = PATH_SPLIT_PATTERN.split(path); local 71 if (tokens != null) { 75 // also count as lookup tokens, since the vcard is specified by lookup key. 77 for (int i = 0; i < tokens.length; i++) { 78 String token = tokens[i];
|
/external/chromium/testing/gmock/scripts/generator/cpp/ |
ast.py | 24 # * Tokens should never be exported, need to convert to Nodes 340 # TODO(nnorwitz): bases are tokens, do name comparision. 383 # TODO(nnorwitz): parameters are tokens, do name comparision. 462 def _GetTemplateEnd(self, tokens, start): 466 token = tokens[end] 474 return tokens[start:end-1], end 476 def ToType(self, tokens): 489 # Partition tokens into name and modifier tokens. 504 end = len(tokens) [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/ |
test-streams.rb | 245 attr_accessor :tokens 247 @tokens = [] 250 @tokens.shift 264 @source2.tokens << new_token( 10, :channel => ANTLR3::HIDDEN ) << new_token( 11 ) 268 @stream.tokens.length.should == 0 273 @stream.tokens.should have( 2 ).things 284 @source.tokens << new_token(12) 292 @source.tokens << new_token(12, :channel => ANTLR3::HIDDEN_CHANNEL) << 300 @source.tokens << new_token(12) << 309 @source.tokens << new_token(12) << new_token(13 [all...] |
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/ |
gUnitAdapter.java | 64 final CommonTokenStream tokens = new CommonTokenStream(lexer); local 66 final gUnitParser parser = new gUnitParser(tokens, grammarInfo);
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/BuildOptions/ |
DebugGrammar.g3 | 42 tokens 87 // START:tokens 100 // END:tokens
|
ProfileGrammar.g3 | 42 tokens 87 // START:tokens 100 // END:tokens
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/ |
TestDotTreeGenerator.cs | 48 CommonTokenStream tokens = new CommonTokenStream( lexer ); 49 SimpleExpressionParser parser = new SimpleExpressionParser( tokens );
|
/external/antlr/antlr-3.4/runtime/Perl5/examples/tweak/ |
T.g | 3 * extra text into a stream of tokens and how to replace a token 42 $tokens->insert_after($lcurly, "\nint $id;");
|
/external/antlr/antlr-3.4/runtime/Python/antlr3/ |
streams.py | 37 from antlr3.tokens import Token, CommonToken 246 @brief A stream of tokens accessing tokens from a TokenSource 258 i<0 indicates tokens in the past. So -1 is previous token and -2 is 259 two tokens ago. LT(0) is undefined. For i>=n, return Token.EOFToken. 280 If you don't want to buffer up tokens, then this method makes no 291 Where is this stream pulling tokens from? This is not the name, but 300 Return the text of all tokens from start to stop, inclusive. 301 If the stream does not buffer all the tokens then it can just 609 @brief The most common stream of tokens [all...] |
/external/antlr/antlr-3.4/runtime/Python/ |
mkdoxy.sh | 10 for f in __init__ exceptions constants dfa tokens streams recognizers; do
|