Ticket #27: mango.patch

File mango.patch, 2.6 kB (added by aaronc542, 1 year ago)
  • mango/icu/ICU.d

    old new  
    5353        private static const final char[] ICULib = "30"; 
    5454        private static const final char[] ICUSig = "_3_0\0"; 
    5555        } 
    56      else 
     56version (ICU32) 
    5757        { 
    5858        private static const final char[] ICULib = "32"; 
    5959        private static const final char[] ICUSig = "_3_2\0"; 
    6060        } 
     61version (ICU34) 
     62        { 
     63        private static const final char[] ICULib = "34"; 
     64        private static const final char[] ICUSig = "_3_4\0"; 
     65        } 
     66version (ICU36) 
     67        { 
     68        private static const final char[] ICULib = "36"; 
     69        private static const final char[] ICUSig = "_3_6\0"; 
     70        } 
     71else 
     72        { 
     73        private static const final char[] ICULib = "38"; 
     74        private static const final char[] ICUSig = "_3_8\0"; 
     75        } 
    6176 
    6277/******************************************************************************* 
    6378 
  • mango/icu/UDateFormat.d

    old new  
    170170                        }; 
    171171                         
    172172 
     173        /*********************************************************************** 
     174         
     175                Open a new UDateFormat for formatting and parsing dates  
     176                and time using the pattern for the specified locale. 
     177 
     178        ***********************************************************************/ 
     179 
     180        this (Style time, Style date, inout ULocale locale, inout UTimeZone tz) 
     181        { 
     182                Error e; 
     183 
     184                handle = udat_open (time, date, toString(locale.name), tz.name.ptr, tz.name.length, null, 0, e); 
     185                testError (e, "failed to create DateFormat"); 
     186        } 
     187 
    173188        /*********************************************************************** 
    174189         
    175190                Open a new UDateFormat for formatting and parsing dates  
  • mango/icu/UNumberFormat.d

    old new  
    703703                        AfterSuffix 
    704704                        }; 
    705705                         
    706         private enum    Style      
     706        public enum    Style      
    707707                        {   
    708708                        PatternDecimal,  
    709709                        Decimal,