Class Sprintf

java.lang.Object
org.jruby.util.Sprintf

public class Sprintf extends Object
  • Field Details

  • Constructor Details

    • Sprintf

      private Sprintf()
  • Method Details

    • sprintf

      public static boolean sprintf(ByteList to, Locale locale, CharSequence format, IRubyObject args)
    • sprintf1_9

      public static boolean sprintf1_9(ByteList to, Locale locale, CharSequence format, IRubyObject args)
    • sprintf

      public static boolean sprintf(ByteList to, CharSequence format, IRubyObject args)
    • sprintf

      public static boolean sprintf(Ruby runtime, ByteList to, CharSequence format, int arg)
    • sprintf

      public static boolean sprintf(Ruby runtime, ByteList to, CharSequence format, long arg)
    • sprintf

      public static boolean sprintf(ByteList to, RubyString format, IRubyObject args)
    • rubySprintf

      private static boolean rubySprintf(ByteList to, CharSequence charFormat, Sprintf.Args args)
    • rubySprintfToBuffer

      private static boolean rubySprintfToBuffer(ByteList buf, CharSequence charFormat, Sprintf.Args args)
    • rubySprintfToBuffer

      private static boolean rubySprintfToBuffer(ByteList buf, CharSequence charFormat, Sprintf.Args args, boolean usePrefixForZero)
    • getNumberFormat

      public static NumberFormat getNumberFormat(Locale locale)
    • getDecimalFormat

      public static DecimalFormatSymbols getDecimalFormat(Locale locale)
    • writeExp

      private static void writeExp(ByteList buf, int exponent, byte expChar)
    • raiseArgumentError

      private static void raiseArgumentError(Sprintf.Args args, String message)
    • warning

      private static void warning(IRubyWarnings.ID id, Sprintf.Args args, String message)
    • checkOffset

      private static void checkOffset(Sprintf.Args args, int offset, int length, String message)
    • GETASTER

      private static int[] GETASTER(Sprintf.Args args, byte[] format, int offset, int length, boolean width)
    • extendWidth

      private static int extendWidth(Sprintf.Args args, int oldWidth, byte newChar, String errMessage)
    • isDigit

      private static boolean isDigit(byte aChar)
    • isPrintable

      private static boolean isPrintable(byte aChar)
    • skipSignBits

      private static int skipSignBits(byte[] bytes, int base)
    • round

      private static int round(byte[] bytes, int nDigits, int roundPos, boolean roundDown)
    • getFixnumBytes

      private static byte[] getFixnumBytes(long val, int base, boolean sign, boolean upper)
    • getBignumBytes

      private static byte[] getBignumBytes(BigInteger val, int base, boolean sign, boolean upper)
    • getUnsignedNegativeBytes

      private static byte[] getUnsignedNegativeBytes(long val)
    • getUnsignedNegativeBytes

      private static byte[] getUnsignedNegativeBytes(BigInteger val)
    • stringToBytes

      private static byte[] stringToBytes(CharSequence s, boolean upper)
    • stringToBytes

      private static byte[] stringToBytes(CharSequence s)