Esempio n. 1
0
 /// <summary>
 /// Sets the DateFormatSymbols used by this SimpleDateFormat.
 /// </summary>
 ///
 /// <param name="value">the DateFormatSymbols</param>
 public void SetDateFormatSymbols(DateFormatSymbols value_ren)
 {
     IBM.ICU.Text.DateFormatSymbols icuSymbols = new IBM.ICU.Text.DateFormatSymbols();
     CopySymbols(value_ren, icuSymbols);
     icuFormat.SetDateFormatSymbols(icuSymbols);
     formatData = (DateFormatSymbols)value_ren.Clone();
 }
Esempio n. 2
0
 private void CopySymbols(DateFormatSymbols value_ren,
                          IBM.ICU.Text.DateFormatSymbols icuSymbols)
 {
     icuSymbols.SetAmPmStrings(value_ren.GetAmPmStrings());
     icuSymbols.SetEras(value_ren.GetEras());
     icuSymbols.SetLocalPatternChars(value_ren.GetLocalPatternChars());
     icuSymbols.SetMonths(value_ren.GetMonths());
     icuSymbols.SetShortMonths(value_ren.GetShortMonths());
     icuSymbols.SetShortWeekdays(value_ren.GetShortWeekdays());
     icuSymbols.SetWeekdays(value_ren.GetWeekdays());
     icuSymbols.SetZoneStrings(value_ren.GetZoneStrings());
 }
        /// <summary>
        /// Constructs a new DateFormatSymbols containing the symbols for the
        /// specified Locale.
        /// </summary>
        ///
        /// <param name="locale">the Locale</param>
        public DateFormatSymbols(ILOG.J2CsMapping.Util.Locale locale)
        {
            IBM.ICU.Text.DateFormatSymbols icuSymbols = new IBM.ICU.Text.DateFormatSymbols(
                locale);

            localPatternChars = icuSymbols.GetLocalPatternChars();
            ampms             = icuSymbols.GetAmPmStrings();
            eras          = icuSymbols.GetEras();
            months        = icuSymbols.GetMonths();
            shortMonths   = icuSymbols.GetShortMonths();
            shortWeekdays = icuSymbols.GetShortWeekdays();
            weekdays      = icuSymbols.GetWeekdays();
            zoneStrings   = icuSymbols.GetZoneStrings();
        }