Home
last modified time | relevance | path

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

12345678910>>...32

/external/llvm-project/clang/unittests/AST/
DCommentLexer.cpp137 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F()
157 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F()
180 ASSERT_EQ(StringRef(" Aaa"), Toks[0].getText()); in TEST_F()
182 ASSERT_EQ(StringRef("\\"), Toks[1].getText()); in TEST_F()
186 ASSERT_EQ(StringRef(" Bbb"), Toks[3].getText()); in TEST_F()
188 ASSERT_EQ(StringRef("\\"), Toks[4].getText()); in TEST_F()
190 ASSERT_EQ(StringRef(" "), Toks[5].getText()); in TEST_F()
194 ASSERT_EQ(StringRef(" Ccc?" "?/"), Toks[7].getText()); in TEST_F()
218 ASSERT_EQ(StringRef(" Aaa"), Toks[0].getText()); in TEST_F()
222 ASSERT_EQ(StringRef(" Bbb"), Toks[2].getText()); in TEST_F()
[all …]
/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/llvm-project/clang/unittests/Tooling/
DFixItTest.cpp15 using tooling::fixit::getText;
34 TEST(FixItTest, getText) { in TEST() argument
38 EXPECT_EQ("foo(x, y)", getText(*CE, *Context)); in TEST()
39 EXPECT_EQ("foo(x, y)", getText(CE->getSourceRange(), *Context)); in TEST()
43 EXPECT_EQ("x", getText(*P0, *Context)); in TEST()
44 EXPECT_EQ("y", getText(*P1, *Context)); in TEST()
49 EXPECT_EQ("APPLY(foo, x, y)", getText(*CE, *Context)); in TEST()
59 EXPECT_EQ("F OO", getText(*CE, *Context)); in TEST()
62 EXPECT_EQ("", getText(*P0, *Context)); in TEST()
63 EXPECT_EQ("", getText(*P1, *Context)); in TEST()
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/write/
DSerializedStringWriteTest.java114 assertEquals(NAME_WITH_QUOTES, p.getText()); in _verifySimple()
116 assertEquals("a", p.getText()); in _verifySimple()
118 assertEquals(NAME_WITH_LATIN1, p.getText()); in _verifySimple()
120 assertEquals("b", p.getText()); in _verifySimple()
125 assertEquals(NAME_WITH_LATIN1, p.getText()); in _verifySimple()
127 assertEquals("c", p.getText()); in _verifySimple()
129 assertEquals(NAME_WITH_QUOTES, p.getText()); in _verifySimple()
131 assertEquals("d", p.getText()); in _verifySimple()
144 assertEquals(NAME_WITH_QUOTES, p.getText()); in _verifySimpleValues()
146 assertEquals(VALUE_WITH_QUOTES, p.getText()); in _verifySimpleValues()
[all …]
DObjectWriteTest.java92 assertEquals("first", jp.getText()); in testSimpleObjectWrite()
96 assertEquals("sec", jp.getText()); in testSimpleObjectWrite()
99 assertEquals("3rd!", jp.getText()); in testSimpleObjectWrite()
101 assertEquals("yee-haw", jp.getText()); in testSimpleObjectWrite()
145 assertEquals("null", jp.getText()); in testConvenienceMethods()
149 assertEquals("bt", jp.getText()); in testConvenienceMethods()
153 assertEquals("bf", jp.getText()); in testConvenienceMethods()
158 assertEquals("short", jp.getText()); in testConvenienceMethods()
163 assertEquals("int", jp.getText()); in testConvenienceMethods()
168 assertEquals("long", jp.getText()); in testConvenienceMethods()
[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 …]
/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/jackson-core/src/test/java/com/fasterxml/jackson/core/read/
DTrailingCommasTest.java57 assertEquals("a", p.getText()); in testArrayBasic()
60 assertEquals("b", p.getText()); in testArrayBasic()
75 assertEquals("a", p.getText()); in testArrayInnerComma()
85 assertEquals("b", p.getText()); in testArrayInnerComma()
107 assertEquals("a", p.getText()); in testArrayLeadingComma()
110 assertEquals("b", p.getText()); in testArrayLeadingComma()
126 assertEquals("a", p.getText()); in testArrayTrailingComma()
129 assertEquals("b", p.getText()); in testArrayTrailingComma()
154 assertEquals("a", p.getText()); in testArrayTrailingCommas()
157 assertEquals("b", p.getText()); in testArrayTrailingCommas()
[all …]
DNonStandardAposQuotedNamesTest.java93 assertEquals("a", p.getText()); in _testSingleQuotesEnabled()
95 assertEquals("1", p.getText()); in _testSingleQuotesEnabled()
97 assertEquals("foobar", p.getText()); in _testSingleQuotesEnabled()
99 assertEquals("b", p.getText()); in _testSingleQuotesEnabled()
101 assertEquals("_abc\u00A0e'23'", p.getText()); in _testSingleQuotesEnabled()
103 assertEquals("d'foo'", p.getText()); in _testSingleQuotesEnabled()
105 assertEquals("\"", p.getText()); in _testSingleQuotesEnabled()
110 assertEquals("", p.getText()); in _testSingleQuotesEnabled()
112 assertEquals("", p.getText()); in _testSingleQuotesEnabled()
166 assertEquals("16'", p.getText()); in _testSingleQuotesEscaped()
DNonStandardParserFeaturesTest.java74 p.getText(); in _testNonStandarBackslashQuoting()
87 assertEquals("'", p.getText()); in _testNonStandarBackslashQuoting()
101 p.getText(); in _testLeadingZeroes()
123 assertEquals("3", p.getText()); in _testLeadingZeroes()
133 assertEquals(String.valueOf(Integer.MAX_VALUE), p.getText()); in _testLeadingZeroes()
146 assertEquals("0", p.getText()); in _testLeadingZeroes()
177 assertEquals("NaN", p.getText()); in _testAllowNaN()
222 assertEquals("-INF", p.getText()); in _testAllowInf()
228 assertEquals("+INF", p.getText()); in _testAllowInf()
234 assertEquals("+Infinity", p.getText()); in _testAllowInf()
[all …]
/external/llvm-project/clang/lib/Tooling/Transformer/
DSourceCodeBuilders.cpp65 StringRef Text = getText(E, Context); in buildParens()
79 getText(*Op->getSubExpr()->IgnoreParenImpCasts(), Context); in buildDereference()
85 StringRef Text = getText(E, Context); in buildDereference()
100 getText(*Op->getSubExpr()->IgnoreParenImpCasts(), Context); in buildAddressOf()
106 StringRef Text = getText(E, Context); in buildAddressOf()
121 StringRef DerefText = getText(*SubExpr, Context); in buildDot()
130 StringRef Text = getText(E, Context); in buildDot()
145 StringRef DerefText = getText(*SubExpr, Context); in buildArrow()
154 StringRef Text = getText(E, Context); in buildArrow()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/validation/
DSourceTest.java40 assertEquals("aaa", lines.get(0).getText()); in should_parse_lines()
41 assertEquals("bbb", lines.get(1).getText()); in should_parse_lines()
42 assertEquals(";", lines.get(2).getText()); in should_parse_lines()
54 assertEquals("", lines.get(0).getText()); in should_parse_empty_lines()
55 assertEquals("aaa", lines.get(1).getText()); in should_parse_empty_lines()
56 assertEquals("", lines.get(2).getText()); in should_parse_empty_lines()
57 assertEquals("bbb", lines.get(3).getText()); in should_parse_empty_lines()
69 assertEquals("aaa", lines.get(0).getText()); in should_parse_crnl_separator()
70 assertEquals("bbb", lines.get(1).getText()); in should_parse_crnl_separator()
/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()
/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/
DModifierOrdererTest.java34 assertThat(ModifierOrderer.reorderModifiers("static abstract class InnerClass {}").getText()) in simple()
40 assertThat(ModifierOrderer.reorderModifiers("static/*1*/abstract/*2*/public").getText()) in comment()
50 .getText()) in everything()
62 .getText()) in everythingIncludingDefault()
83 .getText(); in subRange()
103 .getText(); in whitespace()
/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/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/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/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/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/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/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/
DStackTraceElementDeserializer.java34 className = p.getText(); in deserialize()
36 classLoaderName = p.getText(); in deserialize()
38 fileName = p.getText(); in deserialize()
46 methodName = p.getText(); in deserialize()
50 moduleName = p.getText(); in deserialize()
52 moduleVersion = p.getText(); in deserialize()

12345678910>>...32