Home
last modified time | relevance | path

Searched refs:getText (Results 1 – 25 of 605) sorted by relevance

12345678910>>...25

/external/clang/unittests/AST/
DCommentLexer.cpp138 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F()
158 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F()
181 ASSERT_EQ(StringRef(" Aaa"), Toks[0].getText()); in TEST_F()
183 ASSERT_EQ(StringRef("\\"), Toks[1].getText()); in TEST_F()
187 ASSERT_EQ(StringRef(" Bbb"), Toks[3].getText()); in TEST_F()
189 ASSERT_EQ(StringRef("\\"), Toks[4].getText()); in TEST_F()
191 ASSERT_EQ(StringRef(" "), Toks[5].getText()); in TEST_F()
195 ASSERT_EQ(StringRef(" Ccc?" "?/"), Toks[7].getText()); in TEST_F()
219 ASSERT_EQ(StringRef(" Aaa"), Toks[0].getText()); in TEST_F()
223 ASSERT_EQ(StringRef(" Bbb"), Toks[2].getText()); in TEST_F()
[all …]
/external/antlr/tool/src/test/java/org/antlr/test/
DTestCommonTokenStream.java56 String result = tokens.LT(1).getText(); in testFirstToken()
77 String result = tokens.LT(2).getText(); in test2ndToken()
161 assertEquals("x", t.getText()); in testLookback()
166 assertEquals("x", t.getText()); in testLookback()
168 assertEquals(" ", t.getText()); in testLookback()
170 assertEquals("=", t.getText()); in testLookback()
206 assertEquals("x", tokens.LT(1).getText()); // must skip first off channel token in testOffChannel()
208 assertEquals("=", tokens.LT(1).getText()); in testOffChannel()
209 assertEquals("x", tokens.LT(-1).getText()); in testOffChannel()
212 assertEquals("34", tokens.LT(1).getText()); in testOffChannel()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
DTimestampTagTest.java31 getText("canonical: 2001-12-15T02:59:43.1Z", "canonical")); in testTimestamp()
34 getText("canonical: 2001-12-15T02:59:43.000Z", "canonical")); in testTimestamp()
36 getText("valid iso8601: 2001-12-14t21:59:43.10-05:00", "valid iso8601")); in testTimestamp()
39 getText("valid iso8601: 2001-12-14t21:59:43.10-0:30", "valid iso8601")); in testTimestamp()
42 getText("valid iso8601: 2001-12-14t21:59:43.10+2:00", "valid iso8601")); in testTimestamp()
44 getText("space separated: 2001-12-14 21:59:43.10 -5", "space separated")); in testTimestamp()
46 getText("no time zone (Z): 2001-12-15 2:59:43.10", "no time zone (Z)")); in testTimestamp()
48 getText("date (00:00:00Z): 2002-12-14", "date (00:00:00Z)")); in testTimestamp()
50 getText("milliseconds: 2010-05-16 03:06:11.003", "milliseconds")); in testTimestamp()
52 getText("milliseconds: 2010-05-16 03:06:11.0068", "milliseconds")); in testTimestamp()
[all …]
/external/clang/unittests/Tooling/
DFixItTest.cpp16 using tooling::fixit::getText;
35 TEST(FixItTest, getText) { in TEST() argument
39 EXPECT_EQ("foo(x, y)", getText(*CE, *Context)); in TEST()
40 EXPECT_EQ("foo(x, y)", getText(CE->getSourceRange(), *Context)); in TEST()
44 EXPECT_EQ("x", getText(*P0, *Context)); in TEST()
45 EXPECT_EQ("y", getText(*P1, *Context)); in TEST()
50 EXPECT_EQ("APPLY(foo, x, y)", getText(*CE, *Context)); in TEST()
60 EXPECT_EQ("F OO", getText(*CE, *Context)); in TEST()
63 EXPECT_EQ("", getText(*P0, *Context)); in TEST()
64 EXPECT_EQ("", getText(*P1, *Context)); in TEST()
[all …]
/external/antlr/tool/src/main/java/org/antlr/tool/
DAssignTokenTypesBehavior.java73 t.getText()); in trackString()
81 grammar.getTokenType(t.getText())== Label.INVALID ) in trackString()
86 t.getText()); in trackString()
96 grammar.getTokenType(t.getText())==Label.INVALID ) in trackString()
98 stringLiterals.put(t.getText(), UNASSIGNED_IN_PARSER_RULE); in trackString()
107 if ( grammar.getTokenType(t.getText())==Label.INVALID && in trackToken()
108 tokens.get(t.getText())==null ) in trackToken()
110 tokens.put(t.getText(), UNASSIGNED); in trackToken()
121 if ( !Character.isUpperCase(t.getText().charAt(0)) ) { in trackTokenRule()
124 if ( t.getText().equals(Grammar.ARTIFICIAL_TOKENS_RULENAME) ) { in trackTokenRule()
[all …]
DNameSpaceChecker.java125 String ruleName = tok.getText(); in lookForReferencesToUndefinedSymbols()
143 String tokenID = tok.getText(); in lookForReferencesToUndefinedSymbols()
156 Grammar scopeG = grammar.composite.getGrammar(scopeAST.getText()); in lookForReferencesToUndefinedSymbols()
158 String ruleName = refAST.getText(); in lookForReferencesToUndefinedSymbols()
163 scopeAST.getText(), in lookForReferencesToUndefinedSymbols()
172 scopeAST.getText(), in lookForReferencesToUndefinedSymbols()
216 if ( grammar.getGlobalScope(label.getText())!=null ) { in checkForLabelConflict()
219 else if ( grammar.getRule(label.getText())!=null ) { in checkForLabelConflict()
222 else if ( grammar.getTokenType(label.getText())!=Label.INVALID ) { in checkForLabelConflict()
225 else if ( r.ruleScope!=null && r.ruleScope.getAttribute(label.getText())!=null ) { in checkForLabelConflict()
[all …]
DRule.java193 labelNameSpace.put(label.getText(), pair); in defineLabel()
197 tokenLabels.put(label.getText(), pair); in defineLabel()
201 wildcardTreeLabels.put(label.getText(), pair); in defineLabel()
205 wildcardTreeListLabels.put(label.getText(), pair); in defineLabel()
209 ruleLabels.put(label.getText(), pair); in defineLabel()
213 tokenListLabels.put(label.getText(), pair); in defineLabel()
217 ruleListLabels.put(label.getText(), pair); in defineLabel()
221 charLabels.put(label.getText(), pair); in defineLabel()
277 List<GrammarAST> refs = altToTokenRefMap[outerAltNum].get(refAST.getText()); in trackTokenReferenceInAlt()
280 altToTokenRefMap[outerAltNum].put(refAST.getText(), refs); in trackTokenReferenceInAlt()
[all …]
/external/antlr/gunit/src/main/antlr3/org/antlr/gunit/
DgUnit.g190 STRING : '"' ( ESC | ~('\\'|'"') )* '"' {setText(getText().substring(1, getText().length()-1));}
209 int oldEndIndex = getText().length()-2;
212 front = getText().substring(2, 3);
213 end = getText().substring(getText().length()-3, getText().length()-2);
215 newEndIndex = getText().length()-3;
218 front = getText().substring(2, 4);
219 end = getText().substring(getText().length()-4, getText().length()-2);
221 newEndIndex = getText().length()-4;
227 if ( newline.length()==1 && getText().length()==5 ) temp = "";
228 else if ( newline.length()==2 && getText().length()==6 ) temp = "";
[all …]
/external/antlr/runtime/Cpp/tests/
Dt012.cpp79 std::cout << token->getText() << std::endl; in testMalformedInput1()
81 std::cout << token->getText() << std::endl; in testMalformedInput1()
83 std::cout << token->getText() << std::endl; in testMalformedInput1()
117 std::cout << token->getText() << std::endl; in testMalformedInput2()
119 std::cout << token->getText() << std::endl; in testMalformedInput2()
121 std::cout << token->getText() << std::endl; in testMalformedInput2()
155 std::cout << token->getText() << std::endl; in testMalformedInput3()
157 std::cout << token->getText() << std::endl; in testMalformedInput3()
159 std::cout << token->getText() << std::endl; in testMalformedInput3()
Dt003.cpp60 std::cout << token->getText() << '\t' in testValid()
89 std::cout << token0->getText() << std::endl; in testIteratorInterface()
90 std::cout << token1->getText() << std::endl; in testIteratorInterface()
91 std::cout << token2->getText() << std::endl; in testIteratorInterface()
92 std::cout << token3->getText() << std::endl; in testIteratorInterface()
114 std::cout << token0->getText() << std::endl; in testMalformedInput()
Dt011.cpp71 std::cout << token->getText() in testValid()
75 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
99 std::cout << token->getText() << std::endl; in testMalformedInput()
101 std::cout << token->getText() << std::endl; in testMalformedInput()
103 std::cout << token->getText() << std::endl; in testMalformedInput()
Dt001.cpp43 std::cout << token0->getText() << std::endl; in testValid()
44 std::cout << token1->getText() << std::endl; in testValid()
68 std::cout << token0->getText() << std::endl; in testIteratorInterface()
69 std::cout << token1->getText() << std::endl; in testIteratorInterface()
91 std::cout << token0->getText() << std::endl; in testMalformedInput()
Dt006.cpp68 std::cout << token->getText() in testValid()
72 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
96 std::cout << token->getText() << std::endl; in testMalformedInput()
98 std::cout << token->getText() << std::endl; in testMalformedInput()
100 std::cout << token->getText() << std::endl; in testMalformedInput()
Dt008.cpp69 std::cout << token->getText() in testValid()
73 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
97 std::cout << token->getText() << std::endl; in testMalformedInput()
99 std::cout << token->getText() << std::endl; in testMalformedInput()
101 std::cout << token->getText() << std::endl; in testMalformedInput()
/external/python/cpython3/Doc/includes/
Dminidom-example.py21 def getText(nodelist): function
45 print("<title>%s</title>" % getText(title.childNodes))
48 print("<h2>%s</h2>" % getText(title.childNodes))
57 print("<li>%s</li>" % getText(point.childNodes))
62 print("<p>%s</p>" % getText(title.childNodes))
/external/python/cpython2/Doc/includes/
Dminidom-example.py21 def getText(nodelist): function
45 print "<title>%s</title>" % getText(title.childNodes)
48 print "<h2>%s</h2>" % getText(title.childNodes)
57 print "<li>%s</li>" % getText(point.childNodes)
62 print "<p>%s</p>" % getText(title.childNodes)
/external/jsilver/src/com/google/clearsilver/jsilver/interpreter/
DVariableLocator.java53 return ((ANameVariable) variable).getWord().getText(); in quickEval()
55 return ((ADecNumberVariable) variable).getDecNumber().getText(); in quickEval()
57 return ((AHexNumberVariable) variable).getHexNumber().getText(); in quickEval()
84 descendVariable(node.getWord().getText()); in caseANameVariable()
89 descendVariable(node.getDecNumber().getText()); in caseADecNumberVariable()
94 descendVariable(node.getHexNumber().getText()); in caseAHexNumberVariable()
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
DSmaliLiteral.java58 return LiteralTools.parseLong(literalNode.getText()); in getIntegralValue()
61 return LiteralTools.parseInt(literalNode.getText()); in getIntegralValue()
63 return LiteralTools.parseShort(literalNode.getText()); in getIntegralValue()
68 return LiteralTools.parseByte(literalNode.getText()); in getIntegralValue()
70 return Boolean.parseBoolean(literalNode.getText())?1:0; in getIntegralValue()
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/tree/
DCommonErrorNode.java70 public String getText() { in getText() method in CommonErrorNode
101 ", resync="+getText()+">"; in toString()
104 return "<mismatched token: "+trappedException.token+", resync="+getText()+">"; in toString()
108 ", resync="+getText()+">"; in toString()
110 return "<error: "+getText()+">"; in toString()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
DScriptEditor.java201 mConfiguration.getInterpreterForScript(mNameText.getText().toString()); in onOptionsItemSelected()
216 intent.putExtra(Constants.EXTRA_SCRIPT_PATH, mNameText.getText().toString()); in onOptionsItemSelected()
218 mConfiguration.getInterpreterForScript(mNameText.getText().toString()).getName()); in onOptionsItemSelected()
219 intent.putExtra(Constants.EXTRA_SCRIPT_TEXT, mContentText.getText().toString()); in onOptionsItemSelected()
223 intent.putExtra(Intent.EXTRA_TEXT, mContentText.getText().toString()); in onOptionsItemSelected()
224 intent.putExtra(Intent.EXTRA_SUBJECT, "Share " + mNameText.getText().toString()); in onOptionsItemSelected()
261 mLastSavedContent = mContentText.getText().toString(); in save()
262 mScript = new File(mScript.getParent(), mNameText.getText().toString()); in save()
264 Toast.makeText(this, "Saved " + mNameText.getText().toString(), Toast.LENGTH_SHORT).show(); in save()
325 gotoLine(Integer.parseInt(mLineNo.getText().toString())); in onCreateDialog()
[all …]
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/tree/
DCommonErrorNode.js27 getText: function() { method
57 ", resync="+this.getText()+">";
60 return "<mismatched token: "+this.trappedException.token+", resync="+this.getText()+">";
64 ", resync="+this.getText()+">";
66 return "<error: "+this.getText()+">";
/external/autotest/frontend/client/src/autotest/moblab/
DDutManagementView.java135 addAttribute(i, attributeName.getText(), attributeValue.getText()); in initialize()
137 removeAttribute(i, attributeName.getText()); in initialize()
205 StringBuilder builder = new StringBuilder(poolLabelName.getText()); in getPoolLabelString()
295 String ipAddress = ((Label)dutInfoTable.getWidget(row_number, DHCP_IP_COLUMN)).getText(); in addDut()
305 String ipAddress = ((Label)dutInfoTable.getWidget(row_number, DHCP_IP_COLUMN)).getText(); in removeDut()
316 String ipAddress = ((Label)dutInfoTable.getWidget(row_number, DHCP_IP_COLUMN)).getText(); in addLabel()
327 String ipAddress = ((Label)dutInfoTable.getWidget(row_number, DHCP_IP_COLUMN)).getText(); in removeLabel()
339 String ipAddress = ((Label)dutInfoTable.getWidget(row_number, DHCP_IP_COLUMN)).getText(); in addAttribute()
350 String ipAddress = ((Label)dutInfoTable.getWidget(row_number, DHCP_IP_COLUMN)).getText(); in removeAttribute()
365 String currentText = informationArea.getText(); in onLogActionComplete()
/external/autotest/frontend/client/src/autotest/afe/
DControlTypeSelect.java19 return display.getClient().getText(); in getControlType()
21 return display.getServer().getText(); in getControlType()
25 if (display.getClient().getText().equals(type)) { in setControlType()
27 } else if (display.getServer().getText().equals(type)) { in setControlType()
/external/clang/include/clang/Tooling/
DFixIt.h30 StringRef getText(SourceRange Range, const ASTContext &Context);
50 StringRef getText(const T &Node, const ASTContext &Context) { in getText() function
51 return internal::getText(internal::getSourceRange(Node), Context); in getText()
65 getText(Source, Context)); in createReplacement()
/external/smali/smali/src/main/java/org/jf/smali/
DsmaliTreeWalker.java572 retval.type = (CLASS_DESCRIPTOR9!=null?CLASS_DESCRIPTOR9.getText():null); in class_spec()
609 type = (CLASS_DESCRIPTOR11!=null?CLASS_DESCRIPTOR11.getText():null); in super_spec()
645 type = (CLASS_DESCRIPTOR12!=null?CLASS_DESCRIPTOR12.getText():null); in implements_spec()
821 value |= AccessFlags.getAccessFlag(ACCESS_SPEC15.getText()).getValue(); in access_list()
1040 …field = dexBuilder.internField(classType, (SIMPLE_NAME20!=null?SIMPLE_NAME20.getText():null), (non… in field()
2353 retval.name = (SIMPLE_NAME74!=null?SIMPLE_NAME74.getText():null); in method_name_and_prototype()
2486 …dReference = new ImmutableMethodReference(type, (SIMPLE_NAME78!=null?SIMPLE_NAME78.getText():null), in method_reference()
2550 …ldReference = new ImmutableFieldReference(type, (SIMPLE_NAME81!=null?SIMPLE_NAME81.getText():null), in field_reference()
2660 … method_stack.peek().methodBuilder.addLabel((SIMPLE_NAME84!=null?SIMPLE_NAME84.getText():null)); in label_def()
2950 … final int registerNumber = parseRegister_short((REGISTER86!=null?REGISTER86.getText():null)); in parameter()
[all …]

12345678910>>...25