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,170 @@
|
|
1
|
+
/*
|
2
|
+
*****************************************************************************************
|
3
|
+
* Copyright (C) 2013-2014, International Business Machines
|
4
|
+
* Corporation and others. All Rights Reserved.
|
5
|
+
*****************************************************************************************
|
6
|
+
*/
|
7
|
+
|
8
|
+
#ifndef UNUMSYS_H
|
9
|
+
#define UNUMSYS_H
|
10
|
+
|
11
|
+
#include "unicode/utypes.h"
|
12
|
+
|
13
|
+
#if !UCONFIG_NO_FORMATTING
|
14
|
+
|
15
|
+
#include "unicode/uenum.h"
|
16
|
+
#include "unicode/localpointer.h"
|
17
|
+
|
18
|
+
/**
|
19
|
+
* \file
|
20
|
+
* \brief C API: UNumberingSystem, information about numbering systems
|
21
|
+
*
|
22
|
+
* Defines numbering systems. A numbering system describes the scheme by which
|
23
|
+
* numbers are to be presented to the end user. In its simplest form, a numbering
|
24
|
+
* system describes the set of digit characters that are to be used to display
|
25
|
+
* numbers, such as Western digits, Thai digits, Arabic-Indic digits, etc., in a
|
26
|
+
* positional numbering system with a specified radix (typically 10).
|
27
|
+
* More complicated numbering systems are algorithmic in nature, and require use
|
28
|
+
* of an RBNF formatter (rule based number formatter), in order to calculate
|
29
|
+
* the characters to be displayed for a given number. Examples of algorithmic
|
30
|
+
* numbering systems include Roman numerals, Chinese numerals, and Hebrew numerals.
|
31
|
+
* Formatting rules for many commonly used numbering systems are included in
|
32
|
+
* the ICU package, based on the numbering system rules defined in CLDR.
|
33
|
+
* Alternate numbering systems can be specified to a locale by using the
|
34
|
+
* numbers locale keyword.
|
35
|
+
*/
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Opaque UNumberingSystem object for use in C programs.
|
39
|
+
* @stable ICU 52
|
40
|
+
*/
|
41
|
+
struct UNumberingSystem;
|
42
|
+
typedef struct UNumberingSystem UNumberingSystem; /**< C typedef for struct UNumberingSystem. @stable ICU 52 */
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Opens a UNumberingSystem object using the default numbering system for the specified
|
46
|
+
* locale.
|
47
|
+
* @param locale The locale for which the default numbering system should be opened.
|
48
|
+
* @param status A pointer to a UErrorCode to receive any errors. For example, this
|
49
|
+
* may be U_UNSUPPORTED_ERROR for a locale such as "en@numbers=xyz" that
|
50
|
+
* specifies a numbering system unknown to ICU.
|
51
|
+
* @return A UNumberingSystem for the specified locale, or NULL if an error
|
52
|
+
* occurred.
|
53
|
+
* @stable ICU 52
|
54
|
+
*/
|
55
|
+
U_STABLE UNumberingSystem * U_EXPORT2
|
56
|
+
unumsys_open(const char *locale, UErrorCode *status);
|
57
|
+
|
58
|
+
/**
|
59
|
+
* Opens a UNumberingSystem object using the name of one of the predefined numbering
|
60
|
+
* systems specified by CLDR and known to ICU, such as "latn", "arabext", or "hanidec";
|
61
|
+
* the full list is returned by unumsys_openAvailableNames. Note that some of the names
|
62
|
+
* listed at http://unicode.org/repos/cldr/tags/latest/common/bcp47/number.xml - e.g.
|
63
|
+
* default, native, traditional, finance - do not identify specific numbering systems,
|
64
|
+
* but rather key values that may only be used as part of a locale, which in turn
|
65
|
+
* defines how they are mapped to a specific numbering system such as "latn" or "hant".
|
66
|
+
*
|
67
|
+
* @param name The name of the numbering system for which a UNumberingSystem object
|
68
|
+
* should be opened.
|
69
|
+
* @param status A pointer to a UErrorCode to receive any errors. For example, this
|
70
|
+
* may be U_UNSUPPORTED_ERROR for a numbering system such as "xyz" that
|
71
|
+
* is unknown to ICU.
|
72
|
+
* @return A UNumberingSystem for the specified name, or NULL if an error
|
73
|
+
* occurred.
|
74
|
+
* @stable ICU 52
|
75
|
+
*/
|
76
|
+
U_STABLE UNumberingSystem * U_EXPORT2
|
77
|
+
unumsys_openByName(const char *name, UErrorCode *status);
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Close a UNumberingSystem object. Once closed it may no longer be used.
|
81
|
+
* @param unumsys The UNumberingSystem object to close.
|
82
|
+
* @stable ICU 52
|
83
|
+
*/
|
84
|
+
U_STABLE void U_EXPORT2
|
85
|
+
unumsys_close(UNumberingSystem *unumsys);
|
86
|
+
|
87
|
+
#if U_SHOW_CPLUSPLUS_API
|
88
|
+
U_NAMESPACE_BEGIN
|
89
|
+
|
90
|
+
/**
|
91
|
+
* \class LocalUNumberingSystemPointer
|
92
|
+
* "Smart pointer" class, closes a UNumberingSystem via unumsys_close().
|
93
|
+
* For most methods see the LocalPointerBase base class.
|
94
|
+
* @see LocalPointerBase
|
95
|
+
* @see LocalPointer
|
96
|
+
* @stable ICU 52
|
97
|
+
*/
|
98
|
+
U_DEFINE_LOCAL_OPEN_POINTER(LocalUNumberingSystemPointer, UNumberingSystem, unumsys_close);
|
99
|
+
|
100
|
+
U_NAMESPACE_END
|
101
|
+
#endif
|
102
|
+
|
103
|
+
/**
|
104
|
+
* Returns an enumeration over the names of all of the predefined numbering systems known
|
105
|
+
* to ICU.
|
106
|
+
* @param status A pointer to a UErrorCode to receive any errors.
|
107
|
+
* @return A pointer to a UEnumeration that must be closed with uenum_close(),
|
108
|
+
* or NULL if an error occurred.
|
109
|
+
* @stable ICU 52
|
110
|
+
*/
|
111
|
+
U_STABLE UEnumeration * U_EXPORT2
|
112
|
+
unumsys_openAvailableNames(UErrorCode *status);
|
113
|
+
|
114
|
+
/**
|
115
|
+
* Returns the name of the specified UNumberingSystem object (if it is one of the
|
116
|
+
* predefined names known to ICU).
|
117
|
+
* @param unumsys The UNumberingSystem whose name is desired.
|
118
|
+
* @return A pointer to the name of the specified UNumberingSystem object, or
|
119
|
+
* NULL if the name is not one of the ICU predefined names. The pointer
|
120
|
+
* is only valid for the lifetime of the UNumberingSystem object.
|
121
|
+
* @stable ICU 52
|
122
|
+
*/
|
123
|
+
U_STABLE const char * U_EXPORT2
|
124
|
+
unumsys_getName(const UNumberingSystem *unumsys);
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Returns whether the given UNumberingSystem object is for an algorithmic (not purely
|
128
|
+
* positional) system.
|
129
|
+
* @param unumsys The UNumberingSystem whose algorithmic status is desired.
|
130
|
+
* @return TRUE if the specified UNumberingSystem object is for an algorithmic
|
131
|
+
* system.
|
132
|
+
* @stable ICU 52
|
133
|
+
*/
|
134
|
+
U_STABLE UBool U_EXPORT2
|
135
|
+
unumsys_isAlgorithmic(const UNumberingSystem *unumsys);
|
136
|
+
|
137
|
+
/**
|
138
|
+
* Returns the radix of the specified UNumberingSystem object. Simple positional
|
139
|
+
* numbering systems typically have radix 10, but might have a radix of e.g. 16 for
|
140
|
+
* hexadecimal. The radix is less well-defined for non-positional algorithmic systems.
|
141
|
+
* @param unumsys The UNumberingSystem whose radix is desired.
|
142
|
+
* @return The radix of the specified UNumberingSystem object.
|
143
|
+
* @stable ICU 52
|
144
|
+
*/
|
145
|
+
U_STABLE int32_t U_EXPORT2
|
146
|
+
unumsys_getRadix(const UNumberingSystem *unumsys);
|
147
|
+
|
148
|
+
/**
|
149
|
+
* Get the description string of the specified UNumberingSystem object. For simple
|
150
|
+
* positional systems this is the ordered string of digits (with length matching
|
151
|
+
* the radix), e.g. "\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D"
|
152
|
+
* for "hanidec"; it would be "0123456789ABCDEF" for hexadecimal. For
|
153
|
+
* algorithmic systems this is the name of the RBNF ruleset used for formatting,
|
154
|
+
* e.g. "zh/SpelloutRules/%spellout-cardinal" for "hans" or "%greek-upper" for
|
155
|
+
* "grek".
|
156
|
+
* @param unumsys The UNumberingSystem whose description string is desired.
|
157
|
+
* @param result A pointer to a buffer to receive the description string.
|
158
|
+
* @param resultLength The maximum size of result.
|
159
|
+
* @param status A pointer to a UErrorCode to receive any errors.
|
160
|
+
* @return The total buffer size needed; if greater than resultLength, the
|
161
|
+
* output was truncated.
|
162
|
+
* @stable ICU 52
|
163
|
+
*/
|
164
|
+
U_STABLE int32_t U_EXPORT2
|
165
|
+
unumsys_getDescription(const UNumberingSystem *unumsys, UChar *result,
|
166
|
+
int32_t resultLength, UErrorCode *status);
|
167
|
+
|
168
|
+
#endif /* #if !UCONFIG_NO_FORMATTING */
|
169
|
+
|
170
|
+
#endif
|
@@ -0,0 +1,320 @@
|
|
1
|
+
/*
|
2
|
+
******************************************************************************
|
3
|
+
*
|
4
|
+
* Copyright (C) 2002-2012, International Business Machines
|
5
|
+
* Corporation and others. All Rights Reserved.
|
6
|
+
*
|
7
|
+
******************************************************************************
|
8
|
+
* file name: uobject.h
|
9
|
+
* encoding: US-ASCII
|
10
|
+
* tab size: 8 (not used)
|
11
|
+
* indentation:4
|
12
|
+
*
|
13
|
+
* created on: 2002jun26
|
14
|
+
* created by: Markus W. Scherer
|
15
|
+
*/
|
16
|
+
|
17
|
+
#ifndef __UOBJECT_H__
|
18
|
+
#define __UOBJECT_H__
|
19
|
+
|
20
|
+
#include "unicode/utypes.h"
|
21
|
+
|
22
|
+
/**
|
23
|
+
* \file
|
24
|
+
* \brief C++ API: Common ICU base class UObject.
|
25
|
+
*/
|
26
|
+
|
27
|
+
/**
|
28
|
+
* @{
|
29
|
+
* \def U_NO_THROW
|
30
|
+
* Define this to define the throw() specification so
|
31
|
+
* certain functions do not throw any exceptions
|
32
|
+
*
|
33
|
+
* UMemory operator new methods should have the throw() specification
|
34
|
+
* appended to them, so that the compiler adds the additional NULL check
|
35
|
+
* before calling constructors. Without, if <code>operator new</code> returns NULL the
|
36
|
+
* constructor is still called, and if the constructor references member
|
37
|
+
* data, (which it typically does), the result is a segmentation violation.
|
38
|
+
*
|
39
|
+
* @stable ICU 4.2
|
40
|
+
*/
|
41
|
+
#ifndef U_NO_THROW
|
42
|
+
#define U_NO_THROW throw()
|
43
|
+
#endif
|
44
|
+
|
45
|
+
/** @} */
|
46
|
+
|
47
|
+
/*===========================================================================*/
|
48
|
+
/* UClassID-based RTTI */
|
49
|
+
/*===========================================================================*/
|
50
|
+
|
51
|
+
/**
|
52
|
+
* UClassID is used to identify classes without using the compiler's RTTI.
|
53
|
+
* This was used before C++ compilers consistently supported RTTI.
|
54
|
+
* ICU 4.6 requires compiler RTTI to be turned on.
|
55
|
+
*
|
56
|
+
* Each class hierarchy which needs
|
57
|
+
* to implement polymorphic clone() or operator==() defines two methods,
|
58
|
+
* described in detail below. UClassID values can be compared using
|
59
|
+
* operator==(). Nothing else should be done with them.
|
60
|
+
*
|
61
|
+
* \par
|
62
|
+
* In class hierarchies that implement "poor man's RTTI",
|
63
|
+
* each concrete subclass implements getDynamicClassID() in the same way:
|
64
|
+
*
|
65
|
+
* \code
|
66
|
+
* class Derived {
|
67
|
+
* public:
|
68
|
+
* virtual UClassID getDynamicClassID() const
|
69
|
+
* { return Derived::getStaticClassID(); }
|
70
|
+
* }
|
71
|
+
* \endcode
|
72
|
+
*
|
73
|
+
* Each concrete class implements getStaticClassID() as well, which allows
|
74
|
+
* clients to test for a specific type.
|
75
|
+
*
|
76
|
+
* \code
|
77
|
+
* class Derived {
|
78
|
+
* public:
|
79
|
+
* static UClassID U_EXPORT2 getStaticClassID();
|
80
|
+
* private:
|
81
|
+
* static char fgClassID;
|
82
|
+
* }
|
83
|
+
*
|
84
|
+
* // In Derived.cpp:
|
85
|
+
* UClassID Derived::getStaticClassID()
|
86
|
+
* { return (UClassID)&Derived::fgClassID; }
|
87
|
+
* char Derived::fgClassID = 0; // Value is irrelevant
|
88
|
+
* \endcode
|
89
|
+
* @stable ICU 2.0
|
90
|
+
*/
|
91
|
+
typedef void* UClassID;
|
92
|
+
|
93
|
+
U_NAMESPACE_BEGIN
|
94
|
+
|
95
|
+
/**
|
96
|
+
* UMemory is the common ICU base class.
|
97
|
+
* All other ICU C++ classes are derived from UMemory (starting with ICU 2.4).
|
98
|
+
*
|
99
|
+
* This is primarily to make it possible and simple to override the
|
100
|
+
* C++ memory management by adding new/delete operators to this base class.
|
101
|
+
*
|
102
|
+
* To override ALL ICU memory management, including that from plain C code,
|
103
|
+
* replace the allocation functions declared in cmemory.h
|
104
|
+
*
|
105
|
+
* UMemory does not contain any virtual functions.
|
106
|
+
* Common "boilerplate" functions are defined in UObject.
|
107
|
+
*
|
108
|
+
* @stable ICU 2.4
|
109
|
+
*/
|
110
|
+
class U_COMMON_API UMemory {
|
111
|
+
public:
|
112
|
+
|
113
|
+
/* test versions for debugging shaper heap memory problems */
|
114
|
+
#ifdef SHAPER_MEMORY_DEBUG
|
115
|
+
static void * NewArray(int size, int count);
|
116
|
+
static void * GrowArray(void * array, int newSize );
|
117
|
+
static void FreeArray(void * array );
|
118
|
+
#endif
|
119
|
+
|
120
|
+
#if U_OVERRIDE_CXX_ALLOCATION
|
121
|
+
/**
|
122
|
+
* Override for ICU4C C++ memory management.
|
123
|
+
* simple, non-class types are allocated using the macros in common/cmemory.h
|
124
|
+
* (uprv_malloc(), uprv_free(), uprv_realloc());
|
125
|
+
* they or something else could be used here to implement C++ new/delete
|
126
|
+
* for ICU4C C++ classes
|
127
|
+
* @stable ICU 2.4
|
128
|
+
*/
|
129
|
+
static void * U_EXPORT2 operator new(size_t size) U_NO_THROW;
|
130
|
+
|
131
|
+
/**
|
132
|
+
* Override for ICU4C C++ memory management.
|
133
|
+
* See new().
|
134
|
+
* @stable ICU 2.4
|
135
|
+
*/
|
136
|
+
static void * U_EXPORT2 operator new[](size_t size) U_NO_THROW;
|
137
|
+
|
138
|
+
/**
|
139
|
+
* Override for ICU4C C++ memory management.
|
140
|
+
* simple, non-class types are allocated using the macros in common/cmemory.h
|
141
|
+
* (uprv_malloc(), uprv_free(), uprv_realloc());
|
142
|
+
* they or something else could be used here to implement C++ new/delete
|
143
|
+
* for ICU4C C++ classes
|
144
|
+
* @stable ICU 2.4
|
145
|
+
*/
|
146
|
+
static void U_EXPORT2 operator delete(void *p) U_NO_THROW;
|
147
|
+
|
148
|
+
/**
|
149
|
+
* Override for ICU4C C++ memory management.
|
150
|
+
* See delete().
|
151
|
+
* @stable ICU 2.4
|
152
|
+
*/
|
153
|
+
static void U_EXPORT2 operator delete[](void *p) U_NO_THROW;
|
154
|
+
|
155
|
+
#if U_HAVE_PLACEMENT_NEW
|
156
|
+
/**
|
157
|
+
* Override for ICU4C C++ memory management for STL.
|
158
|
+
* See new().
|
159
|
+
* @stable ICU 2.6
|
160
|
+
*/
|
161
|
+
static inline void * U_EXPORT2 operator new(size_t, void *ptr) U_NO_THROW { return ptr; }
|
162
|
+
|
163
|
+
/**
|
164
|
+
* Override for ICU4C C++ memory management for STL.
|
165
|
+
* See delete().
|
166
|
+
* @stable ICU 2.6
|
167
|
+
*/
|
168
|
+
static inline void U_EXPORT2 operator delete(void *, void *) U_NO_THROW {}
|
169
|
+
#endif /* U_HAVE_PLACEMENT_NEW */
|
170
|
+
#if U_HAVE_DEBUG_LOCATION_NEW
|
171
|
+
/**
|
172
|
+
* This method overrides the MFC debug version of the operator new
|
173
|
+
*
|
174
|
+
* @param size The requested memory size
|
175
|
+
* @param file The file where the allocation was requested
|
176
|
+
* @param line The line where the allocation was requested
|
177
|
+
*/
|
178
|
+
static void * U_EXPORT2 operator new(size_t size, const char* file, int line) U_NO_THROW;
|
179
|
+
/**
|
180
|
+
* This method provides a matching delete for the MFC debug new
|
181
|
+
*
|
182
|
+
* @param p The pointer to the allocated memory
|
183
|
+
* @param file The file where the allocation was requested
|
184
|
+
* @param line The line where the allocation was requested
|
185
|
+
*/
|
186
|
+
static void U_EXPORT2 operator delete(void* p, const char* file, int line) U_NO_THROW;
|
187
|
+
#endif /* U_HAVE_DEBUG_LOCATION_NEW */
|
188
|
+
#endif /* U_OVERRIDE_CXX_ALLOCATION */
|
189
|
+
|
190
|
+
/*
|
191
|
+
* Assignment operator not declared. The compiler will provide one
|
192
|
+
* which does nothing since this class does not contain any data members.
|
193
|
+
* API/code coverage may show the assignment operator as present and
|
194
|
+
* untested - ignore.
|
195
|
+
* Subclasses need this assignment operator if they use compiler-provided
|
196
|
+
* assignment operators of their own. An alternative to not declaring one
|
197
|
+
* here would be to declare and empty-implement a protected or public one.
|
198
|
+
UMemory &UMemory::operator=(const UMemory &);
|
199
|
+
*/
|
200
|
+
};
|
201
|
+
|
202
|
+
/**
|
203
|
+
* UObject is the common ICU "boilerplate" class.
|
204
|
+
* UObject inherits UMemory (starting with ICU 2.4),
|
205
|
+
* and all other public ICU C++ classes
|
206
|
+
* are derived from UObject (starting with ICU 2.2).
|
207
|
+
*
|
208
|
+
* UObject contains common virtual functions, in particular a virtual destructor.
|
209
|
+
*
|
210
|
+
* The clone() function is not available in UObject because it is not
|
211
|
+
* implemented by all ICU classes.
|
212
|
+
* Many ICU services provide a clone() function for their class trees,
|
213
|
+
* defined on the service's C++ base class, and all subclasses within that
|
214
|
+
* service class tree return a pointer to the service base class
|
215
|
+
* (which itself is a subclass of UObject).
|
216
|
+
* This is because some compilers do not support covariant (same-as-this)
|
217
|
+
* return types; cast to the appropriate subclass if necessary.
|
218
|
+
*
|
219
|
+
* @stable ICU 2.2
|
220
|
+
*/
|
221
|
+
class U_COMMON_API UObject : public UMemory {
|
222
|
+
public:
|
223
|
+
/**
|
224
|
+
* Destructor.
|
225
|
+
*
|
226
|
+
* @stable ICU 2.2
|
227
|
+
*/
|
228
|
+
virtual ~UObject();
|
229
|
+
|
230
|
+
/**
|
231
|
+
* ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
|
232
|
+
* The base class implementation returns a dummy value.
|
233
|
+
*
|
234
|
+
* Use compiler RTTI rather than ICU's "poor man's RTTI".
|
235
|
+
* Since ICU 4.6, new ICU C++ class hierarchies do not implement "poor man's RTTI".
|
236
|
+
*
|
237
|
+
* @stable ICU 2.2
|
238
|
+
*/
|
239
|
+
virtual UClassID getDynamicClassID() const;
|
240
|
+
|
241
|
+
protected:
|
242
|
+
// the following functions are protected to prevent instantiation and
|
243
|
+
// direct use of UObject itself
|
244
|
+
|
245
|
+
// default constructor
|
246
|
+
// inline UObject() {}
|
247
|
+
|
248
|
+
// copy constructor
|
249
|
+
// inline UObject(const UObject &other) {}
|
250
|
+
|
251
|
+
#if 0
|
252
|
+
// TODO Sometime in the future. Implement operator==().
|
253
|
+
// (This comment inserted in 2.2)
|
254
|
+
// some or all of the following "boilerplate" functions may be made public
|
255
|
+
// in a future ICU4C release when all subclasses implement them
|
256
|
+
|
257
|
+
// assignment operator
|
258
|
+
// (not virtual, see "Taligent's Guide to Designing Programs" pp.73..74)
|
259
|
+
// commented out because the implementation is the same as a compiler's default
|
260
|
+
// UObject &operator=(const UObject &other) { return *this; }
|
261
|
+
|
262
|
+
// comparison operators
|
263
|
+
virtual inline UBool operator==(const UObject &other) const { return this==&other; }
|
264
|
+
inline UBool operator!=(const UObject &other) const { return !operator==(other); }
|
265
|
+
|
266
|
+
// clone() commented out from the base class:
|
267
|
+
// some compilers do not support co-variant return types
|
268
|
+
// (i.e., subclasses would have to return UObject * as well, instead of SubClass *)
|
269
|
+
// see also UObject class documentation.
|
270
|
+
// virtual UObject *clone() const;
|
271
|
+
#endif
|
272
|
+
|
273
|
+
/*
|
274
|
+
* Assignment operator not declared. The compiler will provide one
|
275
|
+
* which does nothing since this class does not contain any data members.
|
276
|
+
* API/code coverage may show the assignment operator as present and
|
277
|
+
* untested - ignore.
|
278
|
+
* Subclasses need this assignment operator if they use compiler-provided
|
279
|
+
* assignment operators of their own. An alternative to not declaring one
|
280
|
+
* here would be to declare and empty-implement a protected or public one.
|
281
|
+
UObject &UObject::operator=(const UObject &);
|
282
|
+
*/
|
283
|
+
};
|
284
|
+
|
285
|
+
#ifndef U_HIDE_INTERNAL_API
|
286
|
+
/**
|
287
|
+
* This is a simple macro to add ICU RTTI to an ICU object implementation.
|
288
|
+
* This does not go into the header. This should only be used in *.cpp files.
|
289
|
+
*
|
290
|
+
* @param myClass The name of the class that needs RTTI defined.
|
291
|
+
* @internal
|
292
|
+
*/
|
293
|
+
#define UOBJECT_DEFINE_RTTI_IMPLEMENTATION(myClass) \
|
294
|
+
UClassID U_EXPORT2 myClass::getStaticClassID() { \
|
295
|
+
static char classID = 0; \
|
296
|
+
return (UClassID)&classID; \
|
297
|
+
} \
|
298
|
+
UClassID myClass::getDynamicClassID() const \
|
299
|
+
{ return myClass::getStaticClassID(); }
|
300
|
+
|
301
|
+
|
302
|
+
/**
|
303
|
+
* This macro adds ICU RTTI to an ICU abstract class implementation.
|
304
|
+
* This macro should be invoked in *.cpp files. The corresponding
|
305
|
+
* header should declare getStaticClassID.
|
306
|
+
*
|
307
|
+
* @param myClass The name of the class that needs RTTI defined.
|
308
|
+
* @internal
|
309
|
+
*/
|
310
|
+
#define UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass) \
|
311
|
+
UClassID U_EXPORT2 myClass::getStaticClassID() { \
|
312
|
+
static char classID = 0; \
|
313
|
+
return (UClassID)&classID; \
|
314
|
+
}
|
315
|
+
|
316
|
+
#endif /* U_HIDE_INTERNAL_API */
|
317
|
+
|
318
|
+
U_NAMESPACE_END
|
319
|
+
|
320
|
+
#endif
|
@@ -0,0 +1,145 @@
|
|
1
|
+
/*
|
2
|
+
*****************************************************************************************
|
3
|
+
* Copyright (C) 2010-2013, International Business Machines
|
4
|
+
* Corporation and others. All Rights Reserved.
|
5
|
+
*****************************************************************************************
|
6
|
+
*/
|
7
|
+
|
8
|
+
#ifndef UPLURALRULES_H
|
9
|
+
#define UPLURALRULES_H
|
10
|
+
|
11
|
+
#include "unicode/utypes.h"
|
12
|
+
|
13
|
+
#if !UCONFIG_NO_FORMATTING
|
14
|
+
|
15
|
+
#include "unicode/localpointer.h"
|
16
|
+
|
17
|
+
/**
|
18
|
+
* \file
|
19
|
+
* \brief C API: Plural rules, select plural keywords for numeric values.
|
20
|
+
*
|
21
|
+
* A UPluralRules object defines rules for mapping non-negative numeric
|
22
|
+
* values onto a small set of keywords. Rules are constructed from a text
|
23
|
+
* description, consisting of a series of keywords and conditions.
|
24
|
+
* The uplrules_select function examines each condition in order and
|
25
|
+
* returns the keyword for the first condition that matches the number.
|
26
|
+
* If none match, the default rule(other) is returned.
|
27
|
+
*
|
28
|
+
* For more information, see the LDML spec, C.11 Language Plural Rules:
|
29
|
+
* http://www.unicode.org/reports/tr35/#Language_Plural_Rules
|
30
|
+
*
|
31
|
+
* Keywords: ICU locale data has 6 predefined values -
|
32
|
+
* 'zero', 'one', 'two', 'few', 'many' and 'other'. Callers need to check
|
33
|
+
* the value of keyword returned by the uplrules_select function.
|
34
|
+
*
|
35
|
+
* These are based on CLDR <i>Language Plural Rules</i>. For these
|
36
|
+
* predefined rules, see the CLDR page at
|
37
|
+
* http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
|
38
|
+
*/
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Type of plurals and PluralRules.
|
42
|
+
* @stable ICU 50
|
43
|
+
*/
|
44
|
+
enum UPluralType {
|
45
|
+
/**
|
46
|
+
* Plural rules for cardinal numbers: 1 file vs. 2 files.
|
47
|
+
* @stable ICU 50
|
48
|
+
*/
|
49
|
+
UPLURAL_TYPE_CARDINAL,
|
50
|
+
/**
|
51
|
+
* Plural rules for ordinal numbers: 1st file, 2nd file, 3rd file, 4th file, etc.
|
52
|
+
* @stable ICU 50
|
53
|
+
*/
|
54
|
+
UPLURAL_TYPE_ORDINAL,
|
55
|
+
/**
|
56
|
+
* Number of Plural rules types.
|
57
|
+
* @stable ICU 50
|
58
|
+
*/
|
59
|
+
UPLURAL_TYPE_COUNT
|
60
|
+
};
|
61
|
+
/**
|
62
|
+
* @stable ICU 50
|
63
|
+
*/
|
64
|
+
typedef enum UPluralType UPluralType;
|
65
|
+
|
66
|
+
/**
|
67
|
+
* Opaque UPluralRules object for use in C programs.
|
68
|
+
* @stable ICU 4.8
|
69
|
+
*/
|
70
|
+
struct UPluralRules;
|
71
|
+
typedef struct UPluralRules UPluralRules; /**< C typedef for struct UPluralRules. @stable ICU 4.8 */
|
72
|
+
|
73
|
+
/**
|
74
|
+
* Opens a new UPluralRules object using the predefined cardinal-number plural rules for a
|
75
|
+
* given locale.
|
76
|
+
* Same as uplrules_openForType(locale, UPLURAL_TYPE_CARDINAL, status).
|
77
|
+
* @param locale The locale for which the rules are desired.
|
78
|
+
* @param status A pointer to a UErrorCode to receive any errors.
|
79
|
+
* @return A UPluralRules for the specified locale, or NULL if an error occurred.
|
80
|
+
* @stable ICU 4.8
|
81
|
+
*/
|
82
|
+
U_STABLE UPluralRules* U_EXPORT2
|
83
|
+
uplrules_open(const char *locale, UErrorCode *status);
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Opens a new UPluralRules object using the predefined plural rules for a
|
87
|
+
* given locale and the plural type.
|
88
|
+
* @param locale The locale for which the rules are desired.
|
89
|
+
* @param type The plural type (e.g., cardinal or ordinal).
|
90
|
+
* @param status A pointer to a UErrorCode to receive any errors.
|
91
|
+
* @return A UPluralRules for the specified locale, or NULL if an error occurred.
|
92
|
+
* @stable ICU 50
|
93
|
+
*/
|
94
|
+
U_DRAFT UPluralRules* U_EXPORT2
|
95
|
+
uplrules_openForType(const char *locale, UPluralType type, UErrorCode *status);
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Closes a UPluralRules object. Once closed it may no longer be used.
|
99
|
+
* @param uplrules The UPluralRules object to close.
|
100
|
+
* @stable ICU 4.8
|
101
|
+
*/
|
102
|
+
U_STABLE void U_EXPORT2
|
103
|
+
uplrules_close(UPluralRules *uplrules);
|
104
|
+
|
105
|
+
|
106
|
+
#if U_SHOW_CPLUSPLUS_API
|
107
|
+
|
108
|
+
U_NAMESPACE_BEGIN
|
109
|
+
|
110
|
+
/**
|
111
|
+
* \class LocalUPluralRulesPointer
|
112
|
+
* "Smart pointer" class, closes a UPluralRules via uplrules_close().
|
113
|
+
* For most methods see the LocalPointerBase base class.
|
114
|
+
*
|
115
|
+
* @see LocalPointerBase
|
116
|
+
* @see LocalPointer
|
117
|
+
* @stable ICU 4.8
|
118
|
+
*/
|
119
|
+
U_DEFINE_LOCAL_OPEN_POINTER(LocalUPluralRulesPointer, UPluralRules, uplrules_close);
|
120
|
+
|
121
|
+
U_NAMESPACE_END
|
122
|
+
|
123
|
+
#endif
|
124
|
+
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Given a number, returns the keyword of the first rule that
|
128
|
+
* applies to the number, according to the supplied UPluralRules object.
|
129
|
+
* @param uplrules The UPluralRules object specifying the rules.
|
130
|
+
* @param number The number for which the rule has to be determined.
|
131
|
+
* @param keyword The keyword of the rule that applies to number.
|
132
|
+
* @param capacity The capacity of keyword.
|
133
|
+
* @param status A pointer to a UErrorCode to receive any errors.
|
134
|
+
* @return The length of keyword.
|
135
|
+
* @stable ICU 4.8
|
136
|
+
*/
|
137
|
+
U_STABLE int32_t U_EXPORT2
|
138
|
+
uplrules_select(const UPluralRules *uplrules,
|
139
|
+
double number,
|
140
|
+
UChar *keyword, int32_t capacity,
|
141
|
+
UErrorCode *status);
|
142
|
+
|
143
|
+
#endif /* #if !UCONFIG_NO_FORMATTING */
|
144
|
+
|
145
|
+
#endif
|