Value[] keys = new Value[] { StringValue.create("GD Version"), StringValue.create("FreeType Support"), StringValue.create("FreeType Linkage"), StringValue.create("T1Lib Support"), StringValue.create("GIF Read Support"), StringValue.create("GIF Create Support"), StringValue.create("JPG Support"), StringValue.create("PNG Support"), StringValue.create("WBMP Support"), StringValue.create("XPM Support"), StringValue.create("XBM Support"), StringValue.create("JIS-mapped Japanese Font Support"), }; Value[] vals = new Value[] { StringValue.create("2.0 or higher"), BooleanValue.TRUE, StringValue.create("with freetype"), BooleanValue.TRUE, BooleanValue.TRUE, BooleanValue.TRUE, BooleanValue.TRUE, BooleanValue.TRUE, BooleanValue.TRUE, BooleanValue.FALSE, BooleanValue.FALSE, }; return new ArrayValueImpl(keys, vals);
return (new ArrayValueImpl() .append(StringValue.create("GD Version"), StringValue.create("2.0 or higher")) .append(StringValue.create("FreeType Support"), BooleanValue.TRUE) .append(StringValue.create("FreeType Linkage"), StringValue.create("with freetype")) .append(StringValue.create("T1Lib Support"), BooleanValue.TRUE) .append(StringValue.create("GIF Read Support"), BooleanValue.TRUE) .append(StringValue.create("GIF Create Support"), BooleanValue.TRUE) .append(StringValue.create("JPG Support"), BooleanValue.TRUE) .append(StringValue.create("PNG Support"), BooleanValue.TRUE) .append(StringValue.create("WBMP Support"), BooleanValue.TRUE) .append(StringValue.create("XPM Support"), BooleanValue.FALSE) .append(StringValue.create("XBM Support"), BooleanValue.FALSE) .append(StringValue.create("JIS-mapped Japanese Font Support"), BooleanValue.FALSE));
  public static Value gd_info()  {    Value[] keys = new Value[] {      StringValue.create("GD Version"), // ] => 2.0 or higher      StringValue.create("FreeType Support"), // ] => 1      StringValue.create("FreeType Linkage"), // ] => with freetype      StringValue.create("T1Lib Support"), // ] => 1      StringValue.create("GIF Read Support"), // ] => 1      StringValue.create("GIF Create Support"), // ] => 1      StringValue.create("JPG Support"), // ] => 1      StringValue.create("PNG Support"), // ] => 1      StringValue.create("WBMP Support"), // ] => 1      StringValue.create("XPM Support"), // ] =>       StringValue.create("XBM Support"), // ] =>       StringValue.create("JIS-mapped Japanese Font Support"), // ] =>     };    Value[] vals = new Value[] {      StringValue.create("2.0 or higher"),      BooleanValue.TRUE,      StringValue.create("with freetype"),      BooleanValue.TRUE,      BooleanValue.TRUE,      BooleanValue.TRUE,      BooleanValue.TRUE,      BooleanValue.TRUE,      BooleanValue.TRUE,      BooleanValue.FALSE,      BooleanValue.FALSE,    };    return new ArrayValueImpl(keys, vals);  }