pango 2.2.5-x86-mingw32 → 3.0.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +19 -3
- data/ext/pango/depend +0 -1
- data/ext/pango/extconf.rb +0 -2
- data/ext/pango/rbpango.c +44 -6
- data/ext/pango/rbpango.h +0 -1
- data/ext/pango/rbpangoattribute.c +2 -2
- data/ext/pango/rbpangocairo.c +4 -4
- data/ext/pango/rbpangocontext.c +2 -2
- data/ext/pango/rbpangofontdescription.c +2 -2
- data/ext/pango/rbpangogravity.c +2 -2
- data/ext/pango/rbpangolanguage.c +8 -0
- data/ext/pango/rbpangolayout.c +15 -4
- data/ext/pango/rbpangomatrix.c +2 -2
- data/ext/pango/rbpangoscript.c +3 -3
- data/lib/2.0/pango.so +0 -0
- data/lib/2.1/pango.so +0 -0
- data/lib/2.2/pango.so +0 -0
- data/test/test-language.rb +5 -0
- data/test/test-layout.rb +7 -1
- data/vendor/local/bin/derb.exe +0 -0
- data/vendor/local/bin/genbrk.exe +0 -0
- data/vendor/local/bin/genccode.exe +0 -0
- data/vendor/local/bin/gencfu.exe +0 -0
- data/vendor/local/bin/gencmn.exe +0 -0
- data/vendor/local/bin/gencnval.exe +0 -0
- data/vendor/local/bin/gendict.exe +0 -0
- data/vendor/local/bin/gennorm2.exe +0 -0
- data/vendor/local/bin/genrb.exe +0 -0
- data/vendor/local/bin/gensprep.exe +0 -0
- data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
- data/vendor/local/bin/hb-shape.exe +0 -0
- data/vendor/local/bin/hb-view.exe +0 -0
- data/vendor/local/bin/icu-config +6 -6
- data/vendor/local/bin/icuinfo.exe +0 -0
- data/vendor/local/bin/icupkg.exe +0 -0
- data/vendor/local/bin/libharfbuzz-0.dll +0 -0
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/makeconv.exe +0 -0
- data/vendor/local/bin/pango-querymodules.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/bin/pkgdata.exe +0 -0
- data/vendor/local/bin/uconv.exe +0 -0
- data/vendor/local/etc/pango/pango.modules +1 -1
- data/vendor/local/include/harfbuzz/hb-buffer.h +26 -1
- data/vendor/local/include/harfbuzz/hb-common.h +7 -0
- data/vendor/local/include/harfbuzz/hb-font.h +7 -6
- data/vendor/local/include/harfbuzz/hb-ft.h +58 -1
- data/vendor/local/include/harfbuzz/hb-glib.h +3 -0
- data/vendor/local/include/harfbuzz/hb-ot-font.h +4 -0
- data/vendor/local/include/harfbuzz/hb-shape.h +0 -3
- data/vendor/local/include/harfbuzz/hb-unicode.h +28 -3
- data/vendor/local/include/harfbuzz/hb-version.h +4 -4
- data/vendor/local/include/layout/LEFontInstance.h +2 -28
- data/vendor/local/include/layout/LETableReference.h +7 -2
- data/vendor/local/include/unicode/calendar.h +32 -2
- data/vendor/local/include/unicode/coll.h +9 -7
- data/vendor/local/include/unicode/datefmt.h +102 -13
- data/vendor/local/include/unicode/dcfmtsym.h +4 -2
- data/vendor/local/include/unicode/decimfmt.h +4 -5
- data/vendor/local/include/unicode/dtfmtsym.h +60 -1
- data/vendor/local/include/unicode/dtptngen.h +21 -7
- data/vendor/local/include/unicode/localpointer.h +49 -1
- data/vendor/local/include/unicode/locid.h +2 -3
- data/vendor/local/include/unicode/measfmt.h +30 -37
- data/vendor/local/include/unicode/measunit.h +65 -152
- data/vendor/local/include/unicode/measure.h +3 -3
- data/vendor/local/include/unicode/numfmt.h +3 -5
- data/vendor/local/include/unicode/platform.h +12 -2
- data/vendor/local/include/unicode/plurrule.h +18 -14
- data/vendor/local/include/unicode/rbnf.h +3 -4
- data/vendor/local/include/unicode/regex.h +42 -26
- data/vendor/local/include/unicode/region.h +9 -9
- data/vendor/local/include/unicode/reldatefmt.h +50 -45
- data/vendor/local/include/unicode/scientificnumberformatter.h +222 -0
- data/vendor/local/include/unicode/smpdtfmt.h +30 -24
- data/vendor/local/include/unicode/tblcoll.h +5 -4
- data/vendor/local/include/unicode/timezone.h +18 -1
- data/vendor/local/include/unicode/ucal.h +2 -2
- data/vendor/local/include/unicode/ucol.h +22 -18
- data/vendor/local/include/unicode/uconfig.h +17 -2
- data/vendor/local/include/unicode/udat.h +164 -56
- data/vendor/local/include/unicode/udatpg.h +9 -7
- data/vendor/local/include/unicode/ufieldpositer.h +121 -0
- data/vendor/local/include/unicode/uidna.h +21 -13
- data/vendor/local/include/unicode/ulistformatter.h +130 -0
- data/vendor/local/include/unicode/ulocdata.h +4 -3
- data/vendor/local/include/unicode/unistr.h +101 -53
- data/vendor/local/include/unicode/unum.h +7 -10
- data/vendor/local/include/unicode/uregex.h +52 -29
- data/vendor/local/include/unicode/urename.h +14 -3
- data/vendor/local/include/unicode/uscript.h +30 -16
- data/vendor/local/include/unicode/uspoof.h +13 -9
- data/vendor/local/include/unicode/utrans.h +5 -7
- data/vendor/local/include/unicode/utypes.h +9 -3
- data/vendor/local/include/unicode/uvernum.h +8 -8
- data/vendor/local/lib/icu/{54.1 → 55.1}/Makefile.inc +5 -5
- data/vendor/local/lib/icu/{54.1 → 55.1}/pkgdata.inc +1 -1
- data/vendor/local/lib/icu/Makefile.inc +5 -5
- data/vendor/local/lib/icu/pkgdata.inc +1 -1
- data/vendor/local/lib/icudt.dll +0 -0
- data/vendor/local/lib/{icudt54.dll → icudt55.dll} +0 -0
- data/vendor/local/lib/icuin.dll +0 -0
- data/vendor/local/lib/icuin55.dll +0 -0
- data/vendor/local/lib/icuio.dll +0 -0
- data/vendor/local/lib/icuio55.dll +0 -0
- data/vendor/local/lib/icule.dll +0 -0
- data/vendor/local/lib/icule55.dll +0 -0
- data/vendor/local/lib/iculx.dll +0 -0
- data/vendor/local/lib/iculx55.dll +0 -0
- data/vendor/local/lib/icutest.dll +0 -0
- data/vendor/local/lib/icutest55.dll +0 -0
- data/vendor/local/lib/icutu.dll +0 -0
- data/vendor/local/lib/icutu55.dll +0 -0
- data/vendor/local/lib/icuuc.dll +0 -0
- data/vendor/local/lib/icuuc55.dll +0 -0
- data/vendor/local/lib/libharfbuzz-icu.a +0 -0
- data/vendor/local/lib/libharfbuzz-icu.la +7 -7
- data/vendor/local/lib/libharfbuzz.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz.la +7 -7
- data/vendor/local/lib/libicudt.dll.a +0 -0
- data/vendor/local/lib/libicuin.dll.a +0 -0
- data/vendor/local/lib/libicuio.dll.a +0 -0
- data/vendor/local/lib/libicule.dll.a +0 -0
- data/vendor/local/lib/libiculx.dll.a +0 -0
- data/vendor/local/lib/libicutest.dll.a +0 -0
- data/vendor/local/lib/libicutu.dll.a +0 -0
- data/vendor/local/lib/libicuuc.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.la +2 -2
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.la +1 -1
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.la +2 -2
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +2 -2
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.la +2 -2
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.la +2 -2
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.la +2 -2
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.la +2 -2
- data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +1 -1
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +3 -1
- data/vendor/local/lib/pkgconfig/icu-i18n.pc +5 -5
- data/vendor/local/lib/pkgconfig/icu-io.pc +5 -5
- data/vendor/local/lib/pkgconfig/icu-le.pc +5 -5
- data/vendor/local/lib/pkgconfig/icu-lx.pc +5 -5
- data/vendor/local/lib/pkgconfig/icu-uc.pc +5 -5
- data/vendor/local/share/gtk-doc/html/harfbuzz/adding-text-to-the-buffer.html +35 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +30 -35
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +158 -27
- data/vendor/local/share/gtk-doc/html/harfbuzz/buffers-language-script-and-direction.html +87 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/{ch01.html → ch06.html} +12 -13
- data/vendor/local/share/gtk-doc/html/harfbuzz/customizing-unicode-functions.html +31 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +7 -8
- data/vendor/local/share/gtk-doc/html/harfbuzz/fonts-and-faces.html +40 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Shaping.html +352 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +88 -47
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-buffer.html +128 -204
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +290 -304
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +14 -23
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +14 -17
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +40 -51
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +126 -190
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +19 -24
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +14 -29
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +438 -11
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +14 -25
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +14 -29
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +19 -160
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +21 -36
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +14 -11
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +70 -81
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +33 -44
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +290 -323
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +14 -23
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +59 -27
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +16 -13
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +415 -104
- data/vendor/local/share/gtk-doc/html/harfbuzz/hello-harfbuzz.html +181 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +43 -12
- data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +11 -13
- data/vendor/local/share/gtk-doc/html/harfbuzz/plans-and-caching.html +31 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt01.html +70 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +107 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/setting-buffer-properties.html +31 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/shaping-and-shape-plans.html +39 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +9 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/using-harfbuzzs-native-opentype-implementation.html +31 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/using-your-own-font-functions.html +31 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/what-about-the-other-scripts.html +31 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/what-is-harfbuzz.html +124 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/why-is-it-called-harfbuzz.html +38 -0
- data/vendor/local/share/icu/{54.1 → 55.1}/config/mh-mingw +0 -0
- data/vendor/local/share/icu/{54.1 → 55.1}/install-sh +0 -0
- data/vendor/local/share/icu/{54.1 → 55.1}/license.html +3 -4
- data/vendor/local/share/icu/{54.1 → 55.1}/mkinstalldirs +0 -0
- data/vendor/local/share/man/man1/derb.1 +2 -2
- data/vendor/local/share/man/man1/genbrk.1 +2 -2
- data/vendor/local/share/man/man1/gencfu.1 +1 -1
- data/vendor/local/share/man/man1/gencnval.1 +3 -3
- data/vendor/local/share/man/man1/gendict.1 +2 -2
- data/vendor/local/share/man/man1/genrb.1 +3 -3
- data/vendor/local/share/man/man1/icu-config.1 +2 -2
- data/vendor/local/share/man/man1/makeconv.1 +3 -3
- data/vendor/local/share/man/man1/pkgdata.1 +2 -2
- data/vendor/local/share/man/man1/uconv.1 +2 -2
- data/vendor/local/share/man/man8/genccode.8 +2 -2
- data/vendor/local/share/man/man8/gencmn.8 +3 -3
- data/vendor/local/share/man/man8/gensprep.8 +3 -3
- data/vendor/local/share/man/man8/icupkg.8 +1 -1
- metadata +38 -22
- data/vendor/local/include/unicode/scientificformathelper.h +0 -139
- data/vendor/local/lib/icuin54.dll +0 -0
- data/vendor/local/lib/icuio54.dll +0 -0
- data/vendor/local/lib/icule54.dll +0 -0
- data/vendor/local/lib/iculx54.dll +0 -0
- data/vendor/local/lib/icutest54.dll +0 -0
- data/vendor/local/lib/icutu54.dll +0 -0
- data/vendor/local/lib/icuuc54.dll +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape.html +0 -286
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +0 -496
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
******************************************************************************
|
3
|
-
* Copyright (C) 1996-
|
3
|
+
* Copyright (C) 1996-2015, International Business Machines Corporation and
|
4
4
|
* others. All Rights Reserved.
|
5
5
|
******************************************************************************
|
6
6
|
*/
|
@@ -531,7 +531,7 @@ public:
|
|
531
531
|
* function chaining. (See User Guide for details.)
|
532
532
|
* @return *this
|
533
533
|
* @see getMaxVariable
|
534
|
-
* @
|
534
|
+
* @stable ICU 53
|
535
535
|
*/
|
536
536
|
virtual Collator &setMaxVariable(UColReorderCode group, UErrorCode &errorCode);
|
537
537
|
|
@@ -539,7 +539,7 @@ public:
|
|
539
539
|
* Returns the maximum reordering group whose characters are affected by UCOL_ALTERNATE_HANDLING.
|
540
540
|
* @return the maximum variable reordering group.
|
541
541
|
* @see setMaxVariable
|
542
|
-
* @
|
542
|
+
* @stable ICU 53
|
543
543
|
*/
|
544
544
|
virtual UColReorderCode getMaxVariable() const;
|
545
545
|
|
@@ -651,7 +651,7 @@ public:
|
|
651
651
|
* Retrieves the reordering codes for this collator.
|
652
652
|
* @param dest The array to fill with the script ordering.
|
653
653
|
* @param destCapacity The length of dest. If it is 0, then dest may be NULL and the function
|
654
|
-
* will only return the length of the result without writing any
|
654
|
+
* will only return the length of the result without writing any codes (pre-flighting).
|
655
655
|
* @param status A reference to an error code value, which must not indicate
|
656
656
|
* a failure before the function call.
|
657
657
|
* @return The length of the script ordering array.
|
@@ -670,6 +670,7 @@ public:
|
|
670
670
|
* length is also set to 0. An empty array will clear any reordering codes on the collator.
|
671
671
|
* @param reorderCodesLength The length of reorderCodes.
|
672
672
|
* @param status error code
|
673
|
+
* @see ucol_setReorderCodes
|
673
674
|
* @see Collator#getReorderCodes
|
674
675
|
* @see Collator#getEquivalentReorderCodes
|
675
676
|
* @stable ICU 4.8
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*************************************************************************
|
2
|
-
* Copyright (c) 1997-
|
2
|
+
* Copyright (c) 1997-2015, International Business Machines Corporation
|
3
3
|
* and others. All Rights Reserved.
|
4
4
|
**************************************************************************
|
5
5
|
*
|
@@ -273,6 +273,23 @@ public:
|
|
273
273
|
static const UnicodeString U_EXPORT2 getEquivalentID(const UnicodeString& id,
|
274
274
|
int32_t index);
|
275
275
|
|
276
|
+
#ifndef U_HIDE_DRAFT_API
|
277
|
+
/**
|
278
|
+
* Creates an instance of TimeZone detected from the current host
|
279
|
+
* system configuration. Note that ICU4C does not change the default
|
280
|
+
* time zone unless TimeZone::adoptDefault(TimeZone*) or
|
281
|
+
* TimeZone::setDefault(const TimeZone&) is explicitly called by a
|
282
|
+
* user. This method does not update the current ICU's default,
|
283
|
+
* and may return a different TimeZone from the one returned by
|
284
|
+
* TimeZone::createDefault().
|
285
|
+
*
|
286
|
+
* @return A new instance of TimeZone detected from the current host system
|
287
|
+
* configuration.
|
288
|
+
* @draft ICU 55
|
289
|
+
*/
|
290
|
+
static TimeZone* U_EXPORT2 detectHostTimeZone();
|
291
|
+
#endif
|
292
|
+
|
276
293
|
/**
|
277
294
|
* Creates a new copy of the default TimeZone for this host. Unless the default time
|
278
295
|
* zone has already been set using adoptDefault() or setDefault(), the default is
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
*******************************************************************************
|
3
|
-
* Copyright (C) 1996-
|
3
|
+
* Copyright (C) 1996-2015, International Business Machines Corporation and
|
4
4
|
* others. All Rights Reserved.
|
5
5
|
*******************************************************************************
|
6
6
|
*/
|
@@ -422,7 +422,7 @@ enum UCalendarDateFields {
|
|
422
422
|
* an example of this.
|
423
423
|
*/
|
424
424
|
UCAL_IS_LEAP_MONTH,
|
425
|
-
|
425
|
+
|
426
426
|
/**
|
427
427
|
* Field count
|
428
428
|
* @stable ICU 2.6
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
*******************************************************************************
|
3
|
-
* Copyright (c) 1996-
|
3
|
+
* Copyright (c) 1996-2015, International Business Machines Corporation and others.
|
4
4
|
* All Rights Reserved.
|
5
5
|
*******************************************************************************
|
6
6
|
*/
|
@@ -685,7 +685,7 @@ ucol_setStrength(UCollator *coll,
|
|
685
685
|
* @param coll The UCollator to query.
|
686
686
|
* @param dest The array to fill with the script ordering.
|
687
687
|
* @param destCapacity The length of dest. If it is 0, then dest may be NULL and the function
|
688
|
-
* will only return the length of the result without writing any
|
688
|
+
* will only return the length of the result without writing any codes (pre-flighting).
|
689
689
|
* @param pErrorCode Must be a valid pointer to an error code value, which must not indicate a
|
690
690
|
* failure before the function call.
|
691
691
|
* @return The number of reordering codes written to the dest array.
|
@@ -702,27 +702,32 @@ ucol_getReorderCodes(const UCollator* coll,
|
|
702
702
|
UErrorCode *pErrorCode);
|
703
703
|
/**
|
704
704
|
* Sets the reordering codes for this collator.
|
705
|
-
* Collation reordering allows scripts and some other
|
706
|
-
* to be moved relative to each other
|
705
|
+
* Collation reordering allows scripts and some other groups of characters
|
706
|
+
* to be moved relative to each other. This reordering is done on top of
|
707
707
|
* the DUCET/CLDR standard collation order. Reordering can specify groups to be placed
|
708
708
|
* at the start and/or the end of the collation order. These groups are specified using
|
709
709
|
* UScript codes and UColReorderCode entries.
|
710
|
+
*
|
710
711
|
* <p>By default, reordering codes specified for the start of the order are placed in the
|
711
|
-
* order given after
|
712
|
+
* order given after several special non-script blocks. These special groups of characters
|
712
713
|
* are space, punctuation, symbol, currency, and digit. These special groups are represented with
|
713
714
|
* UColReorderCode entries. Script groups can be intermingled with
|
714
|
-
* these special non-script
|
715
|
+
* these special non-script groups if those special groups are explicitly specified in the reordering.
|
716
|
+
*
|
715
717
|
* <p>The special code OTHERS stands for any script that is not explicitly
|
716
718
|
* mentioned in the list of reordering codes given. Anything that is after OTHERS
|
717
719
|
* will go at the very end of the reordering in the order given.
|
720
|
+
*
|
718
721
|
* <p>The special reorder code DEFAULT will reset the reordering for this collator
|
719
722
|
* to the default for this collator. The default reordering may be the DUCET/CLDR order or may be a reordering that
|
720
723
|
* was specified when this collator was created from resource data or from rules. The
|
721
|
-
* DEFAULT code <b>must</b> be the sole code supplied when it used.
|
722
|
-
*
|
724
|
+
* DEFAULT code <b>must</b> be the sole code supplied when it is used.
|
725
|
+
* If not, then U_ILLEGAL_ARGUMENT_ERROR will be set.
|
726
|
+
*
|
723
727
|
* <p>The special reorder code NONE will remove any reordering for this collator.
|
724
728
|
* The result of setting no reordering will be to have the DUCET/CLDR ordering used. The
|
725
|
-
* NONE code <b>must</b> be the sole code supplied when it used.
|
729
|
+
* NONE code <b>must</b> be the sole code supplied when it is used.
|
730
|
+
*
|
726
731
|
* @param coll The UCollator to set.
|
727
732
|
* @param reorderCodes An array of script codes in the new order. This can be NULL if the
|
728
733
|
* length is also set to 0. An empty array will clear any reordering codes on the collator.
|
@@ -744,10 +749,13 @@ ucol_setReorderCodes(UCollator* coll,
|
|
744
749
|
/**
|
745
750
|
* Retrieves the reorder codes that are grouped with the given reorder code. Some reorder
|
746
751
|
* codes will be grouped and must reorder together.
|
752
|
+
* Beginning with ICU 55, scripts only reorder together if they are primary-equal,
|
753
|
+
* for example Hiragana and Katakana.
|
754
|
+
*
|
747
755
|
* @param reorderCode The reorder code to determine equivalence for.
|
748
756
|
* @param dest The array to fill with the script ordering.
|
749
757
|
* @param destCapacity The length of dest. If it is 0, then dest may be NULL and the function
|
750
|
-
* will only return the length of the result without writing any
|
758
|
+
* will only return the length of the result without writing any codes (pre-flighting).
|
751
759
|
* @param pErrorCode Must be a valid pointer to an error code value, which must not indicate
|
752
760
|
* a failure before the function call.
|
753
761
|
* @return The number of reordering codes written to the dest array.
|
@@ -1192,8 +1200,6 @@ ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value,
|
|
1192
1200
|
U_STABLE UColAttributeValue U_EXPORT2
|
1193
1201
|
ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status);
|
1194
1202
|
|
1195
|
-
#ifndef U_HIDE_DRAFT_API
|
1196
|
-
|
1197
1203
|
/**
|
1198
1204
|
* Sets the variable top to the top of the specified reordering group.
|
1199
1205
|
* The variable top determines the highest-sorting character
|
@@ -1208,9 +1214,9 @@ ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status)
|
|
1208
1214
|
* immediately. Check for U_FAILURE() on output or use with
|
1209
1215
|
* function chaining. (See User Guide for details.)
|
1210
1216
|
* @see ucol_getMaxVariable
|
1211
|
-
* @
|
1217
|
+
* @stable ICU 53
|
1212
1218
|
*/
|
1213
|
-
|
1219
|
+
U_STABLE void U_EXPORT2
|
1214
1220
|
ucol_setMaxVariable(UCollator *coll, UColReorderCode group, UErrorCode *pErrorCode);
|
1215
1221
|
|
1216
1222
|
/**
|
@@ -1218,13 +1224,11 @@ ucol_setMaxVariable(UCollator *coll, UColReorderCode group, UErrorCode *pErrorCo
|
|
1218
1224
|
* @param coll the collator
|
1219
1225
|
* @return the maximum variable reordering group.
|
1220
1226
|
* @see ucol_setMaxVariable
|
1221
|
-
* @
|
1227
|
+
* @stable ICU 53
|
1222
1228
|
*/
|
1223
|
-
|
1229
|
+
U_STABLE UColReorderCode U_EXPORT2
|
1224
1230
|
ucol_getMaxVariable(const UCollator *coll);
|
1225
1231
|
|
1226
|
-
#endif /* U_HIDE_DRAFT_API */
|
1227
|
-
|
1228
1232
|
#ifndef U_HIDE_DEPRECATED_API
|
1229
1233
|
/**
|
1230
1234
|
* Sets the variable top to the primary weight of the specified string.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
**********************************************************************
|
3
|
-
* Copyright (C) 2002-
|
3
|
+
* Copyright (C) 2002-2015, International Business Machines
|
4
4
|
* Corporation and others. All Rights Reserved.
|
5
5
|
**********************************************************************
|
6
6
|
* file name: uconfig.h
|
@@ -200,7 +200,7 @@
|
|
200
200
|
* It does not turn off legacy conversion because that is necessary
|
201
201
|
* for ICU to work on EBCDIC platforms (for the default converter).
|
202
202
|
* If you want "only collation" and do not build for EBCDIC,
|
203
|
-
* then you can define UCONFIG_NO_LEGACY_CONVERSION 1 as well.
|
203
|
+
* then you can define UCONFIG_NO_CONVERSION or UCONFIG_NO_LEGACY_CONVERSION to 1 as well.
|
204
204
|
*
|
205
205
|
* @stable ICU 2.4
|
206
206
|
*/
|
@@ -269,6 +269,21 @@
|
|
269
269
|
# define UCONFIG_NO_LEGACY_CONVERSION 1
|
270
270
|
#endif
|
271
271
|
|
272
|
+
/**
|
273
|
+
* \def UCONFIG_ONLY_HTML_CONVERSION
|
274
|
+
* This switch turns off all of the converters NOT listed in
|
275
|
+
* the HTML encoding standard:
|
276
|
+
* http://www.w3.org/TR/encoding/#names-and-labels
|
277
|
+
*
|
278
|
+
* This is not possible on EBCDIC platforms
|
279
|
+
* because they need ibm-37 or ibm-1047 default converters.
|
280
|
+
*
|
281
|
+
* @draft ICU 55
|
282
|
+
*/
|
283
|
+
#ifndef UCONFIG_ONLY_HTML_CONVERSION
|
284
|
+
# define UCONFIG_ONLY_HTML_CONVERSION 0
|
285
|
+
#endif
|
286
|
+
|
272
287
|
/**
|
273
288
|
* \def UCONFIG_NO_LEGACY_CONVERSION
|
274
289
|
* This switch turns off all converters except for
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
*******************************************************************************
|
3
|
-
* Copyright (C) 1996-
|
3
|
+
* Copyright (C) 1996-2015, International Business Machines
|
4
4
|
* Corporation and others. All Rights Reserved.
|
5
5
|
*******************************************************************************
|
6
6
|
*/
|
@@ -16,6 +16,7 @@
|
|
16
16
|
#include "unicode/ucal.h"
|
17
17
|
#include "unicode/unum.h"
|
18
18
|
#include "unicode/udisplaycontext.h"
|
19
|
+
#include "unicode/ufieldpositer.h"
|
19
20
|
/**
|
20
21
|
* \file
|
21
22
|
* \brief C API: DateFormat
|
@@ -760,6 +761,15 @@ typedef enum UDateFormatField {
|
|
760
761
|
UDAT_RELATED_YEAR_FIELD = 34,
|
761
762
|
#endif /* U_HIDE_INTERNAL_API */
|
762
763
|
|
764
|
+
#ifndef U_HIDE_DRAFT_API
|
765
|
+
/**
|
766
|
+
* FieldPosition and UFieldPosition selector for ':' time separator,
|
767
|
+
* no corresponding UCAL_ field.
|
768
|
+
* @draft ICU 55
|
769
|
+
*/
|
770
|
+
UDAT_TIME_SEPARATOR_FIELD = 35,
|
771
|
+
#endif /* U_HIDE_DRAFT_API */
|
772
|
+
|
763
773
|
/**
|
764
774
|
* Number of FieldPosition and UFieldPosition selectors for
|
765
775
|
* DateFormat and UDateFormat.
|
@@ -768,7 +778,7 @@ typedef enum UDateFormatField {
|
|
768
778
|
* in the future.
|
769
779
|
* @stable ICU 3.0
|
770
780
|
*/
|
771
|
-
UDAT_FIELD_COUNT =
|
781
|
+
UDAT_FIELD_COUNT = 36
|
772
782
|
|
773
783
|
} UDateFormatField;
|
774
784
|
|
@@ -834,26 +844,24 @@ U_STABLE void U_EXPORT2
|
|
834
844
|
udat_close(UDateFormat* format);
|
835
845
|
|
836
846
|
|
837
|
-
/* Dont hide UDateFormatBooleanAttribute type with #ifndef U_HIDE_DRAFT_API, needed by virtual methods */
|
838
|
-
/* Also don't hide UDAT_BOOLEAN_ATTRIBUTE_COUNT, needed by template class EnumSet<UDateFormatBooleanAttribute,...> */
|
839
847
|
/**
|
840
848
|
* DateFormat boolean attributes
|
841
849
|
*
|
842
|
-
* @
|
850
|
+
* @stable ICU 53
|
843
851
|
*/
|
844
852
|
typedef enum UDateFormatBooleanAttribute {
|
845
|
-
#ifndef U_HIDE_DRAFT_API
|
846
853
|
/**
|
847
854
|
* indicates whether whitespace is allowed. Includes trailing dot tolerance.
|
848
|
-
* @
|
855
|
+
* @stable ICU 53
|
849
856
|
*/
|
850
857
|
UDAT_PARSE_ALLOW_WHITESPACE = 0,
|
851
858
|
/**
|
852
859
|
* indicates tolerance of numeric data when String data may be assumed. eg: UDAT_YEAR_NAME_FIELD,
|
853
860
|
* UDAT_STANDALONE_MONTH_FIELD, UDAT_DAY_OF_WEEK_FIELD
|
854
|
-
* @
|
861
|
+
* @stable ICU 53
|
855
862
|
*/
|
856
863
|
UDAT_PARSE_ALLOW_NUMERIC = 1,
|
864
|
+
#ifndef U_HIDE_DRAFT_API
|
857
865
|
/**
|
858
866
|
* indicates tolerance of a partial literal match
|
859
867
|
* @draft ICU 53
|
@@ -868,12 +876,11 @@ typedef enum UDateFormatBooleanAttribute {
|
|
868
876
|
#endif /* U_HIDE_DRAFT_API */
|
869
877
|
/**
|
870
878
|
* count boolean date format constants
|
871
|
-
* @
|
879
|
+
* @stable ICU 53
|
872
880
|
*/
|
873
881
|
UDAT_BOOLEAN_ATTRIBUTE_COUNT = 4
|
874
882
|
} UDateFormatBooleanAttribute;
|
875
883
|
|
876
|
-
#ifndef U_HIDE_DRAFT_API
|
877
884
|
/**
|
878
885
|
* Get a boolean attribute associated with a UDateFormat.
|
879
886
|
* An example would be a true value for a key of UDAT_PARSE_ALLOW_WHITESPACE indicating allowing whitespace leniency.
|
@@ -882,9 +889,9 @@ typedef enum UDateFormatBooleanAttribute {
|
|
882
889
|
* @param attr The attribute to query; e.g. UDAT_PARSE_ALLOW_WHITESPACE.
|
883
890
|
* @param status A pointer to an UErrorCode to receive any errors
|
884
891
|
* @return The value of attr.
|
885
|
-
* @
|
892
|
+
* @stable ICU 53
|
886
893
|
*/
|
887
|
-
|
894
|
+
U_STABLE UBool U_EXPORT2
|
888
895
|
udat_getBooleanAttribute(const UDateFormat* fmt, UDateFormatBooleanAttribute attr, UErrorCode* status);
|
889
896
|
|
890
897
|
/**
|
@@ -895,13 +902,11 @@ udat_getBooleanAttribute(const UDateFormat* fmt, UDateFormatBooleanAttribute att
|
|
895
902
|
* @param attr The attribute to set; one of UDAT_PARSE_ALLOW_WHITESPACE or UDAT_PARSE_ALLOW_NUMERIC
|
896
903
|
* @param newValue The new value of attr.
|
897
904
|
* @param status A pointer to an UErrorCode to receive any errors
|
898
|
-
* @
|
905
|
+
* @stable ICU 53
|
899
906
|
*/
|
900
|
-
|
907
|
+
U_STABLE void U_EXPORT2
|
901
908
|
udat_setBooleanAttribute(UDateFormat *fmt, UDateFormatBooleanAttribute attr, UBool newValue, UErrorCode* status);
|
902
909
|
|
903
|
-
#endif /* U_HIDE_DRAFT_API */
|
904
|
-
|
905
910
|
|
906
911
|
|
907
912
|
#if U_SHOW_CPLUSPLUS_API
|
@@ -936,7 +941,7 @@ udat_clone(const UDateFormat *fmt,
|
|
936
941
|
UErrorCode *status);
|
937
942
|
|
938
943
|
/**
|
939
|
-
* Format a date using
|
944
|
+
* Format a date using a UDateFormat.
|
940
945
|
* The date will be formatted using the conventions specified in {@link #udat_open }
|
941
946
|
* @param format The formatter to use
|
942
947
|
* @param dateToFormat The date to format
|
@@ -961,6 +966,112 @@ udat_format( const UDateFormat* format,
|
|
961
966
|
UFieldPosition* position,
|
962
967
|
UErrorCode* status);
|
963
968
|
|
969
|
+
#ifndef U_HIDE_DRAFT_API
|
970
|
+
/**
|
971
|
+
* Format a date using an UDateFormat.
|
972
|
+
* The date will be formatted using the conventions specified in {@link #udat_open }
|
973
|
+
* @param format The formatter to use
|
974
|
+
* @param calendar The calendar to format. The calendar instance might be
|
975
|
+
* mutated if fields are not yet fully calculated, though
|
976
|
+
* the function won't change the logical date and time held
|
977
|
+
* by the instance.
|
978
|
+
* @param result A pointer to a buffer to receive the formatted number.
|
979
|
+
* @param capacity The maximum size of result.
|
980
|
+
* @param position A pointer to a UFieldPosition. On input, position->field
|
981
|
+
* is read. On output, position->beginIndex and position->endIndex indicate
|
982
|
+
* the beginning and ending indices of field number position->field, if such
|
983
|
+
* a field exists. This parameter may be NULL, in which case no field
|
984
|
+
* position data is returned.
|
985
|
+
* @param status A pointer to an UErrorCode to receive any errors
|
986
|
+
* @return The total buffer size needed; if greater than resultLength, the output was truncated.
|
987
|
+
* @see udat_format
|
988
|
+
* @see udat_parseCalendar
|
989
|
+
* @see UFieldPosition
|
990
|
+
* @draft ICU 55
|
991
|
+
*/
|
992
|
+
U_DRAFT int32_t U_EXPORT2
|
993
|
+
udat_formatCalendar( const UDateFormat* format,
|
994
|
+
UCalendar* calendar,
|
995
|
+
UChar* result,
|
996
|
+
int32_t capacity,
|
997
|
+
UFieldPosition* position,
|
998
|
+
UErrorCode* status);
|
999
|
+
|
1000
|
+
/**
|
1001
|
+
* Format a date using a UDateFormat.
|
1002
|
+
* The date will be formatted using the conventions specified in {@link #udat_open}
|
1003
|
+
* @param format
|
1004
|
+
* The formatter to use
|
1005
|
+
* @param dateToFormat
|
1006
|
+
* The date to format
|
1007
|
+
* @param result
|
1008
|
+
* A pointer to a buffer to receive the formatted number.
|
1009
|
+
* @param resultLength
|
1010
|
+
* The maximum size of result.
|
1011
|
+
* @param fpositer
|
1012
|
+
* A pointer to a UFieldPositionIterator created by {@link #ufieldpositer_open}
|
1013
|
+
* (may be NULL if field position information is not needed). Any
|
1014
|
+
* iteration information already present in the UFieldPositionIterator
|
1015
|
+
* will be deleted, and the iterator will be reset to apply to the
|
1016
|
+
* fields in the formatted string created by this function call; the
|
1017
|
+
* field values provided by {@link #ufieldpositer_next} will be from the
|
1018
|
+
* UDateFormatField enum.
|
1019
|
+
* @param status
|
1020
|
+
* A pointer to a UErrorCode to receive any errors
|
1021
|
+
* @return
|
1022
|
+
* The total buffer size needed; if greater than resultLength, the output was truncated.
|
1023
|
+
* @see udat_parse
|
1024
|
+
* @see UFieldPositionIterator
|
1025
|
+
* @draft ICU 55
|
1026
|
+
*/
|
1027
|
+
U_DRAFT int32_t U_EXPORT2
|
1028
|
+
udat_formatForFields( const UDateFormat* format,
|
1029
|
+
UDate dateToFormat,
|
1030
|
+
UChar* result,
|
1031
|
+
int32_t resultLength,
|
1032
|
+
UFieldPositionIterator* fpositer,
|
1033
|
+
UErrorCode* status);
|
1034
|
+
|
1035
|
+
/**
|
1036
|
+
* Format a date using a UDateFormat.
|
1037
|
+
* The date will be formatted using the conventions specified in {@link #udat_open }
|
1038
|
+
* @param format
|
1039
|
+
* The formatter to use
|
1040
|
+
* @param calendar
|
1041
|
+
* The calendar to format. The calendar instance might be mutated if fields
|
1042
|
+
* are not yet fully calculated, though the function won't change the logical
|
1043
|
+
* date and time held by the instance.
|
1044
|
+
* @param result
|
1045
|
+
* A pointer to a buffer to receive the formatted number.
|
1046
|
+
* @param capacity
|
1047
|
+
* The maximum size of result.
|
1048
|
+
* @param fpositer
|
1049
|
+
* A pointer to a UFieldPositionIterator created by {@link #ufieldpositer_open}
|
1050
|
+
* (may be NULL if field position information is not needed). Any
|
1051
|
+
* iteration information already present in the UFieldPositionIterator
|
1052
|
+
* will be deleted, and the iterator will be reset to apply to the
|
1053
|
+
* fields in the formatted string created by this function call; the
|
1054
|
+
* field values provided by {@link #ufieldpositer_next} will be from the
|
1055
|
+
* UDateFormatField enum.
|
1056
|
+
* @param status
|
1057
|
+
* A pointer to a UErrorCode to receive any errors
|
1058
|
+
* @return
|
1059
|
+
* The total buffer size needed; if greater than resultLength, the output was truncated.
|
1060
|
+
* @see udat_format
|
1061
|
+
* @see udat_parseCalendar
|
1062
|
+
* @see UFieldPositionIterator
|
1063
|
+
* @draft ICU 55
|
1064
|
+
*/
|
1065
|
+
U_DRAFT int32_t U_EXPORT2
|
1066
|
+
udat_formatCalendarForFields( const UDateFormat* format,
|
1067
|
+
UCalendar* calendar,
|
1068
|
+
UChar* result,
|
1069
|
+
int32_t capacity,
|
1070
|
+
UFieldPositionIterator* fpositer,
|
1071
|
+
UErrorCode* status);
|
1072
|
+
|
1073
|
+
#endif /* U_HIDE_DRAFT_API */
|
1074
|
+
|
964
1075
|
/**
|
965
1076
|
* Parse a string into an date/time using a UDateFormat.
|
966
1077
|
* The date will be parsed using the conventions specified in {@link #udat_open }.
|
@@ -1300,40 +1411,40 @@ typedef enum UDateFormatSymbolType {
|
|
1300
1411
|
UDAT_STANDALONE_SHORTER_WEEKDAYS
|
1301
1412
|
#ifndef U_HIDE_DRAFT_API
|
1302
1413
|
,
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1414
|
+
/**
|
1415
|
+
* Cyclic year names (only supported for some calendars, and only for FORMAT usage;
|
1416
|
+
* udat_setSymbols not supported for UDAT_CYCLIC_YEARS_WIDE)
|
1417
|
+
* @draft ICU 54
|
1418
|
+
*/
|
1419
|
+
UDAT_CYCLIC_YEARS_WIDE,
|
1420
|
+
/**
|
1421
|
+
* Cyclic year names (only supported for some calendars, and only for FORMAT usage)
|
1422
|
+
* @draft ICU 54
|
1423
|
+
*/
|
1424
|
+
UDAT_CYCLIC_YEARS_ABBREVIATED,
|
1425
|
+
/**
|
1426
|
+
* Cyclic year names (only supported for some calendars, and only for FORMAT usage;
|
1427
|
+
* udat_setSymbols not supported for UDAT_CYCLIC_YEARS_NARROW)
|
1428
|
+
* @draft ICU 54
|
1429
|
+
*/
|
1430
|
+
UDAT_CYCLIC_YEARS_NARROW,
|
1431
|
+
/**
|
1432
|
+
* Calendar zodiac names (only supported for some calendars, and only for FORMAT usage;
|
1433
|
+
* udat_setSymbols not supported for UDAT_ZODIAC_NAMES_WIDE)
|
1434
|
+
* @draft ICU 54
|
1435
|
+
*/
|
1436
|
+
UDAT_ZODIAC_NAMES_WIDE,
|
1437
|
+
/**
|
1438
|
+
* Calendar zodiac names (only supported for some calendars, and only for FORMAT usage)
|
1439
|
+
* @draft ICU 54
|
1440
|
+
*/
|
1441
|
+
UDAT_ZODIAC_NAMES_ABBREVIATED,
|
1442
|
+
/**
|
1443
|
+
* Calendar zodiac names (only supported for some calendars, and only for FORMAT usage;
|
1444
|
+
* udat_setSymbols not supported for UDAT_ZODIAC_NAMES_NARROW)
|
1445
|
+
* @draft ICU 54
|
1446
|
+
*/
|
1447
|
+
UDAT_ZODIAC_NAMES_NARROW
|
1337
1448
|
#endif /* U_HIDE_DRAFT_API */
|
1338
1449
|
} UDateFormatSymbolType;
|
1339
1450
|
|
@@ -1432,7 +1543,6 @@ udat_getLocaleByType(const UDateFormat *fmt,
|
|
1432
1543
|
U_DRAFT void U_EXPORT2
|
1433
1544
|
udat_setContext(UDateFormat* fmt, UDisplayContext value, UErrorCode* status);
|
1434
1545
|
|
1435
|
-
#ifndef U_HIDE_DRAFT_API
|
1436
1546
|
/**
|
1437
1547
|
* Get the formatter's UDisplayContext value for the specified UDisplayContextType,
|
1438
1548
|
* such as UDISPCTX_TYPE_CAPITALIZATION.
|
@@ -1440,13 +1550,11 @@ udat_setContext(UDateFormat* fmt, UDisplayContext value, UErrorCode* status);
|
|
1440
1550
|
* @param type The UDisplayContextType whose value to return
|
1441
1551
|
* @param status A pointer to an UErrorCode to receive any errors
|
1442
1552
|
* @return The UDisplayContextValue for the specified type.
|
1443
|
-
* @
|
1553
|
+
* @stable ICU 53
|
1444
1554
|
*/
|
1445
|
-
|
1555
|
+
U_STABLE UDisplayContext U_EXPORT2
|
1446
1556
|
udat_getContext(const UDateFormat* fmt, UDisplayContextType type, UErrorCode* status);
|
1447
1557
|
|
1448
|
-
#endif /* U_HIDE_DRAFT_API */
|
1449
|
-
|
1450
1558
|
#ifndef U_HIDE_INTERNAL_API
|
1451
1559
|
/**
|
1452
1560
|
* Extract the date pattern from a UDateFormat set for relative date formatting.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
*******************************************************************************
|
3
3
|
*
|
4
|
-
* Copyright (C) 2007-
|
4
|
+
* Copyright (C) 2007-2015, International Business Machines
|
5
5
|
* Corporation and others. All Rights Reserved.
|
6
6
|
*
|
7
7
|
*******************************************************************************
|
@@ -409,14 +409,16 @@ udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg,
|
|
409
409
|
int32_t *pLength);
|
410
410
|
|
411
411
|
/**
|
412
|
-
* The
|
413
|
-
* time patterns. The default
|
414
|
-
* by the date pattern and {
|
412
|
+
* The DateTimeFormat is a message format pattern used to compose date and
|
413
|
+
* time patterns. The default pattern in the root locale is "{1} {0}", where
|
414
|
+
* {1} will be replaced by the date pattern and {0} will be replaced by the
|
415
|
+
* time pattern; however, other locales may specify patterns such as
|
416
|
+
* "{1}, {0}" or "{1} 'at' {0}", etc.
|
415
417
|
* <p>
|
416
418
|
* This is used when the input skeleton contains both date and time fields,
|
417
419
|
* but there is not a close match among the added patterns. For example,
|
418
420
|
* suppose that this object was created by adding "dd-MMM" and "hh:mm", and
|
419
|
-
* its
|
421
|
+
* its DateTimeFormat is the default "{1} {0}". Then if the input skeleton
|
420
422
|
* is "MMMdhmm", there is not an exact match, so the input skeleton is
|
421
423
|
* broken up into two components "MMMd" and "hmm". There are close matches
|
422
424
|
* for those two skeletons, so the result is put together with this pattern,
|
@@ -424,8 +426,8 @@ udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg,
|
|
424
426
|
*
|
425
427
|
* @param dtpg a pointer to UDateTimePatternGenerator.
|
426
428
|
* @param dtFormat
|
427
|
-
* message format pattern, here {
|
428
|
-
* pattern and {
|
429
|
+
* message format pattern, here {1} will be replaced by the date
|
430
|
+
* pattern and {0} will be replaced by the time pattern.
|
429
431
|
* @param length the length of dtFormat.
|
430
432
|
* @stable ICU 3.8
|
431
433
|
*/
|