Home
last modified time | relevance | path

Searched refs:getCharIndex (Results 1 – 23 of 23) sorted by relevance

/external/antlr/runtime/C/src/
Dantlr3lexer.c55 static ANTLR3_MARKER getCharIndex (pANTLR3_LEXER lexer);
142 lexer->getCharIndex = getCharIndex; in antlr3LexerNew()
263 teof->setStartIndex (teof, lexer->getCharIndex(lexer)); in nextTokenStr()
264 teof->setStopIndex (teof, lexer->getCharIndex(lexer)); in nextTokenStr()
661 token->stop = lexer->getCharIndex(lexer) - 1; in emit()
873 static ANTLR3_MARKER getCharIndex (pANTLR3_LEXER lexer) in getCharIndex() function
889 lexer->getCharIndex(lexer) - lexer->input->charByteSize in getText()
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DLexer.java169 …t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); in emit()
241 public int getCharIndex() { in getCharIndex() method in Lexer
252 return input.substring(state.tokenStartCharIndex,getCharIndex()-1); in getText()
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/
DLexer.js112 …input, this.state.type, this.state.channel, this.state.tokenStartCharIndex, this.getCharIndex()-1);
184 getCharIndex: function() {
195 return this.input.substring(this.state.tokenStartCharIndex,this.getCharIndex()-1);
/external/antlr/runtime/C/include/
Dantlr3lexer.h174 ANTLR3_MARKER (*getCharIndex) (struct ANTLR3_LEXER_struct * lexer); member
/external/antlr/runtime/Cpp/include/
Dantlr3lexer.hpp222 ANTLR_MARKER getCharIndex();
Dantlr3lexer.inl207 token->set_stopIndex( this->getCharIndex() - 1 );
358 ANTLR_MARKER Lexer<ImplTraits>::getCharIndex() function in Lexer
379 this->getCharIndex() - this->get_input()->get_charByteSize()
Dantlr3tokenstream.inl92 teof.set_startIndex(lexer->getCharIndex());
93 teof.set_stopIndex(lexer->getCharIndex());
177 teof.set_startIndex(lexer->getCharIndex());
178 teof.set_stopIndex(lexer->getCharIndex());
/external/antlr/runtime/Python/antlr3/
Drecognizers.py1178 stop=self.getCharIndex()-1
1238 def getCharIndex(self): member in Lexer
1254 self.getCharIndex()-1
/external/antlr/runtime/Python3/antlr3/
Drecognizers.py1153 stop=self.getCharIndex()-1
1213 def getCharIndex(self): member in Lexer
1229 self.getCharIndex()-1
/external/icu/icu4c/source/i18n/
Dcollationfastlatin.h191 static inline int32_t getCharIndex(UChar c) { in getCharIndex() function
Dcollationfastlatinbuilder.cpp364 int32_t x = CollationFastLatin::getCharIndex(suffix.charAt(0)); in getCEsFromContractionCE32()
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/JavaScript/
DJavaScript.stg713 var <label>Start = this.getCharIndex();
715 ….INVALID_TOKEN_TYPE, org.antlr.runtime.Token.DEFAULT_CHANNEL, <label>Start, this.getCharIndex()-1);
766 var <label>Start<elementIndex> = this.getCharIndex();
768 …_TYPE, org.antlr.runtime.Token.DEFAULT_CHANNEL, <label>Start<elementIndex>, this.getCharIndex()-1);
783 var <label>Start<elementIndex> = this.getCharIndex();
785 …s.EOF, org.antlr.runtime.Token.DEFAULT_CHANNEL, <label>Start<elementIndex>, this.getCharIndex()-1);
1300 lexerRulePropertyRef_stop(scope,attr) ::= "(this.getCharIndex()-1)"
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Perl5/
DPerl5.stg735 int <label>Start = getCharIndex();
737 …ommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, <label>Start, getCharIndex()-1);
796 int <label>Start<elementIndex> = getCharIndex();
798 …ut, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, <label>Start<elementIndex>, getCharIndex()-1);
813 int <label>Start<elementIndex> = getCharIndex();
815 …= new CommonToken(input, EOF, Token.DEFAULT_CHANNEL, <label>Start<elementIndex>, getCharIndex()-1);
1338 lexerRulePropertyRef_stop(scope,attr) ::= "(getCharIndex()-1)"
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python3/
DPython3.stg847 <label>Start = self.getCharIndex()
851 …, type=INVALID_TOKEN_TYPE, channel=DEFAULT_CHANNEL, start=<label>Start, stop=self.getCharIndex()-1)
909 <label>Start<elementIndex> = self.getCharIndex()
918 stop=self.getCharIndex()-1)
935 <label>Start<elementIndex> = self.getCharIndex()
939 …t, type=EOF, channel=DEFAULT_CHANNEL, start=<label>Start<elementIndex>, stop=self.getCharIndex()-1)
1460 lexerRulePropertyRef_stop(scope,attr) ::= "(self.getCharIndex()-1)"
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Scala/
DScala.stg740 val <label>Start = getCharIndex()
745 …<labelType>(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, <label>Start, getCharIndex()-1)
808 val <label>Start<elementIndex> = getCharIndex()
813 …put, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, <label>Start<elementIndex>, getCharIndex()-1)
831 val <label>Start<elementIndex> = getCharIndex()
836 … = new <labelType>(input, EOF, Token.DEFAULT_CHANNEL, <label>Start<elementIndex>, getCharIndex()-1)
1354 lexerRulePropertyRef_stop(scope,attr) ::= "(getCharIndex()-1)"
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Java/
DJava.stg773 int <label>Start = getCharIndex();
777 …labelType>(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, <label>Start, getCharIndex()-1);
837 int <label>Start<elementIndex> = getCharIndex();
841 …ut, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, <label>Start<elementIndex>, getCharIndex()-1);
858 int <label>Start<elementIndex> = getCharIndex();
862 …= new <labelType>(input, EOF, Token.DEFAULT_CHANNEL, <label>Start<elementIndex>, getCharIndex()-1);
1423 lexerRulePropertyRef_stop(scope,attr) ::= "(getCharIndex()-1)"
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python/
DPython.stg840 <label>Start = self.getCharIndex()
844 …, type=INVALID_TOKEN_TYPE, channel=DEFAULT_CHANNEL, start=<label>Start, stop=self.getCharIndex()-1)
902 <label>Start<elementIndex> = self.getCharIndex()
911 stop=self.getCharIndex()-1)
928 <label>Start<elementIndex> = self.getCharIndex()
932 …t, type=EOF, channel=DEFAULT_CHANNEL, start=<label>Start<elementIndex>, stop=self.getCharIndex()-1)
1442 lexerRulePropertyRef_stop(scope,attr) ::= "(self.getCharIndex()-1)"
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Cpp/
DCpp.stg763 teof.set_startIndex(lexer->getCharIndex());
764 teof.set_stopIndex(lexer->getCharIndex());
1687 ANTLR_MARKER <label>Start = this->getCharIndex();
1695 <label>->set_stopIndex( this->getCharIndex()-1);
1760 ANTLR_MARKER <label>Start<elementIndex> = this->getCharIndex();
1768 <label>->set_stopIndex( this->getCharIndex()-1 );
1793 <label>Start<elementIndex> = this->getCharIndex();
1799 <label>->set_stopIndex(this->getCharIndex()-1);
2543 lexerRulePropertyRef_stop(scope,attr) ::= "(this->getCharIndex()-1)"
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationFastLatinBuilder.java347 int x = CollationFastLatin.getCharIndex(suffix.charAt(0)); in getCEsFromContractionCE32()
DCollationFastLatin.java187 static int getCharIndex(char c) { in getCharIndex() method in CollationFastLatin
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationFastLatinBuilder.java346 int x = CollationFastLatin.getCharIndex(suffix.charAt(0)); in getCEsFromContractionCE32()
DCollationFastLatin.java183 static int getCharIndex(char c) { in getCharIndex() method in CollationFastLatin
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/C/
DC.stg242 #define GETCHARINDEX() LEXER->getCharIndex(LEXER)
1127 teof->setStartIndex (teof, lexer->getCharIndex(lexer));
1128 teof->setStopIndex (teof, lexer->getCharIndex(lexer));
3194 lexerRulePropertyRef_stop(scope,attr) ::= "(LEXER->getCharIndex(LEXER)-1)"