Example #1
0
        public static string FormatInt32(int aInt, string aStr, NumberFormatInfo aFormat)
        {
            bool xIsNegative = false;

            if (aInt < 0)
            {
                xIsNegative = true;
                aInt       *= -1;
            }
            var xResult = UInt32Impl2.GetNumberString((uint)aInt, xIsNegative);

            return(xResult);
        }
Example #2
0
        public static string GetNumberString(int aValue)
        {
            bool xIsNegative = false;

            if (aValue < 0)
            {
                xIsNegative = true;
                aValue     *= -1;
            }
            var xResult = UInt32Impl2.GetNumberString((uint)aValue, xIsNegative);

            if (xResult == null)
            {
                return(UInt32Impl2.GetNumberString((uint)aValue, xIsNegative));
            }
            return(xResult);
        }
Example #3
0
 //[PlugMethod(Signature = "System_String_System_UInt16_ToString__System_String__")]
 public static string ToString(ref ushort aThis)
 {
     return(UInt32Impl2.GetNumberString(aThis, false));
 }