pango 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +33 -0
- data/Rakefile +65 -0
- data/ext/pango/depend +12 -0
- data/ext/pango/extconf.rb +90 -0
- data/ext/pango/pango.def +18 -0
- data/ext/pango/rbpango.c +318 -0
- data/ext/pango/rbpango.h +96 -0
- data/ext/pango/rbpangoanalysis.c +218 -0
- data/ext/pango/rbpangoattribute.c +499 -0
- data/ext/pango/rbpangoattriterator.c +141 -0
- data/ext/pango/rbpangoattrlist.c +101 -0
- data/ext/pango/rbpangocairo.c +122 -0
- data/ext/pango/rbpangocairocontext.c +131 -0
- data/ext/pango/rbpangocolor.c +120 -0
- data/ext/pango/rbpangocontext.c +309 -0
- data/ext/pango/rbpangoconversions.h +111 -0
- data/ext/pango/rbpangocoverage.c +106 -0
- data/ext/pango/rbpangoengine.c +73 -0
- data/ext/pango/rbpangofont.c +110 -0
- data/ext/pango/rbpangofontdescription.c +282 -0
- data/ext/pango/rbpangofontface.c +73 -0
- data/ext/pango/rbpangofontfamily.c +79 -0
- data/ext/pango/rbpangofontmap.c +102 -0
- data/ext/pango/rbpangofontmetrics.c +85 -0
- data/ext/pango/rbpangofontset.c +69 -0
- data/ext/pango/rbpangofontsetsimple.c +60 -0
- data/ext/pango/rbpangoglyphinfo.c +123 -0
- data/ext/pango/rbpangoglyphitem.c +125 -0
- data/ext/pango/rbpangoglyphstring.c +151 -0
- data/ext/pango/rbpangogravity.c +54 -0
- data/ext/pango/rbpangoitem.c +95 -0
- data/ext/pango/rbpangolanguage.c +86 -0
- data/ext/pango/rbpangolayout.c +572 -0
- data/ext/pango/rbpangolayoutiter.c +189 -0
- data/ext/pango/rbpangolayoutline.c +239 -0
- data/ext/pango/rbpangologattr.c +109 -0
- data/ext/pango/rbpangomatrix.c +143 -0
- data/ext/pango/rbpangoprivate.h +49 -0
- data/ext/pango/rbpangorectangle.c +170 -0
- data/ext/pango/rbpangorenderer.c +193 -0
- data/ext/pango/rbpangoscript.c +84 -0
- data/ext/pango/rbpangoscriptiter.c +92 -0
- data/ext/pango/rbpangotabarray.c +128 -0
- data/extconf.rb +49 -0
- 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/lib/pango.rb +79 -0
- data/sample/attribute.rb +82 -0
- data/sample/break.rb +28 -0
- data/sample/gdk_layout.rb +27 -0
- data/sample/glyphstring.rb +61 -0
- data/sample/item.rb +37 -0
- data/sample/label.rb +23 -0
- data/sample/layout.rb +102 -0
- data/sample/pango_cairo.rb +66 -0
- data/sample/parse.rb +33 -0
- data/sample/sample.txt +10 -0
- data/sample/script.rb +23 -0
- data/test/pango-test-utils.rb +9 -0
- data/test/run-test.rb +28 -0
- data/test/test-analysis.rb +26 -0
- data/test/test-attribute.rb +19 -0
- data/test/test-color.rb +47 -0
- data/test/test-language.rb +7 -0
- data/test/test-layout.rb +34 -0
- data/test/test-log-attr.rb +26 -0
- data/test/test-matrix.rb +26 -0
- data/test/test-rectangle.rb +26 -0
- 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 +820 -0
- 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 +19 -0
- data/vendor/local/include/harfbuzz/hb-blob.h +126 -0
- data/vendor/local/include/harfbuzz/hb-buffer.h +344 -0
- data/vendor/local/include/harfbuzz/hb-common.h +344 -0
- data/vendor/local/include/harfbuzz/hb-deprecated.h +51 -0
- data/vendor/local/include/harfbuzz/hb-face.h +117 -0
- data/vendor/local/include/harfbuzz/hb-font.h +507 -0
- data/vendor/local/include/harfbuzz/hb-ft.h +62 -0
- data/vendor/local/include/harfbuzz/hb-glib.h +52 -0
- data/vendor/local/include/harfbuzz/hb-icu.h +52 -0
- data/vendor/local/include/harfbuzz/hb-ot-font.h +41 -0
- data/vendor/local/include/harfbuzz/hb-ot-layout.h +302 -0
- data/vendor/local/include/harfbuzz/hb-ot-shape.h +53 -0
- data/vendor/local/include/harfbuzz/hb-ot-tag.h +59 -0
- data/vendor/local/include/harfbuzz/hb-ot.h +43 -0
- data/vendor/local/include/harfbuzz/hb-set.h +154 -0
- data/vendor/local/include/harfbuzz/hb-shape-plan.h +89 -0
- data/vendor/local/include/harfbuzz/hb-shape.h +81 -0
- data/vendor/local/include/harfbuzz/hb-unicode.h +445 -0
- data/vendor/local/include/harfbuzz/hb-version.h +66 -0
- data/vendor/local/include/harfbuzz/hb.h +47 -0
- data/vendor/local/include/layout/LEFontInstance.h +550 -0
- data/vendor/local/include/layout/LEGlyphFilter.h +45 -0
- data/vendor/local/include/layout/LEGlyphStorage.h +546 -0
- data/vendor/local/include/layout/LEInsertionList.h +177 -0
- data/vendor/local/include/layout/LELanguages.h +112 -0
- data/vendor/local/include/layout/LEScripts.h +263 -0
- data/vendor/local/include/layout/LESwaps.h +100 -0
- data/vendor/local/include/layout/LETableReference.h +418 -0
- data/vendor/local/include/layout/LETypes.h +728 -0
- data/vendor/local/include/layout/LayoutEngine.h +518 -0
- data/vendor/local/include/layout/ParagraphLayout.h +747 -0
- data/vendor/local/include/layout/RunArrays.h +676 -0
- data/vendor/local/include/layout/loengine.h +225 -0
- data/vendor/local/include/layout/playout.h +466 -0
- data/vendor/local/include/layout/plruns.h +441 -0
- data/vendor/local/include/pango-1.0/pango/pango-attributes.h +514 -0
- data/vendor/local/include/pango-1.0/pango/pango-bidi-type.h +136 -0
- data/vendor/local/include/pango-1.0/pango/pango-break.h +173 -0
- data/vendor/local/include/pango-1.0/pango/pango-context.h +112 -0
- data/vendor/local/include/pango-1.0/pango/pango-coverage.h +79 -0
- data/vendor/local/include/pango-1.0/pango/pango-engine.h +429 -0
- data/vendor/local/include/pango-1.0/pango/pango-enum-types.h +69 -0
- data/vendor/local/include/pango-1.0/pango/pango-features.h +12 -0
- data/vendor/local/include/pango-1.0/pango/pango-font.h +622 -0
- data/vendor/local/include/pango-1.0/pango/pango-fontmap.h +167 -0
- data/vendor/local/include/pango-1.0/pango/pango-fontset.h +169 -0
- data/vendor/local/include/pango-1.0/pango/pango-glyph-item.h +158 -0
- data/vendor/local/include/pango-1.0/pango/pango-glyph.h +197 -0
- data/vendor/local/include/pango-1.0/pango/pango-gravity.h +128 -0
- data/vendor/local/include/pango-1.0/pango/pango-item.h +109 -0
- data/vendor/local/include/pango-1.0/pango/pango-language.h +61 -0
- data/vendor/local/include/pango-1.0/pango/pango-layout.h +340 -0
- data/vendor/local/include/pango-1.0/pango/pango-matrix.h +117 -0
- data/vendor/local/include/pango-1.0/pango/pango-modules.h +71 -0
- data/vendor/local/include/pango-1.0/pango/pango-ot.h +391 -0
- data/vendor/local/include/pango-1.0/pango/pango-renderer.h +260 -0
- data/vendor/local/include/pango-1.0/pango/pango-script.h +260 -0
- data/vendor/local/include/pango-1.0/pango/pango-tabs.h +87 -0
- data/vendor/local/include/pango-1.0/pango/pango-types.h +200 -0
- data/vendor/local/include/pango-1.0/pango/pango-utils.h +189 -0
- data/vendor/local/include/pango-1.0/pango/pango.h +48 -0
- data/vendor/local/include/pango-1.0/pango/pangocairo.h +169 -0
- data/vendor/local/include/pango-1.0/pango/pangofc-decoder.h +110 -0
- data/vendor/local/include/pango-1.0/pango/pangofc-font.h +153 -0
- data/vendor/local/include/pango-1.0/pango/pangofc-fontmap.h +289 -0
- data/vendor/local/include/pango-1.0/pango/pangoft2.h +133 -0
- data/vendor/local/include/pango-1.0/pango/pangowin32.h +128 -0
- data/vendor/local/include/unicode/alphaindex.h +752 -0
- data/vendor/local/include/unicode/appendable.h +232 -0
- data/vendor/local/include/unicode/basictz.h +214 -0
- data/vendor/local/include/unicode/brkiter.h +655 -0
- data/vendor/local/include/unicode/bytestream.h +257 -0
- data/vendor/local/include/unicode/bytestrie.h +519 -0
- data/vendor/local/include/unicode/bytestriebuilder.h +181 -0
- data/vendor/local/include/unicode/calendar.h +2519 -0
- data/vendor/local/include/unicode/caniter.h +208 -0
- data/vendor/local/include/unicode/chariter.h +722 -0
- data/vendor/local/include/unicode/choicfmt.h +594 -0
- data/vendor/local/include/unicode/coleitr.h +404 -0
- data/vendor/local/include/unicode/coll.h +1267 -0
- data/vendor/local/include/unicode/compactdecimalformat.h +330 -0
- data/vendor/local/include/unicode/curramt.h +130 -0
- data/vendor/local/include/unicode/currpinf.h +258 -0
- data/vendor/local/include/unicode/currunit.h +110 -0
- data/vendor/local/include/unicode/datefmt.h +883 -0
- data/vendor/local/include/unicode/dbbi.h +40 -0
- data/vendor/local/include/unicode/dcfmtsym.h +482 -0
- data/vendor/local/include/unicode/decimfmt.h +2479 -0
- data/vendor/local/include/unicode/docmain.h +215 -0
- data/vendor/local/include/unicode/dtfmtsym.h +912 -0
- data/vendor/local/include/unicode/dtintrv.h +158 -0
- data/vendor/local/include/unicode/dtitvfmt.h +985 -0
- data/vendor/local/include/unicode/dtitvinf.h +514 -0
- data/vendor/local/include/unicode/dtptngen.h +498 -0
- data/vendor/local/include/unicode/dtrule.h +250 -0
- data/vendor/local/include/unicode/enumset.h +64 -0
- data/vendor/local/include/unicode/errorcode.h +137 -0
- data/vendor/local/include/unicode/fieldpos.h +291 -0
- data/vendor/local/include/unicode/filteredbrk.h +131 -0
- data/vendor/local/include/unicode/fmtable.h +760 -0
- data/vendor/local/include/unicode/format.h +305 -0
- data/vendor/local/include/unicode/fpositer.h +117 -0
- data/vendor/local/include/unicode/gender.h +111 -0
- data/vendor/local/include/unicode/gregocal.h +777 -0
- data/vendor/local/include/unicode/icudataver.h +41 -0
- data/vendor/local/include/unicode/icuplug.h +371 -0
- data/vendor/local/include/unicode/idna.h +323 -0
- data/vendor/local/include/unicode/listformatter.h +167 -0
- data/vendor/local/include/unicode/localpointer.h +304 -0
- data/vendor/local/include/unicode/locdspnm.h +204 -0
- data/vendor/local/include/unicode/locid.h +815 -0
- data/vendor/local/include/unicode/measfmt.h +389 -0
- data/vendor/local/include/unicode/measunit.h +1443 -0
- data/vendor/local/include/unicode/measure.h +159 -0
- data/vendor/local/include/unicode/messagepattern.h +943 -0
- data/vendor/local/include/unicode/msgfmt.h +1093 -0
- data/vendor/local/include/unicode/normalizer2.h +658 -0
- data/vendor/local/include/unicode/normlzr.h +797 -0
- data/vendor/local/include/unicode/numfmt.h +1187 -0
- data/vendor/local/include/unicode/numsys.h +208 -0
- data/vendor/local/include/unicode/parseerr.h +92 -0
- data/vendor/local/include/unicode/parsepos.h +230 -0
- data/vendor/local/include/unicode/platform.h +751 -0
- data/vendor/local/include/unicode/plurfmt.h +615 -0
- data/vendor/local/include/unicode/plurrule.h +501 -0
- data/vendor/local/include/unicode/ptypes.h +126 -0
- data/vendor/local/include/unicode/putil.h +181 -0
- data/vendor/local/include/unicode/rbbi.h +782 -0
- data/vendor/local/include/unicode/rbnf.h +1032 -0
- data/vendor/local/include/unicode/rbtz.h +362 -0
- data/vendor/local/include/unicode/regex.h +1857 -0
- data/vendor/local/include/unicode/region.h +228 -0
- data/vendor/local/include/unicode/reldatefmt.h +498 -0
- data/vendor/local/include/unicode/rep.h +261 -0
- data/vendor/local/include/unicode/resbund.h +490 -0
- data/vendor/local/include/unicode/schriter.h +187 -0
- data/vendor/local/include/unicode/scientificformathelper.h +139 -0
- data/vendor/local/include/unicode/search.h +575 -0
- data/vendor/local/include/unicode/selfmt.h +367 -0
- data/vendor/local/include/unicode/simpletz.h +928 -0
- data/vendor/local/include/unicode/smpdtfmt.h +1592 -0
- data/vendor/local/include/unicode/sortkey.h +338 -0
- data/vendor/local/include/unicode/std_string.h +37 -0
- data/vendor/local/include/unicode/strenum.h +276 -0
- data/vendor/local/include/unicode/stringpiece.h +224 -0
- data/vendor/local/include/unicode/stringtriebuilder.h +402 -0
- data/vendor/local/include/unicode/stsearch.h +504 -0
- data/vendor/local/include/unicode/symtable.h +112 -0
- data/vendor/local/include/unicode/tblcoll.h +873 -0
- data/vendor/local/include/unicode/timezone.h +948 -0
- data/vendor/local/include/unicode/tmunit.h +129 -0
- data/vendor/local/include/unicode/tmutamt.h +168 -0
- data/vendor/local/include/unicode/tmutfmt.h +243 -0
- data/vendor/local/include/unicode/translit.h +1342 -0
- data/vendor/local/include/unicode/tzfmt.h +1098 -0
- data/vendor/local/include/unicode/tznames.h +404 -0
- data/vendor/local/include/unicode/tzrule.h +828 -0
- data/vendor/local/include/unicode/tztrans.h +195 -0
- data/vendor/local/include/unicode/ubidi.h +2186 -0
- data/vendor/local/include/unicode/ubrk.h +540 -0
- data/vendor/local/include/unicode/ucal.h +1560 -0
- data/vendor/local/include/unicode/ucasemap.h +423 -0
- data/vendor/local/include/unicode/ucat.h +158 -0
- data/vendor/local/include/unicode/uchar.h +3426 -0
- data/vendor/local/include/unicode/ucharstrie.h +576 -0
- data/vendor/local/include/unicode/ucharstriebuilder.h +185 -0
- data/vendor/local/include/unicode/uchriter.h +381 -0
- data/vendor/local/include/unicode/uclean.h +258 -0
- data/vendor/local/include/unicode/ucnv.h +2036 -0
- data/vendor/local/include/unicode/ucnv_cb.h +162 -0
- data/vendor/local/include/unicode/ucnv_err.h +463 -0
- data/vendor/local/include/unicode/ucnvsel.h +187 -0
- data/vendor/local/include/unicode/ucol.h +1474 -0
- data/vendor/local/include/unicode/ucoleitr.h +266 -0
- data/vendor/local/include/unicode/uconfig.h +430 -0
- data/vendor/local/include/unicode/ucsdet.h +413 -0
- data/vendor/local/include/unicode/ucurr.h +424 -0
- data/vendor/local/include/unicode/udat.h +1536 -0
- data/vendor/local/include/unicode/udata.h +430 -0
- data/vendor/local/include/unicode/udateintervalformat.h +181 -0
- data/vendor/local/include/unicode/udatpg.h +588 -0
- data/vendor/local/include/unicode/udisplaycontext.h +150 -0
- data/vendor/local/include/unicode/uenum.h +206 -0
- data/vendor/local/include/unicode/uformattable.h +280 -0
- data/vendor/local/include/unicode/ugender.h +82 -0
- data/vendor/local/include/unicode/uidna.h +762 -0
- data/vendor/local/include/unicode/uiter.h +707 -0
- data/vendor/local/include/unicode/uldnames.h +302 -0
- data/vendor/local/include/unicode/uloc.h +1256 -0
- data/vendor/local/include/unicode/ulocdata.h +277 -0
- data/vendor/local/include/unicode/umachine.h +356 -0
- data/vendor/local/include/unicode/umisc.h +60 -0
- data/vendor/local/include/unicode/umsg.h +623 -0
- data/vendor/local/include/unicode/unifilt.h +120 -0
- data/vendor/local/include/unicode/unifunct.h +125 -0
- data/vendor/local/include/unicode/unimatch.h +163 -0
- data/vendor/local/include/unicode/unirepl.h +97 -0
- data/vendor/local/include/unicode/uniset.h +1691 -0
- data/vendor/local/include/unicode/unistr.h +4470 -0
- data/vendor/local/include/unicode/unorm.h +561 -0
- data/vendor/local/include/unicode/unorm2.h +528 -0
- data/vendor/local/include/unicode/unum.h +1328 -0
- data/vendor/local/include/unicode/unumsys.h +170 -0
- data/vendor/local/include/unicode/uobject.h +320 -0
- data/vendor/local/include/unicode/upluralrules.h +145 -0
- data/vendor/local/include/unicode/uregex.h +1591 -0
- data/vendor/local/include/unicode/uregion.h +248 -0
- data/vendor/local/include/unicode/urename.h +1784 -0
- data/vendor/local/include/unicode/urep.h +155 -0
- data/vendor/local/include/unicode/ures.h +887 -0
- data/vendor/local/include/unicode/uscript.h +642 -0
- data/vendor/local/include/unicode/usearch.h +885 -0
- data/vendor/local/include/unicode/uset.h +1126 -0
- data/vendor/local/include/unicode/usetiter.h +318 -0
- data/vendor/local/include/unicode/ushape.h +474 -0
- data/vendor/local/include/unicode/uspoof.h +1064 -0
- data/vendor/local/include/unicode/usprep.h +269 -0
- data/vendor/local/include/unicode/ustdio.h +1018 -0
- data/vendor/local/include/unicode/ustream.h +68 -0
- data/vendor/local/include/unicode/ustring.h +1700 -0
- data/vendor/local/include/unicode/ustringtrie.h +95 -0
- data/vendor/local/include/unicode/utext.h +1600 -0
- data/vendor/local/include/unicode/utf.h +223 -0
- data/vendor/local/include/unicode/utf16.h +623 -0
- data/vendor/local/include/unicode/utf32.h +23 -0
- data/vendor/local/include/unicode/utf8.h +824 -0
- data/vendor/local/include/unicode/utf_old.h +1169 -0
- data/vendor/local/include/unicode/utmscale.h +481 -0
- data/vendor/local/include/unicode/utrace.h +359 -0
- data/vendor/local/include/unicode/utrans.h +658 -0
- data/vendor/local/include/unicode/utypes.h +723 -0
- data/vendor/local/include/unicode/uvernum.h +170 -0
- data/vendor/local/include/unicode/uversion.h +193 -0
- data/vendor/local/include/unicode/vtzone.h +455 -0
- data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/PangoCairo-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/PangoFT2-1.0.typelib +0 -0
- data/vendor/local/lib/icu/54.1/Makefile.inc +293 -0
- data/vendor/local/lib/icu/54.1/pkgdata.inc +17 -0
- data/vendor/local/lib/icu/Makefile.inc +293 -0
- data/vendor/local/lib/icu/pkgdata.inc +17 -0
- data/vendor/local/lib/icudt.dll +0 -0
- data/vendor/local/lib/icudt54.dll +0 -0
- data/vendor/local/lib/icuin.dll +0 -0
- data/vendor/local/lib/icuin54.dll +0 -0
- data/vendor/local/lib/icuio.dll +0 -0
- data/vendor/local/lib/icuio54.dll +0 -0
- data/vendor/local/lib/icule.dll +0 -0
- data/vendor/local/lib/icule54.dll +0 -0
- data/vendor/local/lib/iculx.dll +0 -0
- data/vendor/local/lib/iculx54.dll +0 -0
- data/vendor/local/lib/icutest.dll +0 -0
- data/vendor/local/lib/icutest54.dll +0 -0
- data/vendor/local/lib/icutu.dll +0 -0
- data/vendor/local/lib/icutu54.dll +0 -0
- data/vendor/local/lib/icuuc.dll +0 -0
- data/vendor/local/lib/icuuc54.dll +0 -0
- data/vendor/local/lib/libharfbuzz-icu.a +0 -0
- data/vendor/local/lib/libharfbuzz-icu.la +41 -0
- data/vendor/local/lib/libharfbuzz.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz.la +41 -0
- 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 +41 -0
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.la +41 -0
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.la +41 -0
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +41 -0
- 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 +41 -0
- 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 +41 -0
- 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 +41 -0
- 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 +41 -0
- data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +13 -0
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +11 -0
- data/vendor/local/lib/pkgconfig/icu-i18n.pc +38 -0
- data/vendor/local/lib/pkgconfig/icu-io.pc +38 -0
- data/vendor/local/lib/pkgconfig/icu-le.pc +38 -0
- data/vendor/local/lib/pkgconfig/icu-lx.pc +38 -0
- data/vendor/local/lib/pkgconfig/icu-uc.pc +38 -0
- data/vendor/local/lib/pkgconfig/pango.pc +14 -0
- data/vendor/local/lib/pkgconfig/pangocairo.pc +11 -0
- data/vendor/local/lib/pkgconfig/pangoft2.pc +12 -0
- data/vendor/local/lib/pkgconfig/pangowin32.pc +11 -0
- data/vendor/local/share/gir-1.0/Pango-1.0.gir +13329 -0
- data/vendor/local/share/gir-1.0/PangoCairo-1.0.gir +833 -0
- data/vendor/local/share/gir-1.0/PangoFT2-1.0.gir +354 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +75 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +1449 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/ch01.html +98 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +46 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +610 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-buffer.html +1780 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +1337 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +144 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +99 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +630 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +2529 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +188 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +120 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +50 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +120 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +120 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +771 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +172 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +50 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +966 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +405 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape.html +286 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +1523 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +100 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +182 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +50 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +378 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +105 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +496 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +59 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +224 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +255 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +246 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +500 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +1001 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +301 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +1219 -0
- data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +89 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +135 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +49 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +64 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +228 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +152 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +122 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +87 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +124 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +97 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +46 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +39 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +39 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +53 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +42 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +38 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +201 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +165 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +171 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +284 -0
- data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +2968 -0
- data/vendor/local/share/gtk-doc/html/pango/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/index.html +146 -0
- data/vendor/local/share/gtk-doc/html/pango/index.sgml +957 -0
- data/vendor/local/share/gtk-doc/html/pango/layout.gif +0 -0
- data/vendor/local/share/gtk-doc/html/pango/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +68 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +514 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +1632 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +115 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +508 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +358 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +4154 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +956 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +2627 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +4153 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +965 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +331 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +2202 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +1430 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +582 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +3356 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +2079 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +325 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +523 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +1028 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +1275 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +91 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +131 -0
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +786 -0
- data/vendor/local/share/gtk-doc/html/pango/pango.html +63 -0
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +47 -0
- data/vendor/local/share/gtk-doc/html/pango/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/rotated-text.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/pango/tools.html +33 -0
- data/vendor/local/share/gtk-doc/html/pango/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/up.png +0 -0
- data/vendor/local/share/icu/54.1/config/mh-mingw64 +158 -0
- data/vendor/local/share/icu/54.1/install-sh +251 -0
- data/vendor/local/share/icu/54.1/license.html +385 -0
- data/vendor/local/share/icu/54.1/mkinstalldirs +43 -0
- data/vendor/local/share/license/harfbuzz/AUTHORS +9 -0
- data/vendor/local/share/license/harfbuzz/COPYING +36 -0
- data/vendor/local/share/license/pango/AUTHORS +2 -0
- data/vendor/local/share/license/pango/COPYING +482 -0
- data/vendor/local/share/man/man1/derb.1 +196 -0
- data/vendor/local/share/man/man1/genbrk.1 +112 -0
- data/vendor/local/share/man/man1/gencfu.1 +91 -0
- data/vendor/local/share/man/man1/gencnval.1 +91 -0
- data/vendor/local/share/man/man1/gendict.1 +131 -0
- data/vendor/local/share/man/man1/genrb.1 +146 -0
- data/vendor/local/share/man/man1/icu-config.1 +288 -0
- data/vendor/local/share/man/man1/makeconv.1 +112 -0
- data/vendor/local/share/man/man1/pango-querymodules.1 +106 -0
- data/vendor/local/share/man/man1/pango-view.1 +1 -0
- data/vendor/local/share/man/man1/pkgdata.1 +258 -0
- data/vendor/local/share/man/man1/uconv.1 +443 -0
- data/vendor/local/share/man/man8/genccode.8 +106 -0
- data/vendor/local/share/man/man8/gencmn.8 +129 -0
- data/vendor/local/share/man/man8/gensprep.8 +102 -0
- data/vendor/local/share/man/man8/icupkg.8 +204 -0
- metadata +599 -0
@@ -0,0 +1,928 @@
|
|
1
|
+
/*
|
2
|
+
********************************************************************************
|
3
|
+
* Copyright (C) 1997-2013, International Business Machines *
|
4
|
+
* Corporation and others. All Rights Reserved. *
|
5
|
+
********************************************************************************
|
6
|
+
*
|
7
|
+
* File SIMPLETZ.H
|
8
|
+
*
|
9
|
+
* Modification History:
|
10
|
+
*
|
11
|
+
* Date Name Description
|
12
|
+
* 04/21/97 aliu Overhauled header.
|
13
|
+
* 08/10/98 stephen JDK 1.2 sync
|
14
|
+
* Added setStartRule() / setEndRule() overloads
|
15
|
+
* Added hasSameRules()
|
16
|
+
* 09/02/98 stephen Added getOffset(monthLen)
|
17
|
+
* Changed getOffset() to take UErrorCode
|
18
|
+
* 07/09/99 stephen Removed millisPerHour (unused, for HP compiler)
|
19
|
+
* 12/02/99 aliu Added TimeMode and constructor and setStart/EndRule
|
20
|
+
* methods that take TimeMode. Added to docs.
|
21
|
+
********************************************************************************
|
22
|
+
*/
|
23
|
+
|
24
|
+
#ifndef SIMPLETZ_H
|
25
|
+
#define SIMPLETZ_H
|
26
|
+
|
27
|
+
#include "unicode/utypes.h"
|
28
|
+
|
29
|
+
/**
|
30
|
+
* \file
|
31
|
+
* \brief C++ API: SimpleTimeZone is a concrete subclass of TimeZone.
|
32
|
+
*/
|
33
|
+
|
34
|
+
#if !UCONFIG_NO_FORMATTING
|
35
|
+
|
36
|
+
#include "unicode/basictz.h"
|
37
|
+
|
38
|
+
U_NAMESPACE_BEGIN
|
39
|
+
|
40
|
+
// forward declaration
|
41
|
+
class InitialTimeZoneRule;
|
42
|
+
class TimeZoneTransition;
|
43
|
+
class AnnualTimeZoneRule;
|
44
|
+
|
45
|
+
/**
|
46
|
+
* <code>SimpleTimeZone</code> is a concrete subclass of <code>TimeZone</code>
|
47
|
+
* that represents a time zone for use with a Gregorian calendar. This
|
48
|
+
* class does not handle historical changes.
|
49
|
+
* <P>
|
50
|
+
* When specifying daylight-savings-time begin and end dates, use a negative value for
|
51
|
+
* <code>dayOfWeekInMonth</code> to indicate that <code>SimpleTimeZone</code> should
|
52
|
+
* count from the end of the month backwards. For example, if Daylight Savings
|
53
|
+
* Time starts or ends at the last Sunday a month, use <code>dayOfWeekInMonth = -1</code>
|
54
|
+
* along with <code>dayOfWeek = UCAL_SUNDAY</code> to specify the rule.
|
55
|
+
*
|
56
|
+
* @see Calendar
|
57
|
+
* @see GregorianCalendar
|
58
|
+
* @see TimeZone
|
59
|
+
* @author D. Goldsmith, Mark Davis, Chen-Lieh Huang, Alan Liu
|
60
|
+
*/
|
61
|
+
class U_I18N_API SimpleTimeZone: public BasicTimeZone {
|
62
|
+
public:
|
63
|
+
|
64
|
+
/**
|
65
|
+
* TimeMode is used, together with a millisecond offset after
|
66
|
+
* midnight, to specify a rule transition time. Most rules
|
67
|
+
* transition at a local wall time, that is, according to the
|
68
|
+
* current time in effect, either standard, or DST. However, some
|
69
|
+
* rules transition at local standard time, and some at a specific
|
70
|
+
* UTC time. Although it might seem that all times could be
|
71
|
+
* converted to wall time, thus eliminating the need for this
|
72
|
+
* parameter, this is not the case.
|
73
|
+
* @stable ICU 2.0
|
74
|
+
*/
|
75
|
+
enum TimeMode {
|
76
|
+
WALL_TIME = 0,
|
77
|
+
STANDARD_TIME,
|
78
|
+
UTC_TIME
|
79
|
+
};
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Copy constructor
|
83
|
+
* @param source the object to be copied.
|
84
|
+
* @stable ICU 2.0
|
85
|
+
*/
|
86
|
+
SimpleTimeZone(const SimpleTimeZone& source);
|
87
|
+
|
88
|
+
/**
|
89
|
+
* Default assignment operator
|
90
|
+
* @param right the object to be copied.
|
91
|
+
* @stable ICU 2.0
|
92
|
+
*/
|
93
|
+
SimpleTimeZone& operator=(const SimpleTimeZone& right);
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Destructor
|
97
|
+
* @stable ICU 2.0
|
98
|
+
*/
|
99
|
+
virtual ~SimpleTimeZone();
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Returns true if the two TimeZone objects are equal; that is, they have
|
103
|
+
* the same ID, raw GMT offset, and DST rules.
|
104
|
+
*
|
105
|
+
* @param that The SimpleTimeZone object to be compared with.
|
106
|
+
* @return True if the given time zone is equal to this time zone; false
|
107
|
+
* otherwise.
|
108
|
+
* @stable ICU 2.0
|
109
|
+
*/
|
110
|
+
virtual UBool operator==(const TimeZone& that) const;
|
111
|
+
|
112
|
+
/**
|
113
|
+
* Constructs a SimpleTimeZone with the given raw GMT offset and time zone ID,
|
114
|
+
* and which doesn't observe daylight savings time. Normally you should use
|
115
|
+
* TimeZone::createInstance() to create a TimeZone instead of creating a
|
116
|
+
* SimpleTimeZone directly with this constructor.
|
117
|
+
*
|
118
|
+
* @param rawOffsetGMT The given base time zone offset to GMT.
|
119
|
+
* @param ID The timezone ID which is obtained from
|
120
|
+
* TimeZone.getAvailableIDs.
|
121
|
+
* @stable ICU 2.0
|
122
|
+
*/
|
123
|
+
SimpleTimeZone(int32_t rawOffsetGMT, const UnicodeString& ID);
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Construct a SimpleTimeZone with the given raw GMT offset, time zone ID,
|
127
|
+
* and times to start and end daylight savings time. To create a TimeZone that
|
128
|
+
* doesn't observe daylight savings time, don't use this constructor; use
|
129
|
+
* SimpleTimeZone(rawOffset, ID) instead. Normally, you should use
|
130
|
+
* TimeZone.createInstance() to create a TimeZone instead of creating a
|
131
|
+
* SimpleTimeZone directly with this constructor.
|
132
|
+
* <P>
|
133
|
+
* Various types of daylight-savings time rules can be specfied by using different
|
134
|
+
* values for startDay and startDayOfWeek and endDay and endDayOfWeek. For a
|
135
|
+
* complete explanation of how these parameters work, see the documentation for
|
136
|
+
* setStartRule().
|
137
|
+
*
|
138
|
+
* @param rawOffsetGMT The new SimpleTimeZone's raw GMT offset
|
139
|
+
* @param ID The new SimpleTimeZone's time zone ID.
|
140
|
+
* @param savingsStartMonth The daylight savings starting month. Month is
|
141
|
+
* 0-based. eg, 0 for January.
|
142
|
+
* @param savingsStartDayOfWeekInMonth The daylight savings starting
|
143
|
+
* day-of-week-in-month. See setStartRule() for a
|
144
|
+
* complete explanation.
|
145
|
+
* @param savingsStartDayOfWeek The daylight savings starting day-of-week.
|
146
|
+
* See setStartRule() for a complete explanation.
|
147
|
+
* @param savingsStartTime The daylight savings starting time, expressed as the
|
148
|
+
* number of milliseconds after midnight.
|
149
|
+
* @param savingsEndMonth The daylight savings ending month. Month is
|
150
|
+
* 0-based. eg, 0 for January.
|
151
|
+
* @param savingsEndDayOfWeekInMonth The daylight savings ending day-of-week-in-month.
|
152
|
+
* See setStartRule() for a complete explanation.
|
153
|
+
* @param savingsEndDayOfWeek The daylight savings ending day-of-week.
|
154
|
+
* See setStartRule() for a complete explanation.
|
155
|
+
* @param savingsEndTime The daylight savings ending time, expressed as the
|
156
|
+
* number of milliseconds after midnight.
|
157
|
+
* @param status An UErrorCode to receive the status.
|
158
|
+
* @stable ICU 2.0
|
159
|
+
*/
|
160
|
+
SimpleTimeZone(int32_t rawOffsetGMT, const UnicodeString& ID,
|
161
|
+
int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth,
|
162
|
+
int8_t savingsStartDayOfWeek, int32_t savingsStartTime,
|
163
|
+
int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth,
|
164
|
+
int8_t savingsEndDayOfWeek, int32_t savingsEndTime,
|
165
|
+
UErrorCode& status);
|
166
|
+
/**
|
167
|
+
* Construct a SimpleTimeZone with the given raw GMT offset, time zone ID,
|
168
|
+
* and times to start and end daylight savings time. To create a TimeZone that
|
169
|
+
* doesn't observe daylight savings time, don't use this constructor; use
|
170
|
+
* SimpleTimeZone(rawOffset, ID) instead. Normally, you should use
|
171
|
+
* TimeZone.createInstance() to create a TimeZone instead of creating a
|
172
|
+
* SimpleTimeZone directly with this constructor.
|
173
|
+
* <P>
|
174
|
+
* Various types of daylight-savings time rules can be specfied by using different
|
175
|
+
* values for startDay and startDayOfWeek and endDay and endDayOfWeek. For a
|
176
|
+
* complete explanation of how these parameters work, see the documentation for
|
177
|
+
* setStartRule().
|
178
|
+
*
|
179
|
+
* @param rawOffsetGMT The new SimpleTimeZone's raw GMT offset
|
180
|
+
* @param ID The new SimpleTimeZone's time zone ID.
|
181
|
+
* @param savingsStartMonth The daylight savings starting month. Month is
|
182
|
+
* 0-based. eg, 0 for January.
|
183
|
+
* @param savingsStartDayOfWeekInMonth The daylight savings starting
|
184
|
+
* day-of-week-in-month. See setStartRule() for a
|
185
|
+
* complete explanation.
|
186
|
+
* @param savingsStartDayOfWeek The daylight savings starting day-of-week.
|
187
|
+
* See setStartRule() for a complete explanation.
|
188
|
+
* @param savingsStartTime The daylight savings starting time, expressed as the
|
189
|
+
* number of milliseconds after midnight.
|
190
|
+
* @param savingsEndMonth The daylight savings ending month. Month is
|
191
|
+
* 0-based. eg, 0 for January.
|
192
|
+
* @param savingsEndDayOfWeekInMonth The daylight savings ending day-of-week-in-month.
|
193
|
+
* See setStartRule() for a complete explanation.
|
194
|
+
* @param savingsEndDayOfWeek The daylight savings ending day-of-week.
|
195
|
+
* See setStartRule() for a complete explanation.
|
196
|
+
* @param savingsEndTime The daylight savings ending time, expressed as the
|
197
|
+
* number of milliseconds after midnight.
|
198
|
+
* @param savingsDST The number of milliseconds added to standard time
|
199
|
+
* to get DST time. Default is one hour.
|
200
|
+
* @param status An UErrorCode to receive the status.
|
201
|
+
* @stable ICU 2.0
|
202
|
+
*/
|
203
|
+
SimpleTimeZone(int32_t rawOffsetGMT, const UnicodeString& ID,
|
204
|
+
int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth,
|
205
|
+
int8_t savingsStartDayOfWeek, int32_t savingsStartTime,
|
206
|
+
int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth,
|
207
|
+
int8_t savingsEndDayOfWeek, int32_t savingsEndTime,
|
208
|
+
int32_t savingsDST, UErrorCode& status);
|
209
|
+
|
210
|
+
/**
|
211
|
+
* Construct a SimpleTimeZone with the given raw GMT offset, time zone ID,
|
212
|
+
* and times to start and end daylight savings time. To create a TimeZone that
|
213
|
+
* doesn't observe daylight savings time, don't use this constructor; use
|
214
|
+
* SimpleTimeZone(rawOffset, ID) instead. Normally, you should use
|
215
|
+
* TimeZone.createInstance() to create a TimeZone instead of creating a
|
216
|
+
* SimpleTimeZone directly with this constructor.
|
217
|
+
* <P>
|
218
|
+
* Various types of daylight-savings time rules can be specfied by using different
|
219
|
+
* values for startDay and startDayOfWeek and endDay and endDayOfWeek. For a
|
220
|
+
* complete explanation of how these parameters work, see the documentation for
|
221
|
+
* setStartRule().
|
222
|
+
*
|
223
|
+
* @param rawOffsetGMT The new SimpleTimeZone's raw GMT offset
|
224
|
+
* @param ID The new SimpleTimeZone's time zone ID.
|
225
|
+
* @param savingsStartMonth The daylight savings starting month. Month is
|
226
|
+
* 0-based. eg, 0 for January.
|
227
|
+
* @param savingsStartDayOfWeekInMonth The daylight savings starting
|
228
|
+
* day-of-week-in-month. See setStartRule() for a
|
229
|
+
* complete explanation.
|
230
|
+
* @param savingsStartDayOfWeek The daylight savings starting day-of-week.
|
231
|
+
* See setStartRule() for a complete explanation.
|
232
|
+
* @param savingsStartTime The daylight savings starting time, expressed as the
|
233
|
+
* number of milliseconds after midnight.
|
234
|
+
* @param savingsStartTimeMode Whether the start time is local wall time, local
|
235
|
+
* standard time, or UTC time. Default is local wall time.
|
236
|
+
* @param savingsEndMonth The daylight savings ending month. Month is
|
237
|
+
* 0-based. eg, 0 for January.
|
238
|
+
* @param savingsEndDayOfWeekInMonth The daylight savings ending day-of-week-in-month.
|
239
|
+
* See setStartRule() for a complete explanation.
|
240
|
+
* @param savingsEndDayOfWeek The daylight savings ending day-of-week.
|
241
|
+
* See setStartRule() for a complete explanation.
|
242
|
+
* @param savingsEndTime The daylight savings ending time, expressed as the
|
243
|
+
* number of milliseconds after midnight.
|
244
|
+
* @param savingsEndTimeMode Whether the end time is local wall time, local
|
245
|
+
* standard time, or UTC time. Default is local wall time.
|
246
|
+
* @param savingsDST The number of milliseconds added to standard time
|
247
|
+
* to get DST time. Default is one hour.
|
248
|
+
* @param status An UErrorCode to receive the status.
|
249
|
+
* @stable ICU 2.0
|
250
|
+
*/
|
251
|
+
SimpleTimeZone(int32_t rawOffsetGMT, const UnicodeString& ID,
|
252
|
+
int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth,
|
253
|
+
int8_t savingsStartDayOfWeek, int32_t savingsStartTime,
|
254
|
+
TimeMode savingsStartTimeMode,
|
255
|
+
int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth,
|
256
|
+
int8_t savingsEndDayOfWeek, int32_t savingsEndTime, TimeMode savingsEndTimeMode,
|
257
|
+
int32_t savingsDST, UErrorCode& status);
|
258
|
+
|
259
|
+
/**
|
260
|
+
* Sets the daylight savings starting year, that is, the year this time zone began
|
261
|
+
* observing its specified daylight savings time rules. The time zone is considered
|
262
|
+
* not to observe daylight savings time prior to that year; SimpleTimeZone doesn't
|
263
|
+
* support historical daylight-savings-time rules.
|
264
|
+
* @param year the daylight savings starting year.
|
265
|
+
* @stable ICU 2.0
|
266
|
+
*/
|
267
|
+
void setStartYear(int32_t year);
|
268
|
+
|
269
|
+
/**
|
270
|
+
* Sets the daylight savings starting rule. For example, in the U.S., Daylight Savings
|
271
|
+
* Time starts at the second Sunday in March, at 2 AM in standard time.
|
272
|
+
* Therefore, you can set the start rule by calling:
|
273
|
+
* setStartRule(UCAL_MARCH, 2, UCAL_SUNDAY, 2*60*60*1000);
|
274
|
+
* The dayOfWeekInMonth and dayOfWeek parameters together specify how to calculate
|
275
|
+
* the exact starting date. Their exact meaning depend on their respective signs,
|
276
|
+
* allowing various types of rules to be constructed, as follows:
|
277
|
+
* <ul>
|
278
|
+
* <li>If both dayOfWeekInMonth and dayOfWeek are positive, they specify the
|
279
|
+
* day of week in the month (e.g., (2, WEDNESDAY) is the second Wednesday
|
280
|
+
* of the month).</li>
|
281
|
+
* <li>If dayOfWeek is positive and dayOfWeekInMonth is negative, they specify
|
282
|
+
* the day of week in the month counting backward from the end of the month.
|
283
|
+
* (e.g., (-1, MONDAY) is the last Monday in the month)</li>
|
284
|
+
* <li>If dayOfWeek is zero and dayOfWeekInMonth is positive, dayOfWeekInMonth
|
285
|
+
* specifies the day of the month, regardless of what day of the week it is.
|
286
|
+
* (e.g., (10, 0) is the tenth day of the month)</li>
|
287
|
+
* <li>If dayOfWeek is zero and dayOfWeekInMonth is negative, dayOfWeekInMonth
|
288
|
+
* specifies the day of the month counting backward from the end of the
|
289
|
+
* month, regardless of what day of the week it is (e.g., (-2, 0) is the
|
290
|
+
* next-to-last day of the month).</li>
|
291
|
+
* <li>If dayOfWeek is negative and dayOfWeekInMonth is positive, they specify the
|
292
|
+
* first specified day of the week on or after the specfied day of the month.
|
293
|
+
* (e.g., (15, -SUNDAY) is the first Sunday after the 15th of the month
|
294
|
+
* [or the 15th itself if the 15th is a Sunday].)</li>
|
295
|
+
* <li>If dayOfWeek and DayOfWeekInMonth are both negative, they specify the
|
296
|
+
* last specified day of the week on or before the specified day of the month.
|
297
|
+
* (e.g., (-20, -TUESDAY) is the last Tuesday before the 20th of the month
|
298
|
+
* [or the 20th itself if the 20th is a Tuesday].)</li>
|
299
|
+
* </ul>
|
300
|
+
* @param month the daylight savings starting month. Month is 0-based.
|
301
|
+
* eg, 0 for January.
|
302
|
+
* @param dayOfWeekInMonth the daylight savings starting
|
303
|
+
* day-of-week-in-month. Please see the member description for an example.
|
304
|
+
* @param dayOfWeek the daylight savings starting day-of-week. Please see
|
305
|
+
* the member description for an example.
|
306
|
+
* @param time the daylight savings starting time. Please see the member
|
307
|
+
* description for an example.
|
308
|
+
* @param status An UErrorCode
|
309
|
+
* @stable ICU 2.0
|
310
|
+
*/
|
311
|
+
void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
|
312
|
+
int32_t time, UErrorCode& status);
|
313
|
+
/**
|
314
|
+
* Sets the daylight savings starting rule. For example, in the U.S., Daylight Savings
|
315
|
+
* Time starts at the second Sunday in March, at 2 AM in standard time.
|
316
|
+
* Therefore, you can set the start rule by calling:
|
317
|
+
* setStartRule(UCAL_MARCH, 2, UCAL_SUNDAY, 2*60*60*1000);
|
318
|
+
* The dayOfWeekInMonth and dayOfWeek parameters together specify how to calculate
|
319
|
+
* the exact starting date. Their exact meaning depend on their respective signs,
|
320
|
+
* allowing various types of rules to be constructed, as follows:
|
321
|
+
* <ul>
|
322
|
+
* <li>If both dayOfWeekInMonth and dayOfWeek are positive, they specify the
|
323
|
+
* day of week in the month (e.g., (2, WEDNESDAY) is the second Wednesday
|
324
|
+
* of the month).</li>
|
325
|
+
* <li>If dayOfWeek is positive and dayOfWeekInMonth is negative, they specify
|
326
|
+
* the day of week in the month counting backward from the end of the month.
|
327
|
+
* (e.g., (-1, MONDAY) is the last Monday in the month)</li>
|
328
|
+
* <li>If dayOfWeek is zero and dayOfWeekInMonth is positive, dayOfWeekInMonth
|
329
|
+
* specifies the day of the month, regardless of what day of the week it is.
|
330
|
+
* (e.g., (10, 0) is the tenth day of the month)</li>
|
331
|
+
* <li>If dayOfWeek is zero and dayOfWeekInMonth is negative, dayOfWeekInMonth
|
332
|
+
* specifies the day of the month counting backward from the end of the
|
333
|
+
* month, regardless of what day of the week it is (e.g., (-2, 0) is the
|
334
|
+
* next-to-last day of the month).</li>
|
335
|
+
* <li>If dayOfWeek is negative and dayOfWeekInMonth is positive, they specify the
|
336
|
+
* first specified day of the week on or after the specfied day of the month.
|
337
|
+
* (e.g., (15, -SUNDAY) is the first Sunday after the 15th of the month
|
338
|
+
* [or the 15th itself if the 15th is a Sunday].)</li>
|
339
|
+
* <li>If dayOfWeek and DayOfWeekInMonth are both negative, they specify the
|
340
|
+
* last specified day of the week on or before the specified day of the month.
|
341
|
+
* (e.g., (-20, -TUESDAY) is the last Tuesday before the 20th of the month
|
342
|
+
* [or the 20th itself if the 20th is a Tuesday].)</li>
|
343
|
+
* </ul>
|
344
|
+
* @param month the daylight savings starting month. Month is 0-based.
|
345
|
+
* eg, 0 for January.
|
346
|
+
* @param dayOfWeekInMonth the daylight savings starting
|
347
|
+
* day-of-week-in-month. Please see the member description for an example.
|
348
|
+
* @param dayOfWeek the daylight savings starting day-of-week. Please see
|
349
|
+
* the member description for an example.
|
350
|
+
* @param time the daylight savings starting time. Please see the member
|
351
|
+
* description for an example.
|
352
|
+
* @param mode whether the time is local wall time, local standard time,
|
353
|
+
* or UTC time. Default is local wall time.
|
354
|
+
* @param status An UErrorCode
|
355
|
+
* @stable ICU 2.0
|
356
|
+
*/
|
357
|
+
void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
|
358
|
+
int32_t time, TimeMode mode, UErrorCode& status);
|
359
|
+
|
360
|
+
/**
|
361
|
+
* Sets the DST start rule to a fixed date within a month.
|
362
|
+
*
|
363
|
+
* @param month The month in which this rule occurs (0-based).
|
364
|
+
* @param dayOfMonth The date in that month (1-based).
|
365
|
+
* @param time The time of that day (number of millis after midnight)
|
366
|
+
* when DST takes effect in local wall time, which is
|
367
|
+
* standard time in this case.
|
368
|
+
* @param status An UErrorCode
|
369
|
+
* @stable ICU 2.0
|
370
|
+
*/
|
371
|
+
void setStartRule(int32_t month, int32_t dayOfMonth, int32_t time,
|
372
|
+
UErrorCode& status);
|
373
|
+
/**
|
374
|
+
* Sets the DST start rule to a fixed date within a month.
|
375
|
+
*
|
376
|
+
* @param month The month in which this rule occurs (0-based).
|
377
|
+
* @param dayOfMonth The date in that month (1-based).
|
378
|
+
* @param time The time of that day (number of millis after midnight)
|
379
|
+
* when DST takes effect in local wall time, which is
|
380
|
+
* standard time in this case.
|
381
|
+
* @param mode whether the time is local wall time, local standard time,
|
382
|
+
* or UTC time. Default is local wall time.
|
383
|
+
* @param status An UErrorCode
|
384
|
+
* @stable ICU 2.0
|
385
|
+
*/
|
386
|
+
void setStartRule(int32_t month, int32_t dayOfMonth, int32_t time,
|
387
|
+
TimeMode mode, UErrorCode& status);
|
388
|
+
|
389
|
+
/**
|
390
|
+
* Sets the DST start rule to a weekday before or after a give date within
|
391
|
+
* a month, e.g., the first Monday on or after the 8th.
|
392
|
+
*
|
393
|
+
* @param month The month in which this rule occurs (0-based).
|
394
|
+
* @param dayOfMonth A date within that month (1-based).
|
395
|
+
* @param dayOfWeek The day of the week on which this rule occurs.
|
396
|
+
* @param time The time of that day (number of millis after midnight)
|
397
|
+
* when DST takes effect in local wall time, which is
|
398
|
+
* standard time in this case.
|
399
|
+
* @param after If true, this rule selects the first dayOfWeek on
|
400
|
+
* or after dayOfMonth. If false, this rule selects
|
401
|
+
* the last dayOfWeek on or before dayOfMonth.
|
402
|
+
* @param status An UErrorCode
|
403
|
+
* @stable ICU 2.0
|
404
|
+
*/
|
405
|
+
void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
|
406
|
+
int32_t time, UBool after, UErrorCode& status);
|
407
|
+
/**
|
408
|
+
* Sets the DST start rule to a weekday before or after a give date within
|
409
|
+
* a month, e.g., the first Monday on or after the 8th.
|
410
|
+
*
|
411
|
+
* @param month The month in which this rule occurs (0-based).
|
412
|
+
* @param dayOfMonth A date within that month (1-based).
|
413
|
+
* @param dayOfWeek The day of the week on which this rule occurs.
|
414
|
+
* @param time The time of that day (number of millis after midnight)
|
415
|
+
* when DST takes effect in local wall time, which is
|
416
|
+
* standard time in this case.
|
417
|
+
* @param mode whether the time is local wall time, local standard time,
|
418
|
+
* or UTC time. Default is local wall time.
|
419
|
+
* @param after If true, this rule selects the first dayOfWeek on
|
420
|
+
* or after dayOfMonth. If false, this rule selects
|
421
|
+
* the last dayOfWeek on or before dayOfMonth.
|
422
|
+
* @param status An UErrorCode
|
423
|
+
* @stable ICU 2.0
|
424
|
+
*/
|
425
|
+
void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
|
426
|
+
int32_t time, TimeMode mode, UBool after, UErrorCode& status);
|
427
|
+
|
428
|
+
/**
|
429
|
+
* Sets the daylight savings ending rule. For example, if Daylight
|
430
|
+
* Savings Time ends at the last (-1) Sunday in October, at 2 AM in standard time.
|
431
|
+
* Therefore, you can set the end rule by calling:
|
432
|
+
* <pre>
|
433
|
+
* setEndRule(UCAL_OCTOBER, -1, UCAL_SUNDAY, 2*60*60*1000);
|
434
|
+
* </pre>
|
435
|
+
* Various other types of rules can be specified by manipulating the dayOfWeek
|
436
|
+
* and dayOfWeekInMonth parameters. For complete details, see the documentation
|
437
|
+
* for setStartRule().
|
438
|
+
*
|
439
|
+
* @param month the daylight savings ending month. Month is 0-based.
|
440
|
+
* eg, 0 for January.
|
441
|
+
* @param dayOfWeekInMonth the daylight savings ending
|
442
|
+
* day-of-week-in-month. See setStartRule() for a complete explanation.
|
443
|
+
* @param dayOfWeek the daylight savings ending day-of-week. See setStartRule()
|
444
|
+
* for a complete explanation.
|
445
|
+
* @param time the daylight savings ending time. Please see the member
|
446
|
+
* description for an example.
|
447
|
+
* @param status An UErrorCode
|
448
|
+
* @stable ICU 2.0
|
449
|
+
*/
|
450
|
+
void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
|
451
|
+
int32_t time, UErrorCode& status);
|
452
|
+
|
453
|
+
/**
|
454
|
+
* Sets the daylight savings ending rule. For example, if Daylight
|
455
|
+
* Savings Time ends at the last (-1) Sunday in October, at 2 AM in standard time.
|
456
|
+
* Therefore, you can set the end rule by calling:
|
457
|
+
* <pre>
|
458
|
+
* setEndRule(UCAL_OCTOBER, -1, UCAL_SUNDAY, 2*60*60*1000);
|
459
|
+
* </pre>
|
460
|
+
* Various other types of rules can be specified by manipulating the dayOfWeek
|
461
|
+
* and dayOfWeekInMonth parameters. For complete details, see the documentation
|
462
|
+
* for setStartRule().
|
463
|
+
*
|
464
|
+
* @param month the daylight savings ending month. Month is 0-based.
|
465
|
+
* eg, 0 for January.
|
466
|
+
* @param dayOfWeekInMonth the daylight savings ending
|
467
|
+
* day-of-week-in-month. See setStartRule() for a complete explanation.
|
468
|
+
* @param dayOfWeek the daylight savings ending day-of-week. See setStartRule()
|
469
|
+
* for a complete explanation.
|
470
|
+
* @param time the daylight savings ending time. Please see the member
|
471
|
+
* description for an example.
|
472
|
+
* @param mode whether the time is local wall time, local standard time,
|
473
|
+
* or UTC time. Default is local wall time.
|
474
|
+
* @param status An UErrorCode
|
475
|
+
* @stable ICU 2.0
|
476
|
+
*/
|
477
|
+
void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
|
478
|
+
int32_t time, TimeMode mode, UErrorCode& status);
|
479
|
+
|
480
|
+
/**
|
481
|
+
* Sets the DST end rule to a fixed date within a month.
|
482
|
+
*
|
483
|
+
* @param month The month in which this rule occurs (0-based).
|
484
|
+
* @param dayOfMonth The date in that month (1-based).
|
485
|
+
* @param time The time of that day (number of millis after midnight)
|
486
|
+
* when DST ends in local wall time, which is daylight
|
487
|
+
* time in this case.
|
488
|
+
* @param status An UErrorCode
|
489
|
+
* @stable ICU 2.0
|
490
|
+
*/
|
491
|
+
void setEndRule(int32_t month, int32_t dayOfMonth, int32_t time, UErrorCode& status);
|
492
|
+
|
493
|
+
/**
|
494
|
+
* Sets the DST end rule to a fixed date within a month.
|
495
|
+
*
|
496
|
+
* @param month The month in which this rule occurs (0-based).
|
497
|
+
* @param dayOfMonth The date in that month (1-based).
|
498
|
+
* @param time The time of that day (number of millis after midnight)
|
499
|
+
* when DST ends in local wall time, which is daylight
|
500
|
+
* time in this case.
|
501
|
+
* @param mode whether the time is local wall time, local standard time,
|
502
|
+
* or UTC time. Default is local wall time.
|
503
|
+
* @param status An UErrorCode
|
504
|
+
* @stable ICU 2.0
|
505
|
+
*/
|
506
|
+
void setEndRule(int32_t month, int32_t dayOfMonth, int32_t time,
|
507
|
+
TimeMode mode, UErrorCode& status);
|
508
|
+
|
509
|
+
/**
|
510
|
+
* Sets the DST end rule to a weekday before or after a give date within
|
511
|
+
* a month, e.g., the first Monday on or after the 8th.
|
512
|
+
*
|
513
|
+
* @param month The month in which this rule occurs (0-based).
|
514
|
+
* @param dayOfMonth A date within that month (1-based).
|
515
|
+
* @param dayOfWeek The day of the week on which this rule occurs.
|
516
|
+
* @param time The time of that day (number of millis after midnight)
|
517
|
+
* when DST ends in local wall time, which is daylight
|
518
|
+
* time in this case.
|
519
|
+
* @param after If true, this rule selects the first dayOfWeek on
|
520
|
+
* or after dayOfMonth. If false, this rule selects
|
521
|
+
* the last dayOfWeek on or before dayOfMonth.
|
522
|
+
* @param status An UErrorCode
|
523
|
+
* @stable ICU 2.0
|
524
|
+
*/
|
525
|
+
void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
|
526
|
+
int32_t time, UBool after, UErrorCode& status);
|
527
|
+
|
528
|
+
/**
|
529
|
+
* Sets the DST end rule to a weekday before or after a give date within
|
530
|
+
* a month, e.g., the first Monday on or after the 8th.
|
531
|
+
*
|
532
|
+
* @param month The month in which this rule occurs (0-based).
|
533
|
+
* @param dayOfMonth A date within that month (1-based).
|
534
|
+
* @param dayOfWeek The day of the week on which this rule occurs.
|
535
|
+
* @param time The time of that day (number of millis after midnight)
|
536
|
+
* when DST ends in local wall time, which is daylight
|
537
|
+
* time in this case.
|
538
|
+
* @param mode whether the time is local wall time, local standard time,
|
539
|
+
* or UTC time. Default is local wall time.
|
540
|
+
* @param after If true, this rule selects the first dayOfWeek on
|
541
|
+
* or after dayOfMonth. If false, this rule selects
|
542
|
+
* the last dayOfWeek on or before dayOfMonth.
|
543
|
+
* @param status An UErrorCode
|
544
|
+
* @stable ICU 2.0
|
545
|
+
*/
|
546
|
+
void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
|
547
|
+
int32_t time, TimeMode mode, UBool after, UErrorCode& status);
|
548
|
+
|
549
|
+
/**
|
550
|
+
* Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add
|
551
|
+
* to GMT to get local time in this time zone, taking daylight savings time into
|
552
|
+
* account) as of a particular reference date. The reference date is used to determine
|
553
|
+
* whether daylight savings time is in effect and needs to be figured into the offset
|
554
|
+
* that is returned (in other words, what is the adjusted GMT offset in this time zone
|
555
|
+
* at this particular date and time?). For the time zones produced by createTimeZone(),
|
556
|
+
* the reference data is specified according to the Gregorian calendar, and the date
|
557
|
+
* and time fields are in GMT, NOT local time.
|
558
|
+
*
|
559
|
+
* @param era The reference date's era
|
560
|
+
* @param year The reference date's year
|
561
|
+
* @param month The reference date's month (0-based; 0 is January)
|
562
|
+
* @param day The reference date's day-in-month (1-based)
|
563
|
+
* @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday)
|
564
|
+
* @param millis The reference date's milliseconds in day, UTT (NOT local time).
|
565
|
+
* @param status An UErrorCode to receive the status.
|
566
|
+
* @return The offset in milliseconds to add to GMT to get local time.
|
567
|
+
* @stable ICU 2.0
|
568
|
+
*/
|
569
|
+
virtual int32_t getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
|
570
|
+
uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const;
|
571
|
+
|
572
|
+
/**
|
573
|
+
* Gets the time zone offset, for current date, modified in case of
|
574
|
+
* daylight savings. This is the offset to add *to* UTC to get local time.
|
575
|
+
* @param era the era of the given date.
|
576
|
+
* @param year the year in the given date.
|
577
|
+
* @param month the month in the given date.
|
578
|
+
* Month is 0-based. e.g., 0 for January.
|
579
|
+
* @param day the day-in-month of the given date.
|
580
|
+
* @param dayOfWeek the day-of-week of the given date.
|
581
|
+
* @param milliseconds the millis in day in <em>standard</em> local time.
|
582
|
+
* @param monthLength the length of the given month in days.
|
583
|
+
* @param status An UErrorCode to receive the status.
|
584
|
+
* @return the offset to add *to* GMT to get local time.
|
585
|
+
* @stable ICU 2.0
|
586
|
+
*/
|
587
|
+
virtual int32_t getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
|
588
|
+
uint8_t dayOfWeek, int32_t milliseconds,
|
589
|
+
int32_t monthLength, UErrorCode& status) const;
|
590
|
+
/**
|
591
|
+
* Gets the time zone offset, for current date, modified in case of
|
592
|
+
* daylight savings. This is the offset to add *to* UTC to get local time.
|
593
|
+
* @param era the era of the given date.
|
594
|
+
* @param year the year in the given date.
|
595
|
+
* @param month the month in the given date.
|
596
|
+
* Month is 0-based. e.g., 0 for January.
|
597
|
+
* @param day the day-in-month of the given date.
|
598
|
+
* @param dayOfWeek the day-of-week of the given date.
|
599
|
+
* @param milliseconds the millis in day in <em>standard</em> local time.
|
600
|
+
* @param monthLength the length of the given month in days.
|
601
|
+
* @param prevMonthLength length of the previous month in days.
|
602
|
+
* @param status An UErrorCode to receive the status.
|
603
|
+
* @return the offset to add *to* GMT to get local time.
|
604
|
+
* @stable ICU 2.0
|
605
|
+
*/
|
606
|
+
virtual int32_t getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
|
607
|
+
uint8_t dayOfWeek, int32_t milliseconds,
|
608
|
+
int32_t monthLength, int32_t prevMonthLength,
|
609
|
+
UErrorCode& status) const;
|
610
|
+
|
611
|
+
/**
|
612
|
+
* Redeclared TimeZone method. This implementation simply calls
|
613
|
+
* the base class method, which otherwise would be hidden.
|
614
|
+
* @stable ICU 2.8
|
615
|
+
*/
|
616
|
+
virtual void getOffset(UDate date, UBool local, int32_t& rawOffset,
|
617
|
+
int32_t& dstOffset, UErrorCode& ec) const;
|
618
|
+
|
619
|
+
/**
|
620
|
+
* Get time zone offsets from local wall time.
|
621
|
+
* @internal
|
622
|
+
*/
|
623
|
+
virtual void getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt,
|
624
|
+
int32_t& rawOffset, int32_t& dstOffset, UErrorCode& status) const;
|
625
|
+
|
626
|
+
/**
|
627
|
+
* Returns the TimeZone's raw GMT offset (i.e., the number of milliseconds to add
|
628
|
+
* to GMT to get local time, before taking daylight savings time into account).
|
629
|
+
*
|
630
|
+
* @return The TimeZone's raw GMT offset.
|
631
|
+
* @stable ICU 2.0
|
632
|
+
*/
|
633
|
+
virtual int32_t getRawOffset(void) const;
|
634
|
+
|
635
|
+
/**
|
636
|
+
* Sets the TimeZone's raw GMT offset (i.e., the number of milliseconds to add
|
637
|
+
* to GMT to get local time, before taking daylight savings time into account).
|
638
|
+
*
|
639
|
+
* @param offsetMillis The new raw GMT offset for this time zone.
|
640
|
+
* @stable ICU 2.0
|
641
|
+
*/
|
642
|
+
virtual void setRawOffset(int32_t offsetMillis);
|
643
|
+
|
644
|
+
/**
|
645
|
+
* Sets the amount of time in ms that the clock is advanced during DST.
|
646
|
+
* @param millisSavedDuringDST the number of milliseconds the time is
|
647
|
+
* advanced with respect to standard time when the daylight savings rules
|
648
|
+
* are in effect. A positive number, typically one hour (3600000).
|
649
|
+
* @param status An UErrorCode to receive the status.
|
650
|
+
* @stable ICU 2.0
|
651
|
+
*/
|
652
|
+
void setDSTSavings(int32_t millisSavedDuringDST, UErrorCode& status);
|
653
|
+
|
654
|
+
/**
|
655
|
+
* Returns the amount of time in ms that the clock is advanced during DST.
|
656
|
+
* @return the number of milliseconds the time is
|
657
|
+
* advanced with respect to standard time when the daylight savings rules
|
658
|
+
* are in effect. A positive number, typically one hour (3600000).
|
659
|
+
* @stable ICU 2.0
|
660
|
+
*/
|
661
|
+
virtual int32_t getDSTSavings(void) const;
|
662
|
+
|
663
|
+
/**
|
664
|
+
* Queries if this TimeZone uses Daylight Savings Time.
|
665
|
+
*
|
666
|
+
* @return True if this TimeZone uses Daylight Savings Time; false otherwise.
|
667
|
+
* @stable ICU 2.0
|
668
|
+
*/
|
669
|
+
virtual UBool useDaylightTime(void) const;
|
670
|
+
|
671
|
+
/**
|
672
|
+
* Returns true if the given date is within the period when daylight savings time
|
673
|
+
* is in effect; false otherwise. If the TimeZone doesn't observe daylight savings
|
674
|
+
* time, this functions always returns false.
|
675
|
+
* This method is wasteful since it creates a new GregorianCalendar and
|
676
|
+
* deletes it each time it is called. This is a deprecated method
|
677
|
+
* and provided only for Java compatibility.
|
678
|
+
*
|
679
|
+
* @param date The date to test.
|
680
|
+
* @param status An UErrorCode to receive the status.
|
681
|
+
* @return true if the given date is in Daylight Savings Time;
|
682
|
+
* false otherwise.
|
683
|
+
* @deprecated ICU 2.4. Use Calendar::inDaylightTime() instead.
|
684
|
+
*/
|
685
|
+
virtual UBool inDaylightTime(UDate date, UErrorCode& status) const;
|
686
|
+
|
687
|
+
/**
|
688
|
+
* Return true if this zone has the same rules and offset as another zone.
|
689
|
+
* @param other the TimeZone object to be compared with
|
690
|
+
* @return true if the given zone has the same rules and offset as this one
|
691
|
+
* @stable ICU 2.0
|
692
|
+
*/
|
693
|
+
UBool hasSameRules(const TimeZone& other) const;
|
694
|
+
|
695
|
+
/**
|
696
|
+
* Clones TimeZone objects polymorphically. Clients are responsible for deleting
|
697
|
+
* the TimeZone object cloned.
|
698
|
+
*
|
699
|
+
* @return A new copy of this TimeZone object.
|
700
|
+
* @stable ICU 2.0
|
701
|
+
*/
|
702
|
+
virtual TimeZone* clone(void) const;
|
703
|
+
|
704
|
+
/**
|
705
|
+
* Gets the first time zone transition after the base time.
|
706
|
+
* @param base The base time.
|
707
|
+
* @param inclusive Whether the base time is inclusive or not.
|
708
|
+
* @param result Receives the first transition after the base time.
|
709
|
+
* @return TRUE if the transition is found.
|
710
|
+
* @stable ICU 3.8
|
711
|
+
*/
|
712
|
+
virtual UBool getNextTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const;
|
713
|
+
|
714
|
+
/**
|
715
|
+
* Gets the most recent time zone transition before the base time.
|
716
|
+
* @param base The base time.
|
717
|
+
* @param inclusive Whether the base time is inclusive or not.
|
718
|
+
* @param result Receives the most recent transition before the base time.
|
719
|
+
* @return TRUE if the transition is found.
|
720
|
+
* @stable ICU 3.8
|
721
|
+
*/
|
722
|
+
virtual UBool getPreviousTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const;
|
723
|
+
|
724
|
+
/**
|
725
|
+
* Returns the number of <code>TimeZoneRule</code>s which represents time transitions,
|
726
|
+
* for this time zone, that is, all <code>TimeZoneRule</code>s for this time zone except
|
727
|
+
* <code>InitialTimeZoneRule</code>. The return value range is 0 or any positive value.
|
728
|
+
* @param status Receives error status code.
|
729
|
+
* @return The number of <code>TimeZoneRule</code>s representing time transitions.
|
730
|
+
* @stable ICU 3.8
|
731
|
+
*/
|
732
|
+
virtual int32_t countTransitionRules(UErrorCode& status) const;
|
733
|
+
|
734
|
+
/**
|
735
|
+
* Gets the <code>InitialTimeZoneRule</code> and the set of <code>TimeZoneRule</code>
|
736
|
+
* which represent time transitions for this time zone. On successful return,
|
737
|
+
* the argument initial points to non-NULL <code>InitialTimeZoneRule</code> and
|
738
|
+
* the array trsrules is filled with 0 or multiple <code>TimeZoneRule</code>
|
739
|
+
* instances up to the size specified by trscount. The results are referencing the
|
740
|
+
* rule instance held by this time zone instance. Therefore, after this time zone
|
741
|
+
* is destructed, they are no longer available.
|
742
|
+
* @param initial Receives the initial timezone rule
|
743
|
+
* @param trsrules Receives the timezone transition rules
|
744
|
+
* @param trscount On input, specify the size of the array 'transitions' receiving
|
745
|
+
* the timezone transition rules. On output, actual number of
|
746
|
+
* rules filled in the array will be set.
|
747
|
+
* @param status Receives error status code.
|
748
|
+
* @stable ICU 3.8
|
749
|
+
*/
|
750
|
+
virtual void getTimeZoneRules(const InitialTimeZoneRule*& initial,
|
751
|
+
const TimeZoneRule* trsrules[], int32_t& trscount, UErrorCode& status) const;
|
752
|
+
|
753
|
+
|
754
|
+
public:
|
755
|
+
|
756
|
+
/**
|
757
|
+
* Override TimeZone Returns a unique class ID POLYMORPHICALLY. Pure virtual
|
758
|
+
* override. This method is to implement a simple version of RTTI, since not all C++
|
759
|
+
* compilers support genuine RTTI. Polymorphic operator==() and clone() methods call
|
760
|
+
* this method.
|
761
|
+
*
|
762
|
+
* @return The class ID for this object. All objects of a given class have the
|
763
|
+
* same class ID. Objects of other classes have different class IDs.
|
764
|
+
* @stable ICU 2.0
|
765
|
+
*/
|
766
|
+
virtual UClassID getDynamicClassID(void) const;
|
767
|
+
|
768
|
+
/**
|
769
|
+
* Return the class ID for this class. This is useful only for comparing to a return
|
770
|
+
* value from getDynamicClassID(). For example:
|
771
|
+
* <pre>
|
772
|
+
* . Base* polymorphic_pointer = createPolymorphicObject();
|
773
|
+
* . if (polymorphic_pointer->getDynamicClassID() ==
|
774
|
+
* . Derived::getStaticClassID()) ...
|
775
|
+
* </pre>
|
776
|
+
* @return The class ID for all objects of this class.
|
777
|
+
* @stable ICU 2.0
|
778
|
+
*/
|
779
|
+
static UClassID U_EXPORT2 getStaticClassID(void);
|
780
|
+
|
781
|
+
private:
|
782
|
+
/**
|
783
|
+
* Constants specifying values of startMode and endMode.
|
784
|
+
*/
|
785
|
+
enum EMode
|
786
|
+
{
|
787
|
+
DOM_MODE = 1,
|
788
|
+
DOW_IN_MONTH_MODE,
|
789
|
+
DOW_GE_DOM_MODE,
|
790
|
+
DOW_LE_DOM_MODE
|
791
|
+
};
|
792
|
+
|
793
|
+
SimpleTimeZone(); // default constructor not implemented
|
794
|
+
|
795
|
+
/**
|
796
|
+
* Internal construction method.
|
797
|
+
* @param rawOffsetGMT The new SimpleTimeZone's raw GMT offset
|
798
|
+
* @param startMonth the month DST starts
|
799
|
+
* @param startDay the day DST starts
|
800
|
+
* @param startDayOfWeek the DOW DST starts
|
801
|
+
* @param startTime the time DST starts
|
802
|
+
* @param startTimeMode Whether the start time is local wall time, local
|
803
|
+
* standard time, or UTC time. Default is local wall time.
|
804
|
+
* @param endMonth the month DST ends
|
805
|
+
* @param endDay the day DST ends
|
806
|
+
* @param endDayOfWeek the DOW DST ends
|
807
|
+
* @param endTime the time DST ends
|
808
|
+
* @param endTimeMode Whether the end time is local wall time, local
|
809
|
+
* standard time, or UTC time. Default is local wall time.
|
810
|
+
* @param dstSavings The number of milliseconds added to standard time
|
811
|
+
* to get DST time. Default is one hour.
|
812
|
+
* @param status An UErrorCode to receive the status.
|
813
|
+
*/
|
814
|
+
void construct(int32_t rawOffsetGMT,
|
815
|
+
int8_t startMonth, int8_t startDay, int8_t startDayOfWeek,
|
816
|
+
int32_t startTime, TimeMode startTimeMode,
|
817
|
+
int8_t endMonth, int8_t endDay, int8_t endDayOfWeek,
|
818
|
+
int32_t endTime, TimeMode endTimeMode,
|
819
|
+
int32_t dstSavings, UErrorCode& status);
|
820
|
+
|
821
|
+
/**
|
822
|
+
* Compare a given date in the year to a rule. Return 1, 0, or -1, depending
|
823
|
+
* on whether the date is after, equal to, or before the rule date. The
|
824
|
+
* millis are compared directly against the ruleMillis, so any
|
825
|
+
* standard-daylight adjustments must be handled by the caller.
|
826
|
+
*
|
827
|
+
* @return 1 if the date is after the rule date, -1 if the date is before
|
828
|
+
* the rule date, or 0 if the date is equal to the rule date.
|
829
|
+
*/
|
830
|
+
static int32_t compareToRule(int8_t month, int8_t monthLen, int8_t prevMonthLen,
|
831
|
+
int8_t dayOfMonth,
|
832
|
+
int8_t dayOfWeek, int32_t millis, int32_t millisDelta,
|
833
|
+
EMode ruleMode, int8_t ruleMonth, int8_t ruleDayOfWeek,
|
834
|
+
int8_t ruleDay, int32_t ruleMillis);
|
835
|
+
|
836
|
+
/**
|
837
|
+
* Given a set of encoded rules in startDay and startDayOfMonth, decode
|
838
|
+
* them and set the startMode appropriately. Do the same for endDay and
|
839
|
+
* endDayOfMonth.
|
840
|
+
* <P>
|
841
|
+
* Upon entry, the day of week variables may be zero or
|
842
|
+
* negative, in order to indicate special modes. The day of month
|
843
|
+
* variables may also be negative.
|
844
|
+
* <P>
|
845
|
+
* Upon exit, the mode variables will be
|
846
|
+
* set, and the day of week and day of month variables will be positive.
|
847
|
+
* <P>
|
848
|
+
* This method also recognizes a startDay or endDay of zero as indicating
|
849
|
+
* no DST.
|
850
|
+
*/
|
851
|
+
void decodeRules(UErrorCode& status);
|
852
|
+
void decodeStartRule(UErrorCode& status);
|
853
|
+
void decodeEndRule(UErrorCode& status);
|
854
|
+
|
855
|
+
int8_t startMonth, startDay, startDayOfWeek; // the month, day, DOW, and time DST starts
|
856
|
+
int32_t startTime;
|
857
|
+
TimeMode startTimeMode, endTimeMode; // Mode for startTime, endTime; see TimeMode
|
858
|
+
int8_t endMonth, endDay, endDayOfWeek; // the month, day, DOW, and time DST ends
|
859
|
+
int32_t endTime;
|
860
|
+
int32_t startYear; // the year these DST rules took effect
|
861
|
+
int32_t rawOffset; // the TimeZone's raw GMT offset
|
862
|
+
UBool useDaylight; // flag indicating whether this TimeZone uses DST
|
863
|
+
static const int8_t STATICMONTHLENGTH[12]; // lengths of the months
|
864
|
+
EMode startMode, endMode; // flags indicating what kind of rules the DST rules are
|
865
|
+
|
866
|
+
/**
|
867
|
+
* A positive value indicating the amount of time saved during DST in ms.
|
868
|
+
* Typically one hour; sometimes 30 minutes.
|
869
|
+
*/
|
870
|
+
int32_t dstSavings;
|
871
|
+
|
872
|
+
/* Private for BasicTimeZone implementation */
|
873
|
+
void checkTransitionRules(UErrorCode& status) const;
|
874
|
+
void initTransitionRules(UErrorCode& status);
|
875
|
+
void clearTransitionRules(void);
|
876
|
+
void deleteTransitionRules(void);
|
877
|
+
UBool transitionRulesInitialized;
|
878
|
+
InitialTimeZoneRule* initialRule;
|
879
|
+
TimeZoneTransition* firstTransition;
|
880
|
+
AnnualTimeZoneRule* stdRule;
|
881
|
+
AnnualTimeZoneRule* dstRule;
|
882
|
+
};
|
883
|
+
|
884
|
+
inline void SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth,
|
885
|
+
int32_t dayOfWeek,
|
886
|
+
int32_t time, UErrorCode& status) {
|
887
|
+
setStartRule(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME, status);
|
888
|
+
}
|
889
|
+
|
890
|
+
inline void SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth,
|
891
|
+
int32_t time,
|
892
|
+
UErrorCode& status) {
|
893
|
+
setStartRule(month, dayOfMonth, time, WALL_TIME, status);
|
894
|
+
}
|
895
|
+
|
896
|
+
inline void SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth,
|
897
|
+
int32_t dayOfWeek,
|
898
|
+
int32_t time, UBool after, UErrorCode& status) {
|
899
|
+
setStartRule(month, dayOfMonth, dayOfWeek, time, WALL_TIME, after, status);
|
900
|
+
}
|
901
|
+
|
902
|
+
inline void SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth,
|
903
|
+
int32_t dayOfWeek,
|
904
|
+
int32_t time, UErrorCode& status) {
|
905
|
+
setEndRule(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME, status);
|
906
|
+
}
|
907
|
+
|
908
|
+
inline void SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth,
|
909
|
+
int32_t time, UErrorCode& status) {
|
910
|
+
setEndRule(month, dayOfMonth, time, WALL_TIME, status);
|
911
|
+
}
|
912
|
+
|
913
|
+
inline void SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
|
914
|
+
int32_t time, UBool after, UErrorCode& status) {
|
915
|
+
setEndRule(month, dayOfMonth, dayOfWeek, time, WALL_TIME, after, status);
|
916
|
+
}
|
917
|
+
|
918
|
+
inline void
|
919
|
+
SimpleTimeZone::getOffset(UDate date, UBool local, int32_t& rawOffsetRef,
|
920
|
+
int32_t& dstOffsetRef, UErrorCode& ec) const {
|
921
|
+
TimeZone::getOffset(date, local, rawOffsetRef, dstOffsetRef, ec);
|
922
|
+
}
|
923
|
+
|
924
|
+
U_NAMESPACE_END
|
925
|
+
|
926
|
+
#endif /* #if !UCONFIG_NO_FORMATTING */
|
927
|
+
|
928
|
+
#endif // _SIMPLETZ
|