pango 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +21 -2
- data/lib/2.0/pango.so +0 -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/libstdc++-6.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 +3 -3
- data/vendor/local/include/harfbuzz/hb-blob.h +3 -4
- data/vendor/local/include/harfbuzz/hb-buffer.h +22 -1
- data/vendor/local/include/harfbuzz/hb-common.h +23 -18
- 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 +11 -3
- data/vendor/local/include/harfbuzz/hb-ot-shape.h +10 -11
- data/vendor/local/include/harfbuzz/hb-ot.h +1 -0
- data/vendor/local/include/harfbuzz/hb-version.h +7 -7
- 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-features.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-font.h +3 -1
- data/vendor/local/include/pango-1.0/pango/pango-item.h +11 -2
- 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 +3 -3
- data/vendor/local/lib/libicudt.dll.a +0 -0
- data/vendor/local/lib/libicuin.dll.a +0 -0
- data/vendor/local/lib/libicuio.dll.a +0 -0
- data/vendor/local/lib/libicule.dll.a +0 -0
- data/vendor/local/lib/libiculx.dll.a +0 -0
- data/vendor/local/lib/libicutest.dll.a +0 -0
- data/vendor/local/lib/libicutu.dll.a +0 -0
- data/vendor/local/lib/libicuuc.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.la +2 -2
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.la +2 -2
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.la +2 -2
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +2 -2
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.la +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +13 -0
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
- 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 +1 -1
- data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
- data/vendor/local/share/gir-1.0/Pango-1.0.gir +3009 -462
- data/vendor/local/share/gir-1.0/PangoCairo-1.0.gir +64 -22
- data/vendor/local/share/gir-1.0/PangoFT2-1.0.gir +4 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +30 -26
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +343 -313
- data/vendor/local/share/gtk-doc/html/harfbuzz/ch01.html +5 -5
- data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +6 -8
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +442 -247
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-buffer.html +1389 -654
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +954 -698
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +95 -18
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +36 -27
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +477 -191
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +1951 -1039
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +123 -65
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +66 -21
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +11 -13
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +67 -23
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +66 -21
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +574 -347
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +104 -37
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +10 -27
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +744 -318
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +294 -153
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape.html +196 -104
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +1100 -757
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +51 -18
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +110 -84
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +11 -13
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +289 -503
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +161 -316
- data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +31 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +260 -105
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +143 -105
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +150 -108
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +163 -112
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +348 -229
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +746 -514
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +853 -623
- data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +29 -13
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +31 -33
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +10 -12
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +12 -14
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +53 -55
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +28 -30
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +29 -31
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +17 -19
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +28 -30
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +17 -19
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +9 -11
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +6 -6
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +6 -6
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +11 -13
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +7 -9
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +5 -5
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +49 -51
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +36 -38
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +37 -39
- data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +68 -70
- data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +568 -570
- data/vendor/local/share/gtk-doc/html/pango/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index.sgml +229 -399
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +345 -259
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +979 -664
- data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +70 -43
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +349 -229
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +236 -153
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +3100 -2159
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +659 -472
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +1952 -1384
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +3050 -2135
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +676 -463
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +223 -146
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +1589 -1199
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +1072 -842
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +406 -276
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +2541 -1792
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +1479 -1033
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +214 -154
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +374 -291
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +733 -498
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +893 -617
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +59 -59
- data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +5 -5
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +578 -782
- data/vendor/local/share/gtk-doc/html/pango/pango.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/style.css +260 -105
- data/vendor/local/share/gtk-doc/html/pango/tools.html +4 -4
- data/vendor/local/share/icu/54.1/config/mh-mingw +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 +1 -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 +2 -2
- data/vendor/local/share/man/man1/pango-view.1 +1 -118
- 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 +266 -14
- data/lib/1.9/pango.so +0 -0
- data/lib/2.1/pango.so +0 -0
@@ -0,0 +1,223 @@
|
|
1
|
+
/*
|
2
|
+
*******************************************************************************
|
3
|
+
*
|
4
|
+
* Copyright (C) 1999-2011, International Business Machines
|
5
|
+
* Corporation and others. All Rights Reserved.
|
6
|
+
*
|
7
|
+
*******************************************************************************
|
8
|
+
* file name: utf.h
|
9
|
+
* encoding: US-ASCII
|
10
|
+
* tab size: 8 (not used)
|
11
|
+
* indentation:4
|
12
|
+
*
|
13
|
+
* created on: 1999sep09
|
14
|
+
* created by: Markus W. Scherer
|
15
|
+
*/
|
16
|
+
|
17
|
+
/**
|
18
|
+
* \file
|
19
|
+
* \brief C API: Code point macros
|
20
|
+
*
|
21
|
+
* This file defines macros for checking whether a code point is
|
22
|
+
* a surrogate or a non-character etc.
|
23
|
+
*
|
24
|
+
* The UChar and UChar32 data types for Unicode code units and code points
|
25
|
+
* are defined in umachine.h because they can be machine-dependent.
|
26
|
+
*
|
27
|
+
* If U_NO_DEFAULT_INCLUDE_UTF_HEADERS is 0 then utf.h is included by utypes.h
|
28
|
+
* and itself includes utf8.h and utf16.h after some
|
29
|
+
* common definitions.
|
30
|
+
* If U_NO_DEFAULT_INCLUDE_UTF_HEADERS is 1 then each of these headers must be
|
31
|
+
* included explicitly if their definitions are used.
|
32
|
+
*
|
33
|
+
* utf8.h and utf16.h define macros for efficiently getting code points
|
34
|
+
* in and out of UTF-8/16 strings.
|
35
|
+
* utf16.h macros have "U16_" prefixes.
|
36
|
+
* utf8.h defines similar macros with "U8_" prefixes for UTF-8 string handling.
|
37
|
+
*
|
38
|
+
* ICU mostly processes 16-bit Unicode strings.
|
39
|
+
* Most of the time, such strings are well-formed UTF-16.
|
40
|
+
* Single, unpaired surrogates must be handled as well, and are treated in ICU
|
41
|
+
* like regular code points where possible.
|
42
|
+
* (Pairs of surrogate code points are indistinguishable from supplementary
|
43
|
+
* code points encoded as pairs of supplementary code units.)
|
44
|
+
*
|
45
|
+
* In fact, almost all Unicode code points in normal text (>99%)
|
46
|
+
* are on the BMP (<=U+ffff) and even <=U+d7ff.
|
47
|
+
* ICU functions handle supplementary code points (U+10000..U+10ffff)
|
48
|
+
* but are optimized for the much more frequently occurring BMP code points.
|
49
|
+
*
|
50
|
+
* umachine.h defines UChar to be an unsigned 16-bit integer.
|
51
|
+
* Where available, UChar is defined to be a char16_t
|
52
|
+
* or a wchar_t (if that is an unsigned 16-bit type), otherwise uint16_t.
|
53
|
+
*
|
54
|
+
* UChar32 is defined to be a signed 32-bit integer (int32_t), large enough for a 21-bit
|
55
|
+
* Unicode code point (Unicode scalar value, 0..0x10ffff).
|
56
|
+
* Before ICU 2.4, the definition of UChar32 was similarly platform-dependent as
|
57
|
+
* the definition of UChar. For details see the documentation for UChar32 itself.
|
58
|
+
*
|
59
|
+
* utf.h defines a small number of C macros for single Unicode code points.
|
60
|
+
* These are simple checks for surrogates and non-characters.
|
61
|
+
* For actual Unicode character properties see uchar.h.
|
62
|
+
*
|
63
|
+
* By default, string operations must be done with error checking in case
|
64
|
+
* a string is not well-formed UTF-16.
|
65
|
+
* The macros will detect if a surrogate code unit is unpaired
|
66
|
+
* (lead unit without trail unit or vice versa) and just return the unit itself
|
67
|
+
* as the code point.
|
68
|
+
*
|
69
|
+
* The regular "safe" macros require that the initial, passed-in string index
|
70
|
+
* is within bounds. They only check the index when they read more than one
|
71
|
+
* code unit. This is usually done with code similar to the following loop:
|
72
|
+
* <pre>while(i<length) {
|
73
|
+
* U16_NEXT(s, i, length, c);
|
74
|
+
* // use c
|
75
|
+
* }</pre>
|
76
|
+
*
|
77
|
+
* When it is safe to assume that text is well-formed UTF-16
|
78
|
+
* (does not contain single, unpaired surrogates), then one can use
|
79
|
+
* U16_..._UNSAFE macros.
|
80
|
+
* These do not check for proper code unit sequences or truncated text and may
|
81
|
+
* yield wrong results or even cause a crash if they are used with "malformed"
|
82
|
+
* text.
|
83
|
+
* In practice, U16_..._UNSAFE macros will produce slightly less code but
|
84
|
+
* should not be faster because the processing is only different when a
|
85
|
+
* surrogate code unit is detected, which will be rare.
|
86
|
+
*
|
87
|
+
* Similarly for UTF-8, there are "safe" macros without a suffix,
|
88
|
+
* and U8_..._UNSAFE versions.
|
89
|
+
* The performance differences are much larger here because UTF-8 provides so
|
90
|
+
* many opportunities for malformed sequences.
|
91
|
+
* The unsafe UTF-8 macros are entirely implemented inside the macro definitions
|
92
|
+
* and are fast, while the safe UTF-8 macros call functions for all but the
|
93
|
+
* trivial (ASCII) cases.
|
94
|
+
* (ICU 3.6 optimizes U8_NEXT() and U8_APPEND() to handle most other common
|
95
|
+
* characters inline as well.)
|
96
|
+
*
|
97
|
+
* Unlike with UTF-16, malformed sequences cannot be expressed with distinct
|
98
|
+
* code point values (0..U+10ffff). They are indicated with negative values instead.
|
99
|
+
*
|
100
|
+
* For more information see the ICU User Guide Strings chapter
|
101
|
+
* (http://userguide.icu-project.org/strings).
|
102
|
+
*
|
103
|
+
* <em>Usage:</em>
|
104
|
+
* ICU coding guidelines for if() statements should be followed when using these macros.
|
105
|
+
* Compound statements (curly braces {}) must be used for if-else-while...
|
106
|
+
* bodies and all macro statements should be terminated with semicolon.
|
107
|
+
*
|
108
|
+
* @stable ICU 2.4
|
109
|
+
*/
|
110
|
+
|
111
|
+
#ifndef __UTF_H__
|
112
|
+
#define __UTF_H__
|
113
|
+
|
114
|
+
#include "unicode/umachine.h"
|
115
|
+
/* include the utfXX.h after the following definitions */
|
116
|
+
|
117
|
+
/* single-code point definitions -------------------------------------------- */
|
118
|
+
|
119
|
+
/**
|
120
|
+
* Is this code point a Unicode noncharacter?
|
121
|
+
* @param c 32-bit code point
|
122
|
+
* @return TRUE or FALSE
|
123
|
+
* @stable ICU 2.4
|
124
|
+
*/
|
125
|
+
#define U_IS_UNICODE_NONCHAR(c) \
|
126
|
+
((c)>=0xfdd0 && \
|
127
|
+
((uint32_t)(c)<=0xfdef || ((c)&0xfffe)==0xfffe) && \
|
128
|
+
(uint32_t)(c)<=0x10ffff)
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Is c a Unicode code point value (0..U+10ffff)
|
132
|
+
* that can be assigned a character?
|
133
|
+
*
|
134
|
+
* Code points that are not characters include:
|
135
|
+
* - single surrogate code points (U+d800..U+dfff, 2048 code points)
|
136
|
+
* - the last two code points on each plane (U+__fffe and U+__ffff, 34 code points)
|
137
|
+
* - U+fdd0..U+fdef (new with Unicode 3.1, 32 code points)
|
138
|
+
* - the highest Unicode code point value is U+10ffff
|
139
|
+
*
|
140
|
+
* This means that all code points below U+d800 are character code points,
|
141
|
+
* and that boundary is tested first for performance.
|
142
|
+
*
|
143
|
+
* @param c 32-bit code point
|
144
|
+
* @return TRUE or FALSE
|
145
|
+
* @stable ICU 2.4
|
146
|
+
*/
|
147
|
+
#define U_IS_UNICODE_CHAR(c) \
|
148
|
+
((uint32_t)(c)<0xd800 || \
|
149
|
+
((uint32_t)(c)>0xdfff && \
|
150
|
+
(uint32_t)(c)<=0x10ffff && \
|
151
|
+
!U_IS_UNICODE_NONCHAR(c)))
|
152
|
+
|
153
|
+
/**
|
154
|
+
* Is this code point a BMP code point (U+0000..U+ffff)?
|
155
|
+
* @param c 32-bit code point
|
156
|
+
* @return TRUE or FALSE
|
157
|
+
* @stable ICU 2.8
|
158
|
+
*/
|
159
|
+
#define U_IS_BMP(c) ((uint32_t)(c)<=0xffff)
|
160
|
+
|
161
|
+
/**
|
162
|
+
* Is this code point a supplementary code point (U+10000..U+10ffff)?
|
163
|
+
* @param c 32-bit code point
|
164
|
+
* @return TRUE or FALSE
|
165
|
+
* @stable ICU 2.8
|
166
|
+
*/
|
167
|
+
#define U_IS_SUPPLEMENTARY(c) ((uint32_t)((c)-0x10000)<=0xfffff)
|
168
|
+
|
169
|
+
/**
|
170
|
+
* Is this code point a lead surrogate (U+d800..U+dbff)?
|
171
|
+
* @param c 32-bit code point
|
172
|
+
* @return TRUE or FALSE
|
173
|
+
* @stable ICU 2.4
|
174
|
+
*/
|
175
|
+
#define U_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
|
176
|
+
|
177
|
+
/**
|
178
|
+
* Is this code point a trail surrogate (U+dc00..U+dfff)?
|
179
|
+
* @param c 32-bit code point
|
180
|
+
* @return TRUE or FALSE
|
181
|
+
* @stable ICU 2.4
|
182
|
+
*/
|
183
|
+
#define U_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
|
184
|
+
|
185
|
+
/**
|
186
|
+
* Is this code point a surrogate (U+d800..U+dfff)?
|
187
|
+
* @param c 32-bit code point
|
188
|
+
* @return TRUE or FALSE
|
189
|
+
* @stable ICU 2.4
|
190
|
+
*/
|
191
|
+
#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
|
192
|
+
|
193
|
+
/**
|
194
|
+
* Assuming c is a surrogate code point (U_IS_SURROGATE(c)),
|
195
|
+
* is it a lead surrogate?
|
196
|
+
* @param c 32-bit code point
|
197
|
+
* @return TRUE or FALSE
|
198
|
+
* @stable ICU 2.4
|
199
|
+
*/
|
200
|
+
#define U_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
|
201
|
+
|
202
|
+
/**
|
203
|
+
* Assuming c is a surrogate code point (U_IS_SURROGATE(c)),
|
204
|
+
* is it a trail surrogate?
|
205
|
+
* @param c 32-bit code point
|
206
|
+
* @return TRUE or FALSE
|
207
|
+
* @stable ICU 4.2
|
208
|
+
*/
|
209
|
+
#define U_IS_SURROGATE_TRAIL(c) (((c)&0x400)!=0)
|
210
|
+
|
211
|
+
/* include the utfXX.h ------------------------------------------------------ */
|
212
|
+
|
213
|
+
#if !U_NO_DEFAULT_INCLUDE_UTF_HEADERS
|
214
|
+
|
215
|
+
#include "unicode/utf8.h"
|
216
|
+
#include "unicode/utf16.h"
|
217
|
+
|
218
|
+
/* utf_old.h contains deprecated, pre-ICU 2.4 definitions */
|
219
|
+
#include "unicode/utf_old.h"
|
220
|
+
|
221
|
+
#endif /* !U_NO_DEFAULT_INCLUDE_UTF_HEADERS */
|
222
|
+
|
223
|
+
#endif /* __UTF_H__ */
|
@@ -0,0 +1,623 @@
|
|
1
|
+
/*
|
2
|
+
*******************************************************************************
|
3
|
+
*
|
4
|
+
* Copyright (C) 1999-2012, International Business Machines
|
5
|
+
* Corporation and others. All Rights Reserved.
|
6
|
+
*
|
7
|
+
*******************************************************************************
|
8
|
+
* file name: utf16.h
|
9
|
+
* encoding: US-ASCII
|
10
|
+
* tab size: 8 (not used)
|
11
|
+
* indentation:4
|
12
|
+
*
|
13
|
+
* created on: 1999sep09
|
14
|
+
* created by: Markus W. Scherer
|
15
|
+
*/
|
16
|
+
|
17
|
+
/**
|
18
|
+
* \file
|
19
|
+
* \brief C API: 16-bit Unicode handling macros
|
20
|
+
*
|
21
|
+
* This file defines macros to deal with 16-bit Unicode (UTF-16) code units and strings.
|
22
|
+
*
|
23
|
+
* For more information see utf.h and the ICU User Guide Strings chapter
|
24
|
+
* (http://userguide.icu-project.org/strings).
|
25
|
+
*
|
26
|
+
* <em>Usage:</em>
|
27
|
+
* ICU coding guidelines for if() statements should be followed when using these macros.
|
28
|
+
* Compound statements (curly braces {}) must be used for if-else-while...
|
29
|
+
* bodies and all macro statements should be terminated with semicolon.
|
30
|
+
*/
|
31
|
+
|
32
|
+
#ifndef __UTF16_H__
|
33
|
+
#define __UTF16_H__
|
34
|
+
|
35
|
+
#include "unicode/umachine.h"
|
36
|
+
#ifndef __UTF_H__
|
37
|
+
# include "unicode/utf.h"
|
38
|
+
#endif
|
39
|
+
|
40
|
+
/* single-code point definitions -------------------------------------------- */
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Does this code unit alone encode a code point (BMP, not a surrogate)?
|
44
|
+
* @param c 16-bit code unit
|
45
|
+
* @return TRUE or FALSE
|
46
|
+
* @stable ICU 2.4
|
47
|
+
*/
|
48
|
+
#define U16_IS_SINGLE(c) !U_IS_SURROGATE(c)
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Is this code unit a lead surrogate (U+d800..U+dbff)?
|
52
|
+
* @param c 16-bit code unit
|
53
|
+
* @return TRUE or FALSE
|
54
|
+
* @stable ICU 2.4
|
55
|
+
*/
|
56
|
+
#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
|
57
|
+
|
58
|
+
/**
|
59
|
+
* Is this code unit a trail surrogate (U+dc00..U+dfff)?
|
60
|
+
* @param c 16-bit code unit
|
61
|
+
* @return TRUE or FALSE
|
62
|
+
* @stable ICU 2.4
|
63
|
+
*/
|
64
|
+
#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
|
65
|
+
|
66
|
+
/**
|
67
|
+
* Is this code unit a surrogate (U+d800..U+dfff)?
|
68
|
+
* @param c 16-bit code unit
|
69
|
+
* @return TRUE or FALSE
|
70
|
+
* @stable ICU 2.4
|
71
|
+
*/
|
72
|
+
#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
|
73
|
+
|
74
|
+
/**
|
75
|
+
* Assuming c is a surrogate code point (U16_IS_SURROGATE(c)),
|
76
|
+
* is it a lead surrogate?
|
77
|
+
* @param c 16-bit code unit
|
78
|
+
* @return TRUE or FALSE
|
79
|
+
* @stable ICU 2.4
|
80
|
+
*/
|
81
|
+
#define U16_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Assuming c is a surrogate code point (U16_IS_SURROGATE(c)),
|
85
|
+
* is it a trail surrogate?
|
86
|
+
* @param c 16-bit code unit
|
87
|
+
* @return TRUE or FALSE
|
88
|
+
* @stable ICU 4.2
|
89
|
+
*/
|
90
|
+
#define U16_IS_SURROGATE_TRAIL(c) (((c)&0x400)!=0)
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Helper constant for U16_GET_SUPPLEMENTARY.
|
94
|
+
* @internal
|
95
|
+
*/
|
96
|
+
#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
|
97
|
+
|
98
|
+
/**
|
99
|
+
* Get a supplementary code point value (U+10000..U+10ffff)
|
100
|
+
* from its lead and trail surrogates.
|
101
|
+
* The result is undefined if the input values are not
|
102
|
+
* lead and trail surrogates.
|
103
|
+
*
|
104
|
+
* @param lead lead surrogate (U+d800..U+dbff)
|
105
|
+
* @param trail trail surrogate (U+dc00..U+dfff)
|
106
|
+
* @return supplementary code point (U+10000..U+10ffff)
|
107
|
+
* @stable ICU 2.4
|
108
|
+
*/
|
109
|
+
#define U16_GET_SUPPLEMENTARY(lead, trail) \
|
110
|
+
(((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
|
111
|
+
|
112
|
+
|
113
|
+
/**
|
114
|
+
* Get the lead surrogate (0xd800..0xdbff) for a
|
115
|
+
* supplementary code point (0x10000..0x10ffff).
|
116
|
+
* @param supplementary 32-bit code point (U+10000..U+10ffff)
|
117
|
+
* @return lead surrogate (U+d800..U+dbff) for supplementary
|
118
|
+
* @stable ICU 2.4
|
119
|
+
*/
|
120
|
+
#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
|
121
|
+
|
122
|
+
/**
|
123
|
+
* Get the trail surrogate (0xdc00..0xdfff) for a
|
124
|
+
* supplementary code point (0x10000..0x10ffff).
|
125
|
+
* @param supplementary 32-bit code point (U+10000..U+10ffff)
|
126
|
+
* @return trail surrogate (U+dc00..U+dfff) for supplementary
|
127
|
+
* @stable ICU 2.4
|
128
|
+
*/
|
129
|
+
#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
|
130
|
+
|
131
|
+
/**
|
132
|
+
* How many 16-bit code units are used to encode this Unicode code point? (1 or 2)
|
133
|
+
* The result is not defined if c is not a Unicode code point (U+0000..U+10ffff).
|
134
|
+
* @param c 32-bit code point
|
135
|
+
* @return 1 or 2
|
136
|
+
* @stable ICU 2.4
|
137
|
+
*/
|
138
|
+
#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
|
139
|
+
|
140
|
+
/**
|
141
|
+
* The maximum number of 16-bit code units per Unicode code point (U+0000..U+10ffff).
|
142
|
+
* @return 2
|
143
|
+
* @stable ICU 2.4
|
144
|
+
*/
|
145
|
+
#define U16_MAX_LENGTH 2
|
146
|
+
|
147
|
+
/**
|
148
|
+
* Get a code point from a string at a random-access offset,
|
149
|
+
* without changing the offset.
|
150
|
+
* "Unsafe" macro, assumes well-formed UTF-16.
|
151
|
+
*
|
152
|
+
* The offset may point to either the lead or trail surrogate unit
|
153
|
+
* for a supplementary code point, in which case the macro will read
|
154
|
+
* the adjacent matching surrogate as well.
|
155
|
+
* The result is undefined if the offset points to a single, unpaired surrogate.
|
156
|
+
* Iteration through a string is more efficient with U16_NEXT_UNSAFE or U16_NEXT.
|
157
|
+
*
|
158
|
+
* @param s const UChar * string
|
159
|
+
* @param i string offset
|
160
|
+
* @param c output UChar32 variable
|
161
|
+
* @see U16_GET
|
162
|
+
* @stable ICU 2.4
|
163
|
+
*/
|
164
|
+
#define U16_GET_UNSAFE(s, i, c) { \
|
165
|
+
(c)=(s)[i]; \
|
166
|
+
if(U16_IS_SURROGATE(c)) { \
|
167
|
+
if(U16_IS_SURROGATE_LEAD(c)) { \
|
168
|
+
(c)=U16_GET_SUPPLEMENTARY((c), (s)[(i)+1]); \
|
169
|
+
} else { \
|
170
|
+
(c)=U16_GET_SUPPLEMENTARY((s)[(i)-1], (c)); \
|
171
|
+
} \
|
172
|
+
} \
|
173
|
+
}
|
174
|
+
|
175
|
+
/**
|
176
|
+
* Get a code point from a string at a random-access offset,
|
177
|
+
* without changing the offset.
|
178
|
+
* "Safe" macro, handles unpaired surrogates and checks for string boundaries.
|
179
|
+
*
|
180
|
+
* The offset may point to either the lead or trail surrogate unit
|
181
|
+
* for a supplementary code point, in which case the macro will read
|
182
|
+
* the adjacent matching surrogate as well.
|
183
|
+
*
|
184
|
+
* The length can be negative for a NUL-terminated string.
|
185
|
+
*
|
186
|
+
* If the offset points to a single, unpaired surrogate, then that itself
|
187
|
+
* will be returned as the code point.
|
188
|
+
* Iteration through a string is more efficient with U16_NEXT_UNSAFE or U16_NEXT.
|
189
|
+
*
|
190
|
+
* @param s const UChar * string
|
191
|
+
* @param start starting string offset (usually 0)
|
192
|
+
* @param i string offset, must be start<=i<length
|
193
|
+
* @param length string length
|
194
|
+
* @param c output UChar32 variable
|
195
|
+
* @see U16_GET_UNSAFE
|
196
|
+
* @stable ICU 2.4
|
197
|
+
*/
|
198
|
+
#define U16_GET(s, start, i, length, c) { \
|
199
|
+
(c)=(s)[i]; \
|
200
|
+
if(U16_IS_SURROGATE(c)) { \
|
201
|
+
uint16_t __c2; \
|
202
|
+
if(U16_IS_SURROGATE_LEAD(c)) { \
|
203
|
+
if((i)+1!=(length) && U16_IS_TRAIL(__c2=(s)[(i)+1])) { \
|
204
|
+
(c)=U16_GET_SUPPLEMENTARY((c), __c2); \
|
205
|
+
} \
|
206
|
+
} else { \
|
207
|
+
if((i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
|
208
|
+
(c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \
|
209
|
+
} \
|
210
|
+
} \
|
211
|
+
} \
|
212
|
+
}
|
213
|
+
|
214
|
+
/* definitions with forward iteration --------------------------------------- */
|
215
|
+
|
216
|
+
/**
|
217
|
+
* Get a code point from a string at a code point boundary offset,
|
218
|
+
* and advance the offset to the next code point boundary.
|
219
|
+
* (Post-incrementing forward iteration.)
|
220
|
+
* "Unsafe" macro, assumes well-formed UTF-16.
|
221
|
+
*
|
222
|
+
* The offset may point to the lead surrogate unit
|
223
|
+
* for a supplementary code point, in which case the macro will read
|
224
|
+
* the following trail surrogate as well.
|
225
|
+
* If the offset points to a trail surrogate, then that itself
|
226
|
+
* will be returned as the code point.
|
227
|
+
* The result is undefined if the offset points to a single, unpaired lead surrogate.
|
228
|
+
*
|
229
|
+
* @param s const UChar * string
|
230
|
+
* @param i string offset
|
231
|
+
* @param c output UChar32 variable
|
232
|
+
* @see U16_NEXT
|
233
|
+
* @stable ICU 2.4
|
234
|
+
*/
|
235
|
+
#define U16_NEXT_UNSAFE(s, i, c) { \
|
236
|
+
(c)=(s)[(i)++]; \
|
237
|
+
if(U16_IS_LEAD(c)) { \
|
238
|
+
(c)=U16_GET_SUPPLEMENTARY((c), (s)[(i)++]); \
|
239
|
+
} \
|
240
|
+
}
|
241
|
+
|
242
|
+
/**
|
243
|
+
* Get a code point from a string at a code point boundary offset,
|
244
|
+
* and advance the offset to the next code point boundary.
|
245
|
+
* (Post-incrementing forward iteration.)
|
246
|
+
* "Safe" macro, handles unpaired surrogates and checks for string boundaries.
|
247
|
+
*
|
248
|
+
* The length can be negative for a NUL-terminated string.
|
249
|
+
*
|
250
|
+
* The offset may point to the lead surrogate unit
|
251
|
+
* for a supplementary code point, in which case the macro will read
|
252
|
+
* the following trail surrogate as well.
|
253
|
+
* If the offset points to a trail surrogate or
|
254
|
+
* to a single, unpaired lead surrogate, then that itself
|
255
|
+
* will be returned as the code point.
|
256
|
+
*
|
257
|
+
* @param s const UChar * string
|
258
|
+
* @param i string offset, must be i<length
|
259
|
+
* @param length string length
|
260
|
+
* @param c output UChar32 variable
|
261
|
+
* @see U16_NEXT_UNSAFE
|
262
|
+
* @stable ICU 2.4
|
263
|
+
*/
|
264
|
+
#define U16_NEXT(s, i, length, c) { \
|
265
|
+
(c)=(s)[(i)++]; \
|
266
|
+
if(U16_IS_LEAD(c)) { \
|
267
|
+
uint16_t __c2; \
|
268
|
+
if((i)!=(length) && U16_IS_TRAIL(__c2=(s)[(i)])) { \
|
269
|
+
++(i); \
|
270
|
+
(c)=U16_GET_SUPPLEMENTARY((c), __c2); \
|
271
|
+
} \
|
272
|
+
} \
|
273
|
+
}
|
274
|
+
|
275
|
+
/**
|
276
|
+
* Append a code point to a string, overwriting 1 or 2 code units.
|
277
|
+
* The offset points to the current end of the string contents
|
278
|
+
* and is advanced (post-increment).
|
279
|
+
* "Unsafe" macro, assumes a valid code point and sufficient space in the string.
|
280
|
+
* Otherwise, the result is undefined.
|
281
|
+
*
|
282
|
+
* @param s const UChar * string buffer
|
283
|
+
* @param i string offset
|
284
|
+
* @param c code point to append
|
285
|
+
* @see U16_APPEND
|
286
|
+
* @stable ICU 2.4
|
287
|
+
*/
|
288
|
+
#define U16_APPEND_UNSAFE(s, i, c) { \
|
289
|
+
if((uint32_t)(c)<=0xffff) { \
|
290
|
+
(s)[(i)++]=(uint16_t)(c); \
|
291
|
+
} else { \
|
292
|
+
(s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \
|
293
|
+
(s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
|
294
|
+
} \
|
295
|
+
}
|
296
|
+
|
297
|
+
/**
|
298
|
+
* Append a code point to a string, overwriting 1 or 2 code units.
|
299
|
+
* The offset points to the current end of the string contents
|
300
|
+
* and is advanced (post-increment).
|
301
|
+
* "Safe" macro, checks for a valid code point.
|
302
|
+
* If a surrogate pair is written, checks for sufficient space in the string.
|
303
|
+
* If the code point is not valid or a trail surrogate does not fit,
|
304
|
+
* then isError is set to TRUE.
|
305
|
+
*
|
306
|
+
* @param s const UChar * string buffer
|
307
|
+
* @param i string offset, must be i<capacity
|
308
|
+
* @param capacity size of the string buffer
|
309
|
+
* @param c code point to append
|
310
|
+
* @param isError output UBool set to TRUE if an error occurs, otherwise not modified
|
311
|
+
* @see U16_APPEND_UNSAFE
|
312
|
+
* @stable ICU 2.4
|
313
|
+
*/
|
314
|
+
#define U16_APPEND(s, i, capacity, c, isError) { \
|
315
|
+
if((uint32_t)(c)<=0xffff) { \
|
316
|
+
(s)[(i)++]=(uint16_t)(c); \
|
317
|
+
} else if((uint32_t)(c)<=0x10ffff && (i)+1<(capacity)) { \
|
318
|
+
(s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \
|
319
|
+
(s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
|
320
|
+
} else /* c>0x10ffff or not enough space */ { \
|
321
|
+
(isError)=TRUE; \
|
322
|
+
} \
|
323
|
+
}
|
324
|
+
|
325
|
+
/**
|
326
|
+
* Advance the string offset from one code point boundary to the next.
|
327
|
+
* (Post-incrementing iteration.)
|
328
|
+
* "Unsafe" macro, assumes well-formed UTF-16.
|
329
|
+
*
|
330
|
+
* @param s const UChar * string
|
331
|
+
* @param i string offset
|
332
|
+
* @see U16_FWD_1
|
333
|
+
* @stable ICU 2.4
|
334
|
+
*/
|
335
|
+
#define U16_FWD_1_UNSAFE(s, i) { \
|
336
|
+
if(U16_IS_LEAD((s)[(i)++])) { \
|
337
|
+
++(i); \
|
338
|
+
} \
|
339
|
+
}
|
340
|
+
|
341
|
+
/**
|
342
|
+
* Advance the string offset from one code point boundary to the next.
|
343
|
+
* (Post-incrementing iteration.)
|
344
|
+
* "Safe" macro, handles unpaired surrogates and checks for string boundaries.
|
345
|
+
*
|
346
|
+
* The length can be negative for a NUL-terminated string.
|
347
|
+
*
|
348
|
+
* @param s const UChar * string
|
349
|
+
* @param i string offset, must be i<length
|
350
|
+
* @param length string length
|
351
|
+
* @see U16_FWD_1_UNSAFE
|
352
|
+
* @stable ICU 2.4
|
353
|
+
*/
|
354
|
+
#define U16_FWD_1(s, i, length) { \
|
355
|
+
if(U16_IS_LEAD((s)[(i)++]) && (i)!=(length) && U16_IS_TRAIL((s)[i])) { \
|
356
|
+
++(i); \
|
357
|
+
} \
|
358
|
+
}
|
359
|
+
|
360
|
+
/**
|
361
|
+
* Advance the string offset from one code point boundary to the n-th next one,
|
362
|
+
* i.e., move forward by n code points.
|
363
|
+
* (Post-incrementing iteration.)
|
364
|
+
* "Unsafe" macro, assumes well-formed UTF-16.
|
365
|
+
*
|
366
|
+
* @param s const UChar * string
|
367
|
+
* @param i string offset
|
368
|
+
* @param n number of code points to skip
|
369
|
+
* @see U16_FWD_N
|
370
|
+
* @stable ICU 2.4
|
371
|
+
*/
|
372
|
+
#define U16_FWD_N_UNSAFE(s, i, n) { \
|
373
|
+
int32_t __N=(n); \
|
374
|
+
while(__N>0) { \
|
375
|
+
U16_FWD_1_UNSAFE(s, i); \
|
376
|
+
--__N; \
|
377
|
+
} \
|
378
|
+
}
|
379
|
+
|
380
|
+
/**
|
381
|
+
* Advance the string offset from one code point boundary to the n-th next one,
|
382
|
+
* i.e., move forward by n code points.
|
383
|
+
* (Post-incrementing iteration.)
|
384
|
+
* "Safe" macro, handles unpaired surrogates and checks for string boundaries.
|
385
|
+
*
|
386
|
+
* The length can be negative for a NUL-terminated string.
|
387
|
+
*
|
388
|
+
* @param s const UChar * string
|
389
|
+
* @param i int32_t string offset, must be i<length
|
390
|
+
* @param length int32_t string length
|
391
|
+
* @param n number of code points to skip
|
392
|
+
* @see U16_FWD_N_UNSAFE
|
393
|
+
* @stable ICU 2.4
|
394
|
+
*/
|
395
|
+
#define U16_FWD_N(s, i, length, n) { \
|
396
|
+
int32_t __N=(n); \
|
397
|
+
while(__N>0 && ((i)<(length) || ((length)<0 && (s)[i]!=0))) { \
|
398
|
+
U16_FWD_1(s, i, length); \
|
399
|
+
--__N; \
|
400
|
+
} \
|
401
|
+
}
|
402
|
+
|
403
|
+
/**
|
404
|
+
* Adjust a random-access offset to a code point boundary
|
405
|
+
* at the start of a code point.
|
406
|
+
* If the offset points to the trail surrogate of a surrogate pair,
|
407
|
+
* then the offset is decremented.
|
408
|
+
* Otherwise, it is not modified.
|
409
|
+
* "Unsafe" macro, assumes well-formed UTF-16.
|
410
|
+
*
|
411
|
+
* @param s const UChar * string
|
412
|
+
* @param i string offset
|
413
|
+
* @see U16_SET_CP_START
|
414
|
+
* @stable ICU 2.4
|
415
|
+
*/
|
416
|
+
#define U16_SET_CP_START_UNSAFE(s, i) { \
|
417
|
+
if(U16_IS_TRAIL((s)[i])) { \
|
418
|
+
--(i); \
|
419
|
+
} \
|
420
|
+
}
|
421
|
+
|
422
|
+
/**
|
423
|
+
* Adjust a random-access offset to a code point boundary
|
424
|
+
* at the start of a code point.
|
425
|
+
* If the offset points to the trail surrogate of a surrogate pair,
|
426
|
+
* then the offset is decremented.
|
427
|
+
* Otherwise, it is not modified.
|
428
|
+
* "Safe" macro, handles unpaired surrogates and checks for string boundaries.
|
429
|
+
*
|
430
|
+
* @param s const UChar * string
|
431
|
+
* @param start starting string offset (usually 0)
|
432
|
+
* @param i string offset, must be start<=i
|
433
|
+
* @see U16_SET_CP_START_UNSAFE
|
434
|
+
* @stable ICU 2.4
|
435
|
+
*/
|
436
|
+
#define U16_SET_CP_START(s, start, i) { \
|
437
|
+
if(U16_IS_TRAIL((s)[i]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
|
438
|
+
--(i); \
|
439
|
+
} \
|
440
|
+
}
|
441
|
+
|
442
|
+
/* definitions with backward iteration -------------------------------------- */
|
443
|
+
|
444
|
+
/**
|
445
|
+
* Move the string offset from one code point boundary to the previous one
|
446
|
+
* and get the code point between them.
|
447
|
+
* (Pre-decrementing backward iteration.)
|
448
|
+
* "Unsafe" macro, assumes well-formed UTF-16.
|
449
|
+
*
|
450
|
+
* The input offset may be the same as the string length.
|
451
|
+
* If the offset is behind a trail surrogate unit
|
452
|
+
* for a supplementary code point, then the macro will read
|
453
|
+
* the preceding lead surrogate as well.
|
454
|
+
* If the offset is behind a lead surrogate, then that itself
|
455
|
+
* will be returned as the code point.
|
456
|
+
* The result is undefined if the offset is behind a single, unpaired trail surrogate.
|
457
|
+
*
|
458
|
+
* @param s const UChar * string
|
459
|
+
* @param i string offset
|
460
|
+
* @param c output UChar32 variable
|
461
|
+
* @see U16_PREV
|
462
|
+
* @stable ICU 2.4
|
463
|
+
*/
|
464
|
+
#define U16_PREV_UNSAFE(s, i, c) { \
|
465
|
+
(c)=(s)[--(i)]; \
|
466
|
+
if(U16_IS_TRAIL(c)) { \
|
467
|
+
(c)=U16_GET_SUPPLEMENTARY((s)[--(i)], (c)); \
|
468
|
+
} \
|
469
|
+
}
|
470
|
+
|
471
|
+
/**
|
472
|
+
* Move the string offset from one code point boundary to the previous one
|
473
|
+
* and get the code point between them.
|
474
|
+
* (Pre-decrementing backward iteration.)
|
475
|
+
* "Safe" macro, handles unpaired surrogates and checks for string boundaries.
|
476
|
+
*
|
477
|
+
* The input offset may be the same as the string length.
|
478
|
+
* If the offset is behind a trail surrogate unit
|
479
|
+
* for a supplementary code point, then the macro will read
|
480
|
+
* the preceding lead surrogate as well.
|
481
|
+
* If the offset is behind a lead surrogate or behind a single, unpaired
|
482
|
+
* trail surrogate, then that itself
|
483
|
+
* will be returned as the code point.
|
484
|
+
*
|
485
|
+
* @param s const UChar * string
|
486
|
+
* @param start starting string offset (usually 0)
|
487
|
+
* @param i string offset, must be start<i
|
488
|
+
* @param c output UChar32 variable
|
489
|
+
* @see U16_PREV_UNSAFE
|
490
|
+
* @stable ICU 2.4
|
491
|
+
*/
|
492
|
+
#define U16_PREV(s, start, i, c) { \
|
493
|
+
(c)=(s)[--(i)]; \
|
494
|
+
if(U16_IS_TRAIL(c)) { \
|
495
|
+
uint16_t __c2; \
|
496
|
+
if((i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
|
497
|
+
--(i); \
|
498
|
+
(c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \
|
499
|
+
} \
|
500
|
+
} \
|
501
|
+
}
|
502
|
+
|
503
|
+
/**
|
504
|
+
* Move the string offset from one code point boundary to the previous one.
|
505
|
+
* (Pre-decrementing backward iteration.)
|
506
|
+
* The input offset may be the same as the string length.
|
507
|
+
* "Unsafe" macro, assumes well-formed UTF-16.
|
508
|
+
*
|
509
|
+
* @param s const UChar * string
|
510
|
+
* @param i string offset
|
511
|
+
* @see U16_BACK_1
|
512
|
+
* @stable ICU 2.4
|
513
|
+
*/
|
514
|
+
#define U16_BACK_1_UNSAFE(s, i) { \
|
515
|
+
if(U16_IS_TRAIL((s)[--(i)])) { \
|
516
|
+
--(i); \
|
517
|
+
} \
|
518
|
+
}
|
519
|
+
|
520
|
+
/**
|
521
|
+
* Move the string offset from one code point boundary to the previous one.
|
522
|
+
* (Pre-decrementing backward iteration.)
|
523
|
+
* The input offset may be the same as the string length.
|
524
|
+
* "Safe" macro, handles unpaired surrogates and checks for string boundaries.
|
525
|
+
*
|
526
|
+
* @param s const UChar * string
|
527
|
+
* @param start starting string offset (usually 0)
|
528
|
+
* @param i string offset, must be start<i
|
529
|
+
* @see U16_BACK_1_UNSAFE
|
530
|
+
* @stable ICU 2.4
|
531
|
+
*/
|
532
|
+
#define U16_BACK_1(s, start, i) { \
|
533
|
+
if(U16_IS_TRAIL((s)[--(i)]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
|
534
|
+
--(i); \
|
535
|
+
} \
|
536
|
+
}
|
537
|
+
|
538
|
+
/**
|
539
|
+
* Move the string offset from one code point boundary to the n-th one before it,
|
540
|
+
* i.e., move backward by n code points.
|
541
|
+
* (Pre-decrementing backward iteration.)
|
542
|
+
* The input offset may be the same as the string length.
|
543
|
+
* "Unsafe" macro, assumes well-formed UTF-16.
|
544
|
+
*
|
545
|
+
* @param s const UChar * string
|
546
|
+
* @param i string offset
|
547
|
+
* @param n number of code points to skip
|
548
|
+
* @see U16_BACK_N
|
549
|
+
* @stable ICU 2.4
|
550
|
+
*/
|
551
|
+
#define U16_BACK_N_UNSAFE(s, i, n) { \
|
552
|
+
int32_t __N=(n); \
|
553
|
+
while(__N>0) { \
|
554
|
+
U16_BACK_1_UNSAFE(s, i); \
|
555
|
+
--__N; \
|
556
|
+
} \
|
557
|
+
}
|
558
|
+
|
559
|
+
/**
|
560
|
+
* Move the string offset from one code point boundary to the n-th one before it,
|
561
|
+
* i.e., move backward by n code points.
|
562
|
+
* (Pre-decrementing backward iteration.)
|
563
|
+
* The input offset may be the same as the string length.
|
564
|
+
* "Safe" macro, handles unpaired surrogates and checks for string boundaries.
|
565
|
+
*
|
566
|
+
* @param s const UChar * string
|
567
|
+
* @param start start of string
|
568
|
+
* @param i string offset, must be start<i
|
569
|
+
* @param n number of code points to skip
|
570
|
+
* @see U16_BACK_N_UNSAFE
|
571
|
+
* @stable ICU 2.4
|
572
|
+
*/
|
573
|
+
#define U16_BACK_N(s, start, i, n) { \
|
574
|
+
int32_t __N=(n); \
|
575
|
+
while(__N>0 && (i)>(start)) { \
|
576
|
+
U16_BACK_1(s, start, i); \
|
577
|
+
--__N; \
|
578
|
+
} \
|
579
|
+
}
|
580
|
+
|
581
|
+
/**
|
582
|
+
* Adjust a random-access offset to a code point boundary after a code point.
|
583
|
+
* If the offset is behind the lead surrogate of a surrogate pair,
|
584
|
+
* then the offset is incremented.
|
585
|
+
* Otherwise, it is not modified.
|
586
|
+
* The input offset may be the same as the string length.
|
587
|
+
* "Unsafe" macro, assumes well-formed UTF-16.
|
588
|
+
*
|
589
|
+
* @param s const UChar * string
|
590
|
+
* @param i string offset
|
591
|
+
* @see U16_SET_CP_LIMIT
|
592
|
+
* @stable ICU 2.4
|
593
|
+
*/
|
594
|
+
#define U16_SET_CP_LIMIT_UNSAFE(s, i) { \
|
595
|
+
if(U16_IS_LEAD((s)[(i)-1])) { \
|
596
|
+
++(i); \
|
597
|
+
} \
|
598
|
+
}
|
599
|
+
|
600
|
+
/**
|
601
|
+
* Adjust a random-access offset to a code point boundary after a code point.
|
602
|
+
* If the offset is behind the lead surrogate of a surrogate pair,
|
603
|
+
* then the offset is incremented.
|
604
|
+
* Otherwise, it is not modified.
|
605
|
+
* The input offset may be the same as the string length.
|
606
|
+
* "Safe" macro, handles unpaired surrogates and checks for string boundaries.
|
607
|
+
*
|
608
|
+
* The length can be negative for a NUL-terminated string.
|
609
|
+
*
|
610
|
+
* @param s const UChar * string
|
611
|
+
* @param start int32_t starting string offset (usually 0)
|
612
|
+
* @param i int32_t string offset, start<=i<=length
|
613
|
+
* @param length int32_t string length
|
614
|
+
* @see U16_SET_CP_LIMIT_UNSAFE
|
615
|
+
* @stable ICU 2.4
|
616
|
+
*/
|
617
|
+
#define U16_SET_CP_LIMIT(s, start, i, length) { \
|
618
|
+
if((start)<(i) && ((i)<(length) || (length)<0) && U16_IS_LEAD((s)[(i)-1]) && U16_IS_TRAIL((s)[i])) { \
|
619
|
+
++(i); \
|
620
|
+
} \
|
621
|
+
}
|
622
|
+
|
623
|
+
#endif
|