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,232 @@
|
|
1
|
+
/*
|
2
|
+
*******************************************************************************
|
3
|
+
* Copyright (C) 2011-2012, International Business Machines
|
4
|
+
* Corporation and others. All Rights Reserved.
|
5
|
+
*******************************************************************************
|
6
|
+
* file name: appendable.h
|
7
|
+
* encoding: US-ASCII
|
8
|
+
* tab size: 8 (not used)
|
9
|
+
* indentation:4
|
10
|
+
*
|
11
|
+
* created on: 2010dec07
|
12
|
+
* created by: Markus W. Scherer
|
13
|
+
*/
|
14
|
+
|
15
|
+
#ifndef __APPENDABLE_H__
|
16
|
+
#define __APPENDABLE_H__
|
17
|
+
|
18
|
+
/**
|
19
|
+
* \file
|
20
|
+
* \brief C++ API: Appendable class: Sink for Unicode code points and 16-bit code units (UChars).
|
21
|
+
*/
|
22
|
+
|
23
|
+
#include "unicode/utypes.h"
|
24
|
+
#include "unicode/uobject.h"
|
25
|
+
|
26
|
+
U_NAMESPACE_BEGIN
|
27
|
+
|
28
|
+
class UnicodeString;
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Base class for objects to which Unicode characters and strings can be appended.
|
32
|
+
* Combines elements of Java Appendable and ICU4C ByteSink.
|
33
|
+
*
|
34
|
+
* This class can be used in APIs where it does not matter whether the actual destination is
|
35
|
+
* a UnicodeString, a UChar[] array, a UnicodeSet, or any other object
|
36
|
+
* that receives and processes characters and/or strings.
|
37
|
+
*
|
38
|
+
* Implementation classes must implement at least appendCodeUnit(UChar).
|
39
|
+
* The base class provides default implementations for the other methods.
|
40
|
+
*
|
41
|
+
* The methods do not take UErrorCode parameters.
|
42
|
+
* If an error occurs (e.g., out-of-memory),
|
43
|
+
* in addition to returning FALSE from failing operations,
|
44
|
+
* the implementation must prevent unexpected behavior (e.g., crashes)
|
45
|
+
* from further calls and should make the error condition available separately
|
46
|
+
* (e.g., store a UErrorCode, make/keep a UnicodeString bogus).
|
47
|
+
* @stable ICU 4.8
|
48
|
+
*/
|
49
|
+
class U_COMMON_API Appendable : public UObject {
|
50
|
+
public:
|
51
|
+
/**
|
52
|
+
* Destructor.
|
53
|
+
* @stable ICU 4.8
|
54
|
+
*/
|
55
|
+
~Appendable();
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Appends a 16-bit code unit.
|
59
|
+
* @param c code unit
|
60
|
+
* @return TRUE if the operation succeeded
|
61
|
+
* @stable ICU 4.8
|
62
|
+
*/
|
63
|
+
virtual UBool appendCodeUnit(UChar c) = 0;
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Appends a code point.
|
67
|
+
* The default implementation calls appendCodeUnit(UChar) once or twice.
|
68
|
+
* @param c code point 0..0x10ffff
|
69
|
+
* @return TRUE if the operation succeeded
|
70
|
+
* @stable ICU 4.8
|
71
|
+
*/
|
72
|
+
virtual UBool appendCodePoint(UChar32 c);
|
73
|
+
|
74
|
+
/**
|
75
|
+
* Appends a string.
|
76
|
+
* The default implementation calls appendCodeUnit(UChar) for each code unit.
|
77
|
+
* @param s string, must not be NULL if length!=0
|
78
|
+
* @param length string length, or -1 if NUL-terminated
|
79
|
+
* @return TRUE if the operation succeeded
|
80
|
+
* @stable ICU 4.8
|
81
|
+
*/
|
82
|
+
virtual UBool appendString(const UChar *s, int32_t length);
|
83
|
+
|
84
|
+
/**
|
85
|
+
* Tells the object that the caller is going to append roughly
|
86
|
+
* appendCapacity UChars. A subclass might use this to pre-allocate
|
87
|
+
* a larger buffer if necessary.
|
88
|
+
* The default implementation does nothing. (It always returns TRUE.)
|
89
|
+
* @param appendCapacity estimated number of UChars that will be appended
|
90
|
+
* @return TRUE if the operation succeeded
|
91
|
+
* @stable ICU 4.8
|
92
|
+
*/
|
93
|
+
virtual UBool reserveAppendCapacity(int32_t appendCapacity);
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Returns a writable buffer for appending and writes the buffer's capacity to
|
97
|
+
* *resultCapacity. Guarantees *resultCapacity>=minCapacity.
|
98
|
+
* May return a pointer to the caller-owned scratch buffer which must have
|
99
|
+
* scratchCapacity>=minCapacity.
|
100
|
+
* The returned buffer is only valid until the next operation
|
101
|
+
* on this Appendable.
|
102
|
+
*
|
103
|
+
* After writing at most *resultCapacity UChars, call appendString() with the
|
104
|
+
* pointer returned from this function and the number of UChars written.
|
105
|
+
* Many appendString() implementations will avoid copying UChars if this function
|
106
|
+
* returned an internal buffer.
|
107
|
+
*
|
108
|
+
* Partial usage example:
|
109
|
+
* \code
|
110
|
+
* int32_t capacity;
|
111
|
+
* UChar* buffer = app.getAppendBuffer(..., &capacity);
|
112
|
+
* ... Write n UChars into buffer, with n <= capacity.
|
113
|
+
* app.appendString(buffer, n);
|
114
|
+
* \endcode
|
115
|
+
* In many implementations, that call to append will avoid copying UChars.
|
116
|
+
*
|
117
|
+
* If the Appendable allocates or reallocates an internal buffer, it should use
|
118
|
+
* the desiredCapacityHint if appropriate.
|
119
|
+
* If a caller cannot provide a reasonable guess at the desired capacity,
|
120
|
+
* it should pass desiredCapacityHint=0.
|
121
|
+
*
|
122
|
+
* If a non-scratch buffer is returned, the caller may only pass
|
123
|
+
* a prefix to it to appendString().
|
124
|
+
* That is, it is not correct to pass an interior pointer to appendString().
|
125
|
+
*
|
126
|
+
* The default implementation always returns the scratch buffer.
|
127
|
+
*
|
128
|
+
* @param minCapacity required minimum capacity of the returned buffer;
|
129
|
+
* must be non-negative
|
130
|
+
* @param desiredCapacityHint desired capacity of the returned buffer;
|
131
|
+
* must be non-negative
|
132
|
+
* @param scratch default caller-owned buffer
|
133
|
+
* @param scratchCapacity capacity of the scratch buffer
|
134
|
+
* @param resultCapacity pointer to an integer which will be set to the
|
135
|
+
* capacity of the returned buffer
|
136
|
+
* @return a buffer with *resultCapacity>=minCapacity
|
137
|
+
* @stable ICU 4.8
|
138
|
+
*/
|
139
|
+
virtual UChar *getAppendBuffer(int32_t minCapacity,
|
140
|
+
int32_t desiredCapacityHint,
|
141
|
+
UChar *scratch, int32_t scratchCapacity,
|
142
|
+
int32_t *resultCapacity);
|
143
|
+
};
|
144
|
+
|
145
|
+
/**
|
146
|
+
* An Appendable implementation which writes to a UnicodeString.
|
147
|
+
*
|
148
|
+
* This class is not intended for public subclassing.
|
149
|
+
* @stable ICU 4.8
|
150
|
+
*/
|
151
|
+
class U_COMMON_API UnicodeStringAppendable : public Appendable {
|
152
|
+
public:
|
153
|
+
/**
|
154
|
+
* Aliases the UnicodeString (keeps its reference) for writing.
|
155
|
+
* @param s The UnicodeString to which this Appendable will write.
|
156
|
+
* @stable ICU 4.8
|
157
|
+
*/
|
158
|
+
explicit UnicodeStringAppendable(UnicodeString &s) : str(s) {}
|
159
|
+
|
160
|
+
/**
|
161
|
+
* Destructor.
|
162
|
+
* @stable ICU 4.8
|
163
|
+
*/
|
164
|
+
~UnicodeStringAppendable();
|
165
|
+
|
166
|
+
/**
|
167
|
+
* Appends a 16-bit code unit to the string.
|
168
|
+
* @param c code unit
|
169
|
+
* @return TRUE if the operation succeeded
|
170
|
+
* @stable ICU 4.8
|
171
|
+
*/
|
172
|
+
virtual UBool appendCodeUnit(UChar c);
|
173
|
+
|
174
|
+
/**
|
175
|
+
* Appends a code point to the string.
|
176
|
+
* @param c code point 0..0x10ffff
|
177
|
+
* @return TRUE if the operation succeeded
|
178
|
+
* @stable ICU 4.8
|
179
|
+
*/
|
180
|
+
virtual UBool appendCodePoint(UChar32 c);
|
181
|
+
|
182
|
+
/**
|
183
|
+
* Appends a string to the UnicodeString.
|
184
|
+
* @param s string, must not be NULL if length!=0
|
185
|
+
* @param length string length, or -1 if NUL-terminated
|
186
|
+
* @return TRUE if the operation succeeded
|
187
|
+
* @stable ICU 4.8
|
188
|
+
*/
|
189
|
+
virtual UBool appendString(const UChar *s, int32_t length);
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Tells the UnicodeString that the caller is going to append roughly
|
193
|
+
* appendCapacity UChars.
|
194
|
+
* @param appendCapacity estimated number of UChars that will be appended
|
195
|
+
* @return TRUE if the operation succeeded
|
196
|
+
* @stable ICU 4.8
|
197
|
+
*/
|
198
|
+
virtual UBool reserveAppendCapacity(int32_t appendCapacity);
|
199
|
+
|
200
|
+
/**
|
201
|
+
* Returns a writable buffer for appending and writes the buffer's capacity to
|
202
|
+
* *resultCapacity. Guarantees *resultCapacity>=minCapacity.
|
203
|
+
* May return a pointer to the caller-owned scratch buffer which must have
|
204
|
+
* scratchCapacity>=minCapacity.
|
205
|
+
* The returned buffer is only valid until the next write operation
|
206
|
+
* on the UnicodeString.
|
207
|
+
*
|
208
|
+
* For details see Appendable::getAppendBuffer().
|
209
|
+
*
|
210
|
+
* @param minCapacity required minimum capacity of the returned buffer;
|
211
|
+
* must be non-negative
|
212
|
+
* @param desiredCapacityHint desired capacity of the returned buffer;
|
213
|
+
* must be non-negative
|
214
|
+
* @param scratch default caller-owned buffer
|
215
|
+
* @param scratchCapacity capacity of the scratch buffer
|
216
|
+
* @param resultCapacity pointer to an integer which will be set to the
|
217
|
+
* capacity of the returned buffer
|
218
|
+
* @return a buffer with *resultCapacity>=minCapacity
|
219
|
+
* @stable ICU 4.8
|
220
|
+
*/
|
221
|
+
virtual UChar *getAppendBuffer(int32_t minCapacity,
|
222
|
+
int32_t desiredCapacityHint,
|
223
|
+
UChar *scratch, int32_t scratchCapacity,
|
224
|
+
int32_t *resultCapacity);
|
225
|
+
|
226
|
+
private:
|
227
|
+
UnicodeString &str;
|
228
|
+
};
|
229
|
+
|
230
|
+
U_NAMESPACE_END
|
231
|
+
|
232
|
+
#endif // __APPENDABLE_H__
|
@@ -0,0 +1,214 @@
|
|
1
|
+
/*
|
2
|
+
*******************************************************************************
|
3
|
+
* Copyright (C) 2007-2013, International Business Machines Corporation and
|
4
|
+
* others. All Rights Reserved.
|
5
|
+
*******************************************************************************
|
6
|
+
*/
|
7
|
+
#ifndef BASICTZ_H
|
8
|
+
#define BASICTZ_H
|
9
|
+
|
10
|
+
/**
|
11
|
+
* \file
|
12
|
+
* \brief C++ API: ICU TimeZone base class
|
13
|
+
*/
|
14
|
+
|
15
|
+
#include "unicode/utypes.h"
|
16
|
+
|
17
|
+
#if !UCONFIG_NO_FORMATTING
|
18
|
+
|
19
|
+
#include "unicode/timezone.h"
|
20
|
+
#include "unicode/tzrule.h"
|
21
|
+
#include "unicode/tztrans.h"
|
22
|
+
|
23
|
+
U_NAMESPACE_BEGIN
|
24
|
+
|
25
|
+
// forward declarations
|
26
|
+
class UVector;
|
27
|
+
|
28
|
+
/**
|
29
|
+
* <code>BasicTimeZone</code> is an abstract class extending <code>TimeZone</code>.
|
30
|
+
* This class provides some additional methods to access time zone transitions and rules.
|
31
|
+
* All ICU <code>TimeZone</code> concrete subclasses extend this class.
|
32
|
+
* @stable ICU 3.8
|
33
|
+
*/
|
34
|
+
class U_I18N_API BasicTimeZone: public TimeZone {
|
35
|
+
public:
|
36
|
+
/**
|
37
|
+
* Destructor.
|
38
|
+
* @stable ICU 3.8
|
39
|
+
*/
|
40
|
+
virtual ~BasicTimeZone();
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Gets the first time zone transition after the base time.
|
44
|
+
* @param base The base time.
|
45
|
+
* @param inclusive Whether the base time is inclusive or not.
|
46
|
+
* @param result Receives the first transition after the base time.
|
47
|
+
* @return TRUE if the transition is found.
|
48
|
+
* @stable ICU 3.8
|
49
|
+
*/
|
50
|
+
virtual UBool getNextTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const = 0;
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Gets the most recent time zone transition before the base time.
|
54
|
+
* @param base The base time.
|
55
|
+
* @param inclusive Whether the base time is inclusive or not.
|
56
|
+
* @param result Receives the most recent transition before the base time.
|
57
|
+
* @return TRUE if the transition is found.
|
58
|
+
* @stable ICU 3.8
|
59
|
+
*/
|
60
|
+
virtual UBool getPreviousTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const = 0;
|
61
|
+
|
62
|
+
/**
|
63
|
+
* Checks if the time zone has equivalent transitions in the time range.
|
64
|
+
* This method returns true when all of transition times, from/to standard
|
65
|
+
* offsets and DST savings used by this time zone match the other in the
|
66
|
+
* time range.
|
67
|
+
* @param tz The <code>BasicTimeZone</code> object to be compared with.
|
68
|
+
* @param start The start time of the evaluated time range (inclusive)
|
69
|
+
* @param end The end time of the evaluated time range (inclusive)
|
70
|
+
* @param ignoreDstAmount
|
71
|
+
* When true, any transitions with only daylight saving amount
|
72
|
+
* changes will be ignored, except either of them is zero.
|
73
|
+
* For example, a transition from rawoffset 3:00/dstsavings 1:00
|
74
|
+
* to rawoffset 2:00/dstsavings 2:00 is excluded from the comparison,
|
75
|
+
* but a transtion from rawoffset 2:00/dstsavings 1:00 to
|
76
|
+
* rawoffset 3:00/dstsavings 0:00 is included.
|
77
|
+
* @param ec Output param to filled in with a success or an error.
|
78
|
+
* @return true if the other time zone has the equivalent transitions in the
|
79
|
+
* time range.
|
80
|
+
* @stable ICU 3.8
|
81
|
+
*/
|
82
|
+
virtual UBool hasEquivalentTransitions(const BasicTimeZone& tz, UDate start, UDate end,
|
83
|
+
UBool ignoreDstAmount, UErrorCode& ec) const;
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Returns the number of <code>TimeZoneRule</code>s which represents time transitions,
|
87
|
+
* for this time zone, that is, all <code>TimeZoneRule</code>s for this time zone except
|
88
|
+
* <code>InitialTimeZoneRule</code>. The return value range is 0 or any positive value.
|
89
|
+
* @param status Receives error status code.
|
90
|
+
* @return The number of <code>TimeZoneRule</code>s representing time transitions.
|
91
|
+
* @stable ICU 3.8
|
92
|
+
*/
|
93
|
+
virtual int32_t countTransitionRules(UErrorCode& status) const = 0;
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Gets the <code>InitialTimeZoneRule</code> and the set of <code>TimeZoneRule</code>
|
97
|
+
* which represent time transitions for this time zone. On successful return,
|
98
|
+
* the argument initial points to non-NULL <code>InitialTimeZoneRule</code> and
|
99
|
+
* the array trsrules is filled with 0 or multiple <code>TimeZoneRule</code>
|
100
|
+
* instances up to the size specified by trscount. The results are referencing the
|
101
|
+
* rule instance held by this time zone instance. Therefore, after this time zone
|
102
|
+
* is destructed, they are no longer available.
|
103
|
+
* @param initial Receives the initial timezone rule
|
104
|
+
* @param trsrules Receives the timezone transition rules
|
105
|
+
* @param trscount On input, specify the size of the array 'transitions' receiving
|
106
|
+
* the timezone transition rules. On output, actual number of
|
107
|
+
* rules filled in the array will be set.
|
108
|
+
* @param status Receives error status code.
|
109
|
+
* @stable ICU 3.8
|
110
|
+
*/
|
111
|
+
virtual void getTimeZoneRules(const InitialTimeZoneRule*& initial,
|
112
|
+
const TimeZoneRule* trsrules[], int32_t& trscount, UErrorCode& status) const = 0;
|
113
|
+
|
114
|
+
/**
|
115
|
+
* Gets the set of time zone rules valid at the specified time. Some known external time zone
|
116
|
+
* implementations are not capable to handle historic time zone rule changes. Also some
|
117
|
+
* implementations can only handle certain type of rule definitions.
|
118
|
+
* If this time zone does not use any daylight saving time within about 1 year from the specified
|
119
|
+
* time, only the <code>InitialTimeZone</code> is returned. Otherwise, the rule for standard
|
120
|
+
* time and daylight saving time transitions are returned in addition to the
|
121
|
+
* <code>InitialTimeZoneRule</code>. The standard and daylight saving time transition rules are
|
122
|
+
* represented by <code>AnnualTimeZoneRule</code> with <code>DateTimeRule::DOW</code> for its date
|
123
|
+
* rule and <code>DateTimeRule::WALL_TIME</code> for its time rule. Because daylight saving time
|
124
|
+
* rule is changing time to time in many time zones and also mapping a transition time rule to
|
125
|
+
* different type is lossy transformation, the set of rules returned by this method may be valid
|
126
|
+
* for short period of time.
|
127
|
+
* The time zone rule objects returned by this method is owned by the caller, so the caller is
|
128
|
+
* responsible for deleting them after use.
|
129
|
+
* @param date The date used for extracting time zone rules.
|
130
|
+
* @param initial Receives the <code>InitialTimeZone</code>, always not NULL.
|
131
|
+
* @param std Receives the <code>AnnualTimeZoneRule</code> for standard time transitions.
|
132
|
+
* When this time time zone does not observe daylight saving times around the
|
133
|
+
* specified date, NULL is set.
|
134
|
+
* @param dst Receives the <code>AnnualTimeZoneRule</code> for daylight saving time
|
135
|
+
* transitions. When this time zone does not observer daylight saving times
|
136
|
+
* around the specified date, NULL is set.
|
137
|
+
* @param status Receives error status code.
|
138
|
+
* @stable ICU 3.8
|
139
|
+
*/
|
140
|
+
virtual void getSimpleRulesNear(UDate date, InitialTimeZoneRule*& initial,
|
141
|
+
AnnualTimeZoneRule*& std, AnnualTimeZoneRule*& dst, UErrorCode& status) const;
|
142
|
+
|
143
|
+
|
144
|
+
#ifndef U_HIDE_INTERNAL_API
|
145
|
+
/**
|
146
|
+
* The time type option bit flags used by getOffsetFromLocal
|
147
|
+
* @internal
|
148
|
+
*/
|
149
|
+
enum {
|
150
|
+
kStandard = 0x01,
|
151
|
+
kDaylight = 0x03,
|
152
|
+
kFormer = 0x04,
|
153
|
+
kLatter = 0x0C
|
154
|
+
};
|
155
|
+
#endif /* U_HIDE_INTERNAL_API */
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Get time zone offsets from local wall time.
|
159
|
+
* @internal
|
160
|
+
*/
|
161
|
+
virtual void getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt,
|
162
|
+
int32_t& rawOffset, int32_t& dstOffset, UErrorCode& status) const;
|
163
|
+
|
164
|
+
protected:
|
165
|
+
|
166
|
+
#ifndef U_HIDE_INTERNAL_API
|
167
|
+
/**
|
168
|
+
* The time type option bit masks used by getOffsetFromLocal
|
169
|
+
* @internal
|
170
|
+
*/
|
171
|
+
enum {
|
172
|
+
kStdDstMask = kDaylight,
|
173
|
+
kFormerLatterMask = kLatter
|
174
|
+
};
|
175
|
+
#endif /* U_HIDE_INTERNAL_API */
|
176
|
+
|
177
|
+
/**
|
178
|
+
* Default constructor.
|
179
|
+
* @stable ICU 3.8
|
180
|
+
*/
|
181
|
+
BasicTimeZone();
|
182
|
+
|
183
|
+
/**
|
184
|
+
* Construct a timezone with a given ID.
|
185
|
+
* @param id a system time zone ID
|
186
|
+
* @stable ICU 3.8
|
187
|
+
*/
|
188
|
+
BasicTimeZone(const UnicodeString &id);
|
189
|
+
|
190
|
+
/**
|
191
|
+
* Copy constructor.
|
192
|
+
* @param source the object to be copied.
|
193
|
+
* @stable ICU 3.8
|
194
|
+
*/
|
195
|
+
BasicTimeZone(const BasicTimeZone& source);
|
196
|
+
|
197
|
+
/**
|
198
|
+
* Gets the set of TimeZoneRule instances applicable to the specified time and after.
|
199
|
+
* @param start The start date used for extracting time zone rules
|
200
|
+
* @param initial Receives the InitialTimeZone, always not NULL
|
201
|
+
* @param transitionRules Receives the transition rules, could be NULL
|
202
|
+
* @param status Receives error status code
|
203
|
+
*/
|
204
|
+
void getTimeZoneRulesAfter(UDate start, InitialTimeZoneRule*& initial, UVector*& transitionRules,
|
205
|
+
UErrorCode& status) const;
|
206
|
+
};
|
207
|
+
|
208
|
+
U_NAMESPACE_END
|
209
|
+
|
210
|
+
#endif /* #if !UCONFIG_NO_FORMATTING */
|
211
|
+
|
212
|
+
#endif // BASICTZ_H
|
213
|
+
|
214
|
+
//eof
|