/** * Constructor for RubyDateFormatter. */ public RubyDateFormatter(ThreadContext context) { super(); this.runtime = context.runtime; lexer = new StrftimeLexer((Reader) null); }
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
zzMarkedPos = zzMarkedPosL; zzPushbackPos = zzPushbackPosL; boolean eof = zzRefill(); { yybegin(YYINITIAL); return directive(yycharat(yylength()-1)); { stringBuf.append(yycharat(0)); { stringBuf.append(yycharat(0)); return rawString(); { yybegin(CONVERSION); return formatter(yytext()); { yybegin(CONVERSION); zzScanError(ZZ_NO_MATCH);
public Token directive(char c) { Token token; if (c == 'z') { int colons = yylength()-1; // can only be colons except the 'z' return Token.zoneOffsetColons(colons); } else if ((token = Token.format(c)) != null) { return token; } else { return Token.special(c); } }
zzMarkedPos = zzMarkedPosL; zzPushbackPos = zzPushbackPosL; boolean eof = zzRefill(); { yybegin(YYINITIAL); return directive(yycharat(yylength()-1)); { stringBuf.append(yycharat(0)); { stringBuf.append(yycharat(0)); return rawString(); { yybegin(CONVERSION); return formatter(yytext()); { yybegin(CONVERSION); zzScanError(ZZ_NO_MATCH);
public Token directive(char c) { Token token; if (c == 'z') { int colons = yylength()-1; // can only be colons except the 'z' return Token.zoneOffsetColons(colons); } else if ((token = Token.format(c)) != null) { return token; } else { return Token.special(c); } }
zzMarkedPos = zzMarkedPosL; zzPushbackPos = zzPushbackPosL; boolean eof = zzRefill(); { yybegin(YYINITIAL); return directive(yycharat(yylength()-1)); { stringBuf.append(yycharat(0)); { stringBuf.append(yycharat(0)); return rawString(); { yybegin(CONVERSION); return formatter(yytext()); { yybegin(CONVERSION); zzScanError(ZZ_NO_MATCH);
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
/** * Constructor for RubyDateFormatter. */ public RubyDateFormatter(ThreadContext context) { super(); this.runtime = context.runtime; lexer = new StrftimeLexer((Reader) null); }
public Token directive(char c) { Token token; if (c == 'z') { int colons = yylength()-1; // can only be colons except the 'z' return Token.zoneOffsetColons(colons); } else if ((token = Token.format(c)) != null) { return token; } else { return Token.special(c); } }
zzMarkedPos = zzMarkedPosL; zzPushbackPos = zzPushbackPosL; boolean eof = zzRefill(); { yybegin(YYINITIAL); return directive(yycharat(yylength()-1)); { stringBuf.append(yycharat(0)); { stringBuf.append(yycharat(0)); return rawString(); { yybegin(CONVERSION); return formatter(yytext()); { yybegin(CONVERSION); zzScanError(ZZ_NO_MATCH);
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
/** * Constructor for RubyDateFormatter. */ public RubyDateFormatter(ThreadContext context) { super(); this.context = context; lexer = new StrftimeLexer((Reader) null); }
public Token directive(char c) { Token token; if (c == 'z') { int colons = yylength()-1; // can only be colons except the 'z' return Token.zoneOffsetColons(colons); } else if ((token = Token.format(c)) != null) { return token; } else { return Token.special(c); } }
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
/** * Constructor for RubyDateFormatter. */ public RubyDateFormatter(ThreadContext context) { super(); this.context = context; lexer = new StrftimeLexer((Reader) null); }