/** Convert the value to a {@link Buffer} for more efficient concatenation of * multiple strings. * @return Buffer instance containing the string or number */ public Buffer buffer() { return new Buffer(this); }
/** Convert the value to a {@link Buffer} for more efficient concatenation of * multiple strings. * @return Buffer instance containing the string or number */ public Buffer buffer() { return new Buffer(this); }
/** Convert the value to a {@link Buffer} for more efficient concatenation of * multiple strings. * @return Buffer instance containing the string or number */ public Buffer buffer() { return new Buffer(this); }
Buffer result = new Buffer(n); byte c; for ( int i = 0; i < n; ) {
Buffer result = new Buffer(n); byte c; for ( int i = 0; i < n; ) {
Buffer result = new Buffer(n); byte c; for ( int i = 0; i < n; ) {
/** Convert the list of varargs values to a human readable java String. * @return String value in human readable form such as {1,2}. */ public String tojstring() { Buffer sb = new Buffer(); sb.append( "(" ); for ( int i=1,n=narg(); i<=n; i++ ) { if (i>1) sb.append( "," ); sb.append( arg(i).tojstring() ); } sb.append( ")" ); return sb.tojstring(); }
/** Convert the list of varargs values to a human readable java String. * @return String value in human readable form such as {1,2}. */ public String tojstring() { Buffer sb = new Buffer(); sb.append( "(" ); for ( int i=1,n=narg(); i<=n; i++ ) { if (i>1) sb.append( "," ); sb.append( arg(i).tojstring() ); } sb.append( ")" ); return sb.tojstring(); }
/** Convert the list of varargs values to a human readable java String. * @return String value in human readable form such as {1,2}. */ public String tojstring() { Buffer sb = new Buffer(); sb.append( "(" ); for ( int i=1,n=narg(); i<=n; i++ ) { if (i>1) sb.append( "," ); sb.append( arg(i).tojstring() ); } sb.append( ")" ); return sb.tojstring(); }
/** Concatenate the contents of a table efficiently, using {@link Buffer} * * @param sep {@link LuaString} separater to apply between elements * @param i the first element index * @param j the last element index, inclusive * @return {@link LuaString} value of the concatenation */ public LuaValue concat(LuaString sep, int i, int j) { Buffer sb = new Buffer (); if ( i<=j ) { sb.append( get(i).checkstring() ); while ( ++i<=j ) { sb.append( sep ); sb.append( get(i).checkstring() ); } } return sb.tostring(); }
/** Concatenate the contents of a table efficiently, using {@link Buffer} * * @param sep {@link LuaString} separater to apply between elements * @param i the first element index * @param j the last element index, inclusive * @return {@link LuaString} value of the concatenation */ public LuaValue concat(LuaString sep, int i, int j) { Buffer sb = new Buffer (); if ( i<=j ) { sb.append( get(i).checkstring() ); while ( ++i<=j ) { sb.append( sep ); sb.append( get(i).checkstring() ); } } return sb.tostring(); }
/** Concatenate the contents of a table efficiently, using {@link Buffer} * * @param sep {@link LuaString} separater to apply between elements * @param i the first element index * @param j the last element index, inclusive * @return {@link LuaString} value of the concatenation */ public LuaValue concat(LuaString sep, int i, int j) { Buffer sb = new Buffer (); if ( i<=j ) { sb.append( get(i).checkstring() ); while ( ++i<=j ) { sb.append( sep ); sb.append( get(i).checkstring() ); } } return sb.tostring(); }
final boolean anchor = p.length() > 0 && p.charAt( 0 ) == '^'; Buffer lbuf = new Buffer( srclen ); MatchState ms = new MatchState( args, src, p );
final boolean anchor = p.length() > 0 && p.charAt( 0 ) == '^'; Buffer lbuf = new Buffer( srclen ); MatchState ms = new MatchState( args, src, p );
final boolean anchor = p.length() > 0 && p.charAt( 0 ) == '^'; Buffer lbuf = new Buffer( srclen ); MatchState ms = new MatchState( args, src, p );
public Varargs invoke(Varargs args) { LuaString fmt = args.checkstring( 1 ); final int n = fmt.length(); Buffer result = new Buffer(n); int arg = 1; int c;
public Varargs invoke(Varargs args) { LuaString fmt = args.checkstring( 1 ); final int n = fmt.length(); Buffer result = new Buffer(n); int arg = 1; int c;
LuaString fmt = args.checkstring( 1 ); final int n = fmt.length(); Buffer result = new Buffer(n); int arg = 1; int c;