comparison modules/javafx.web/src/main/native/Source/ThirdParty/icu/source/i18n/persncal.h @ 11038:20a8447c71c6

8207159: Update ICU to version 62.1 Reviewed-by: mbilla, kcr, ghb
author arajkumar
date Fri, 24 Aug 2018 15:06:40 +0530
parents fee4ef5c87df
children
comparison
equal deleted inserted replaced
0:4eb5562051e3 1:ad0c092411ee
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
1 /* 3 /*
2 ****************************************************************************** 4 ******************************************************************************
3 * Copyright (C) 2003-2008, International Business Machines Corporation 5 * Copyright (C) 2003-2013, International Business Machines Corporation
4 * and others. All Rights Reserved. 6 * and others. All Rights Reserved.
5 ****************************************************************************** 7 ******************************************************************************
6 * 8 *
7 * File PERSNCAL.H 9 * File PERSNCAL.H
8 * 10 *
308 /** 310 /**
309 * Returns the year in which the default century begins 311 * Returns the year in which the default century begins
310 * @internal 312 * @internal
311 */ 313 */
312 virtual int32_t defaultCenturyStartYear() const; 314 virtual int32_t defaultCenturyStartYear() const;
313
314 private: // default century stuff.
315 /**
316 * The system maintains a static default century start date. This is initialized
317 * the first time it is used. Before then, it is set to SYSTEM_DEFAULT_CENTURY to
318 * indicate an uninitialized state. Once the system default century date and year
319 * are set, they do not change.
320 */
321 static UDate fgSystemDefaultCenturyStart;
322
323 /**
324 * See documentation for systemDefaultCenturyStart.
325 */
326 static int32_t fgSystemDefaultCenturyStartYear;
327
328 /**
329 * Default value that indicates the defaultCenturyStartYear is unitialized
330 */
331 static const int32_t fgSystemDefaultCenturyYear;
332
333 /**
334 * start of default century, as a date
335 */
336 static const UDate fgSystemDefaultCentury;
337
338 /**
339 * Returns the beginning date of the 100-year window that dates
340 * with 2-digit years are considered to fall within.
341 */
342 UDate internalGetDefaultCenturyStart(void) const;
343
344 /**
345 * Returns the first year of the 100-year window that dates with
346 * 2-digit years are considered to fall within.
347 */
348 int32_t internalGetDefaultCenturyStartYear(void) const;
349
350 /**
351 * Initializes the 100-year window that dates with 2-digit years
352 * are considered to fall within so that its start date is 80 years
353 * before the current time.
354 */
355 static void initializeSystemDefaultCentury(void);
356 }; 315 };
357 316
358 U_NAMESPACE_END 317 U_NAMESPACE_END
359 318
360 #endif 319 #endif