pango 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (407) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +21 -2
  3. data/lib/2.0/pango.so +0 -0
  4. data/vendor/local/bin/derb.exe +0 -0
  5. data/vendor/local/bin/genbrk.exe +0 -0
  6. data/vendor/local/bin/genccode.exe +0 -0
  7. data/vendor/local/bin/gencfu.exe +0 -0
  8. data/vendor/local/bin/gencmn.exe +0 -0
  9. data/vendor/local/bin/gencnval.exe +0 -0
  10. data/vendor/local/bin/gendict.exe +0 -0
  11. data/vendor/local/bin/gennorm2.exe +0 -0
  12. data/vendor/local/bin/genrb.exe +0 -0
  13. data/vendor/local/bin/gensprep.exe +0 -0
  14. data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
  15. data/vendor/local/bin/hb-shape.exe +0 -0
  16. data/vendor/local/bin/hb-view.exe +0 -0
  17. data/vendor/local/bin/icu-config +820 -0
  18. data/vendor/local/bin/icuinfo.exe +0 -0
  19. data/vendor/local/bin/icupkg.exe +0 -0
  20. data/vendor/local/bin/libharfbuzz-0.dll +0 -0
  21. data/vendor/local/bin/libpango-1.0-0.dll +0 -0
  22. data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
  23. data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
  24. data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
  25. data/vendor/local/bin/libstdc++-6.dll +0 -0
  26. data/vendor/local/bin/makeconv.exe +0 -0
  27. data/vendor/local/bin/pango-querymodules.exe +0 -0
  28. data/vendor/local/bin/pango-view.exe +0 -0
  29. data/vendor/local/bin/pkgdata.exe +0 -0
  30. data/vendor/local/bin/uconv.exe +0 -0
  31. data/vendor/local/etc/pango/pango.modules +3 -3
  32. data/vendor/local/include/harfbuzz/hb-blob.h +3 -4
  33. data/vendor/local/include/harfbuzz/hb-buffer.h +22 -1
  34. data/vendor/local/include/harfbuzz/hb-common.h +23 -18
  35. data/vendor/local/include/harfbuzz/hb-icu.h +52 -0
  36. data/vendor/local/include/harfbuzz/hb-ot-font.h +41 -0
  37. data/vendor/local/include/harfbuzz/hb-ot-layout.h +11 -3
  38. data/vendor/local/include/harfbuzz/hb-ot-shape.h +10 -11
  39. data/vendor/local/include/harfbuzz/hb-ot.h +1 -0
  40. data/vendor/local/include/harfbuzz/hb-version.h +7 -7
  41. data/vendor/local/include/layout/LEFontInstance.h +550 -0
  42. data/vendor/local/include/layout/LEGlyphFilter.h +45 -0
  43. data/vendor/local/include/layout/LEGlyphStorage.h +546 -0
  44. data/vendor/local/include/layout/LEInsertionList.h +177 -0
  45. data/vendor/local/include/layout/LELanguages.h +112 -0
  46. data/vendor/local/include/layout/LEScripts.h +263 -0
  47. data/vendor/local/include/layout/LESwaps.h +100 -0
  48. data/vendor/local/include/layout/LETableReference.h +418 -0
  49. data/vendor/local/include/layout/LETypes.h +728 -0
  50. data/vendor/local/include/layout/LayoutEngine.h +518 -0
  51. data/vendor/local/include/layout/ParagraphLayout.h +747 -0
  52. data/vendor/local/include/layout/RunArrays.h +676 -0
  53. data/vendor/local/include/layout/loengine.h +225 -0
  54. data/vendor/local/include/layout/playout.h +466 -0
  55. data/vendor/local/include/layout/plruns.h +441 -0
  56. data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
  57. data/vendor/local/include/pango-1.0/pango/pango-font.h +3 -1
  58. data/vendor/local/include/pango-1.0/pango/pango-item.h +11 -2
  59. data/vendor/local/include/unicode/alphaindex.h +752 -0
  60. data/vendor/local/include/unicode/appendable.h +232 -0
  61. data/vendor/local/include/unicode/basictz.h +214 -0
  62. data/vendor/local/include/unicode/brkiter.h +655 -0
  63. data/vendor/local/include/unicode/bytestream.h +257 -0
  64. data/vendor/local/include/unicode/bytestrie.h +519 -0
  65. data/vendor/local/include/unicode/bytestriebuilder.h +181 -0
  66. data/vendor/local/include/unicode/calendar.h +2519 -0
  67. data/vendor/local/include/unicode/caniter.h +208 -0
  68. data/vendor/local/include/unicode/chariter.h +722 -0
  69. data/vendor/local/include/unicode/choicfmt.h +594 -0
  70. data/vendor/local/include/unicode/coleitr.h +404 -0
  71. data/vendor/local/include/unicode/coll.h +1267 -0
  72. data/vendor/local/include/unicode/compactdecimalformat.h +330 -0
  73. data/vendor/local/include/unicode/curramt.h +130 -0
  74. data/vendor/local/include/unicode/currpinf.h +258 -0
  75. data/vendor/local/include/unicode/currunit.h +110 -0
  76. data/vendor/local/include/unicode/datefmt.h +883 -0
  77. data/vendor/local/include/unicode/dbbi.h +40 -0
  78. data/vendor/local/include/unicode/dcfmtsym.h +482 -0
  79. data/vendor/local/include/unicode/decimfmt.h +2479 -0
  80. data/vendor/local/include/unicode/docmain.h +215 -0
  81. data/vendor/local/include/unicode/dtfmtsym.h +912 -0
  82. data/vendor/local/include/unicode/dtintrv.h +158 -0
  83. data/vendor/local/include/unicode/dtitvfmt.h +985 -0
  84. data/vendor/local/include/unicode/dtitvinf.h +514 -0
  85. data/vendor/local/include/unicode/dtptngen.h +498 -0
  86. data/vendor/local/include/unicode/dtrule.h +250 -0
  87. data/vendor/local/include/unicode/enumset.h +64 -0
  88. data/vendor/local/include/unicode/errorcode.h +137 -0
  89. data/vendor/local/include/unicode/fieldpos.h +291 -0
  90. data/vendor/local/include/unicode/filteredbrk.h +131 -0
  91. data/vendor/local/include/unicode/fmtable.h +760 -0
  92. data/vendor/local/include/unicode/format.h +305 -0
  93. data/vendor/local/include/unicode/fpositer.h +117 -0
  94. data/vendor/local/include/unicode/gender.h +111 -0
  95. data/vendor/local/include/unicode/gregocal.h +777 -0
  96. data/vendor/local/include/unicode/icudataver.h +41 -0
  97. data/vendor/local/include/unicode/icuplug.h +371 -0
  98. data/vendor/local/include/unicode/idna.h +323 -0
  99. data/vendor/local/include/unicode/listformatter.h +167 -0
  100. data/vendor/local/include/unicode/localpointer.h +304 -0
  101. data/vendor/local/include/unicode/locdspnm.h +204 -0
  102. data/vendor/local/include/unicode/locid.h +815 -0
  103. data/vendor/local/include/unicode/measfmt.h +389 -0
  104. data/vendor/local/include/unicode/measunit.h +1443 -0
  105. data/vendor/local/include/unicode/measure.h +159 -0
  106. data/vendor/local/include/unicode/messagepattern.h +943 -0
  107. data/vendor/local/include/unicode/msgfmt.h +1093 -0
  108. data/vendor/local/include/unicode/normalizer2.h +658 -0
  109. data/vendor/local/include/unicode/normlzr.h +797 -0
  110. data/vendor/local/include/unicode/numfmt.h +1187 -0
  111. data/vendor/local/include/unicode/numsys.h +208 -0
  112. data/vendor/local/include/unicode/parseerr.h +92 -0
  113. data/vendor/local/include/unicode/parsepos.h +230 -0
  114. data/vendor/local/include/unicode/platform.h +751 -0
  115. data/vendor/local/include/unicode/plurfmt.h +615 -0
  116. data/vendor/local/include/unicode/plurrule.h +501 -0
  117. data/vendor/local/include/unicode/ptypes.h +126 -0
  118. data/vendor/local/include/unicode/putil.h +181 -0
  119. data/vendor/local/include/unicode/rbbi.h +782 -0
  120. data/vendor/local/include/unicode/rbnf.h +1032 -0
  121. data/vendor/local/include/unicode/rbtz.h +362 -0
  122. data/vendor/local/include/unicode/regex.h +1857 -0
  123. data/vendor/local/include/unicode/region.h +228 -0
  124. data/vendor/local/include/unicode/reldatefmt.h +498 -0
  125. data/vendor/local/include/unicode/rep.h +261 -0
  126. data/vendor/local/include/unicode/resbund.h +490 -0
  127. data/vendor/local/include/unicode/schriter.h +187 -0
  128. data/vendor/local/include/unicode/scientificformathelper.h +139 -0
  129. data/vendor/local/include/unicode/search.h +575 -0
  130. data/vendor/local/include/unicode/selfmt.h +367 -0
  131. data/vendor/local/include/unicode/simpletz.h +928 -0
  132. data/vendor/local/include/unicode/smpdtfmt.h +1592 -0
  133. data/vendor/local/include/unicode/sortkey.h +338 -0
  134. data/vendor/local/include/unicode/std_string.h +37 -0
  135. data/vendor/local/include/unicode/strenum.h +276 -0
  136. data/vendor/local/include/unicode/stringpiece.h +224 -0
  137. data/vendor/local/include/unicode/stringtriebuilder.h +402 -0
  138. data/vendor/local/include/unicode/stsearch.h +504 -0
  139. data/vendor/local/include/unicode/symtable.h +112 -0
  140. data/vendor/local/include/unicode/tblcoll.h +873 -0
  141. data/vendor/local/include/unicode/timezone.h +948 -0
  142. data/vendor/local/include/unicode/tmunit.h +129 -0
  143. data/vendor/local/include/unicode/tmutamt.h +168 -0
  144. data/vendor/local/include/unicode/tmutfmt.h +243 -0
  145. data/vendor/local/include/unicode/translit.h +1342 -0
  146. data/vendor/local/include/unicode/tzfmt.h +1098 -0
  147. data/vendor/local/include/unicode/tznames.h +404 -0
  148. data/vendor/local/include/unicode/tzrule.h +828 -0
  149. data/vendor/local/include/unicode/tztrans.h +195 -0
  150. data/vendor/local/include/unicode/ubidi.h +2186 -0
  151. data/vendor/local/include/unicode/ubrk.h +540 -0
  152. data/vendor/local/include/unicode/ucal.h +1560 -0
  153. data/vendor/local/include/unicode/ucasemap.h +423 -0
  154. data/vendor/local/include/unicode/ucat.h +158 -0
  155. data/vendor/local/include/unicode/uchar.h +3426 -0
  156. data/vendor/local/include/unicode/ucharstrie.h +576 -0
  157. data/vendor/local/include/unicode/ucharstriebuilder.h +185 -0
  158. data/vendor/local/include/unicode/uchriter.h +381 -0
  159. data/vendor/local/include/unicode/uclean.h +258 -0
  160. data/vendor/local/include/unicode/ucnv.h +2036 -0
  161. data/vendor/local/include/unicode/ucnv_cb.h +162 -0
  162. data/vendor/local/include/unicode/ucnv_err.h +463 -0
  163. data/vendor/local/include/unicode/ucnvsel.h +187 -0
  164. data/vendor/local/include/unicode/ucol.h +1474 -0
  165. data/vendor/local/include/unicode/ucoleitr.h +266 -0
  166. data/vendor/local/include/unicode/uconfig.h +430 -0
  167. data/vendor/local/include/unicode/ucsdet.h +413 -0
  168. data/vendor/local/include/unicode/ucurr.h +424 -0
  169. data/vendor/local/include/unicode/udat.h +1536 -0
  170. data/vendor/local/include/unicode/udata.h +430 -0
  171. data/vendor/local/include/unicode/udateintervalformat.h +181 -0
  172. data/vendor/local/include/unicode/udatpg.h +588 -0
  173. data/vendor/local/include/unicode/udisplaycontext.h +150 -0
  174. data/vendor/local/include/unicode/uenum.h +206 -0
  175. data/vendor/local/include/unicode/uformattable.h +280 -0
  176. data/vendor/local/include/unicode/ugender.h +82 -0
  177. data/vendor/local/include/unicode/uidna.h +762 -0
  178. data/vendor/local/include/unicode/uiter.h +707 -0
  179. data/vendor/local/include/unicode/uldnames.h +302 -0
  180. data/vendor/local/include/unicode/uloc.h +1256 -0
  181. data/vendor/local/include/unicode/ulocdata.h +277 -0
  182. data/vendor/local/include/unicode/umachine.h +356 -0
  183. data/vendor/local/include/unicode/umisc.h +60 -0
  184. data/vendor/local/include/unicode/umsg.h +623 -0
  185. data/vendor/local/include/unicode/unifilt.h +120 -0
  186. data/vendor/local/include/unicode/unifunct.h +125 -0
  187. data/vendor/local/include/unicode/unimatch.h +163 -0
  188. data/vendor/local/include/unicode/unirepl.h +97 -0
  189. data/vendor/local/include/unicode/uniset.h +1691 -0
  190. data/vendor/local/include/unicode/unistr.h +4470 -0
  191. data/vendor/local/include/unicode/unorm.h +561 -0
  192. data/vendor/local/include/unicode/unorm2.h +528 -0
  193. data/vendor/local/include/unicode/unum.h +1328 -0
  194. data/vendor/local/include/unicode/unumsys.h +170 -0
  195. data/vendor/local/include/unicode/uobject.h +320 -0
  196. data/vendor/local/include/unicode/upluralrules.h +145 -0
  197. data/vendor/local/include/unicode/uregex.h +1591 -0
  198. data/vendor/local/include/unicode/uregion.h +248 -0
  199. data/vendor/local/include/unicode/urename.h +1784 -0
  200. data/vendor/local/include/unicode/urep.h +155 -0
  201. data/vendor/local/include/unicode/ures.h +887 -0
  202. data/vendor/local/include/unicode/uscript.h +642 -0
  203. data/vendor/local/include/unicode/usearch.h +885 -0
  204. data/vendor/local/include/unicode/uset.h +1126 -0
  205. data/vendor/local/include/unicode/usetiter.h +318 -0
  206. data/vendor/local/include/unicode/ushape.h +474 -0
  207. data/vendor/local/include/unicode/uspoof.h +1064 -0
  208. data/vendor/local/include/unicode/usprep.h +269 -0
  209. data/vendor/local/include/unicode/ustdio.h +1018 -0
  210. data/vendor/local/include/unicode/ustream.h +68 -0
  211. data/vendor/local/include/unicode/ustring.h +1700 -0
  212. data/vendor/local/include/unicode/ustringtrie.h +95 -0
  213. data/vendor/local/include/unicode/utext.h +1600 -0
  214. data/vendor/local/include/unicode/utf.h +223 -0
  215. data/vendor/local/include/unicode/utf16.h +623 -0
  216. data/vendor/local/include/unicode/utf32.h +23 -0
  217. data/vendor/local/include/unicode/utf8.h +824 -0
  218. data/vendor/local/include/unicode/utf_old.h +1169 -0
  219. data/vendor/local/include/unicode/utmscale.h +481 -0
  220. data/vendor/local/include/unicode/utrace.h +359 -0
  221. data/vendor/local/include/unicode/utrans.h +658 -0
  222. data/vendor/local/include/unicode/utypes.h +723 -0
  223. data/vendor/local/include/unicode/uvernum.h +170 -0
  224. data/vendor/local/include/unicode/uversion.h +193 -0
  225. data/vendor/local/include/unicode/vtzone.h +455 -0
  226. data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
  227. data/vendor/local/lib/girepository-1.0/PangoCairo-1.0.typelib +0 -0
  228. data/vendor/local/lib/girepository-1.0/PangoFT2-1.0.typelib +0 -0
  229. data/vendor/local/lib/icu/54.1/Makefile.inc +293 -0
  230. data/vendor/local/lib/icu/54.1/pkgdata.inc +17 -0
  231. data/vendor/local/lib/icu/Makefile.inc +293 -0
  232. data/vendor/local/lib/icu/pkgdata.inc +17 -0
  233. data/vendor/local/lib/icudt.dll +0 -0
  234. data/vendor/local/lib/icudt54.dll +0 -0
  235. data/vendor/local/lib/icuin.dll +0 -0
  236. data/vendor/local/lib/icuin54.dll +0 -0
  237. data/vendor/local/lib/icuio.dll +0 -0
  238. data/vendor/local/lib/icuio54.dll +0 -0
  239. data/vendor/local/lib/icule.dll +0 -0
  240. data/vendor/local/lib/icule54.dll +0 -0
  241. data/vendor/local/lib/iculx.dll +0 -0
  242. data/vendor/local/lib/iculx54.dll +0 -0
  243. data/vendor/local/lib/icutest.dll +0 -0
  244. data/vendor/local/lib/icutest54.dll +0 -0
  245. data/vendor/local/lib/icutu.dll +0 -0
  246. data/vendor/local/lib/icutu54.dll +0 -0
  247. data/vendor/local/lib/icuuc.dll +0 -0
  248. data/vendor/local/lib/icuuc54.dll +0 -0
  249. data/vendor/local/lib/libharfbuzz-icu.a +0 -0
  250. data/vendor/local/lib/libharfbuzz-icu.la +41 -0
  251. data/vendor/local/lib/libharfbuzz.dll.a +0 -0
  252. data/vendor/local/lib/libharfbuzz.la +3 -3
  253. data/vendor/local/lib/libicudt.dll.a +0 -0
  254. data/vendor/local/lib/libicuin.dll.a +0 -0
  255. data/vendor/local/lib/libicuio.dll.a +0 -0
  256. data/vendor/local/lib/libicule.dll.a +0 -0
  257. data/vendor/local/lib/libiculx.dll.a +0 -0
  258. data/vendor/local/lib/libicutest.dll.a +0 -0
  259. data/vendor/local/lib/libicutu.dll.a +0 -0
  260. data/vendor/local/lib/libicuuc.dll.a +0 -0
  261. data/vendor/local/lib/libpango-1.0.dll.a +0 -0
  262. data/vendor/local/lib/libpango-1.0.la +2 -2
  263. data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
  264. data/vendor/local/lib/libpangocairo-1.0.la +2 -2
  265. data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
  266. data/vendor/local/lib/libpangoft2-1.0.la +2 -2
  267. data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
  268. data/vendor/local/lib/libpangowin32-1.0.la +2 -2
  269. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll +0 -0
  270. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll.a +0 -0
  271. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.la +1 -1
  272. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll +0 -0
  273. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll.a +0 -0
  274. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.la +1 -1
  275. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll +0 -0
  276. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll.a +0 -0
  277. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.la +1 -1
  278. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll +0 -0
  279. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll.a +0 -0
  280. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.la +1 -1
  281. data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +13 -0
  282. data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
  283. data/vendor/local/lib/pkgconfig/icu-i18n.pc +38 -0
  284. data/vendor/local/lib/pkgconfig/icu-io.pc +38 -0
  285. data/vendor/local/lib/pkgconfig/icu-le.pc +38 -0
  286. data/vendor/local/lib/pkgconfig/icu-lx.pc +38 -0
  287. data/vendor/local/lib/pkgconfig/icu-uc.pc +38 -0
  288. data/vendor/local/lib/pkgconfig/pango.pc +1 -1
  289. data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
  290. data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
  291. data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
  292. data/vendor/local/share/gir-1.0/Pango-1.0.gir +3009 -462
  293. data/vendor/local/share/gir-1.0/PangoCairo-1.0.gir +64 -22
  294. data/vendor/local/share/gir-1.0/PangoFT2-1.0.gir +4 -2
  295. data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +30 -26
  296. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +343 -313
  297. data/vendor/local/share/gtk-doc/html/harfbuzz/ch01.html +5 -5
  298. data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +6 -8
  299. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +442 -247
  300. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-buffer.html +1389 -654
  301. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +954 -698
  302. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +95 -18
  303. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +36 -27
  304. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +477 -191
  305. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +1951 -1039
  306. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +123 -65
  307. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +66 -21
  308. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +11 -13
  309. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +67 -23
  310. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +66 -21
  311. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +574 -347
  312. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +104 -37
  313. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +10 -27
  314. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +744 -318
  315. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +294 -153
  316. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape.html +196 -104
  317. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +1100 -757
  318. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +51 -18
  319. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +110 -84
  320. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +11 -13
  321. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +289 -503
  322. data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +3 -3
  323. data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +161 -316
  324. data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +31 -4
  325. data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +260 -105
  326. data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +143 -105
  327. data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +150 -108
  328. data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +163 -112
  329. data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +348 -229
  330. data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +746 -514
  331. data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +9 -9
  332. data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +853 -623
  333. data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +29 -13
  334. data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +31 -33
  335. data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +10 -12
  336. data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +12 -14
  337. data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +53 -55
  338. data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +28 -30
  339. data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +29 -31
  340. data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +17 -19
  341. data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +28 -30
  342. data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +17 -19
  343. data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +9 -11
  344. data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +6 -6
  345. data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +6 -6
  346. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +11 -13
  347. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +7 -9
  348. data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +5 -5
  349. data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +49 -51
  350. data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +36 -38
  351. data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +37 -39
  352. data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +68 -70
  353. data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +568 -570
  354. data/vendor/local/share/gtk-doc/html/pango/index.html +3 -3
  355. data/vendor/local/share/gtk-doc/html/pango/index.sgml +229 -399
  356. data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +4 -4
  357. data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +345 -259
  358. data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +979 -664
  359. data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +70 -43
  360. data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +349 -229
  361. data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +236 -153
  362. data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +3100 -2159
  363. data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +659 -472
  364. data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +1952 -1384
  365. data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +3050 -2135
  366. data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +676 -463
  367. data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +223 -146
  368. data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +1589 -1199
  369. data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +1072 -842
  370. data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +406 -276
  371. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +2541 -1792
  372. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +1479 -1033
  373. data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +214 -154
  374. data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +374 -291
  375. data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +733 -498
  376. data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +893 -617
  377. data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +59 -59
  378. data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +5 -5
  379. data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +578 -782
  380. data/vendor/local/share/gtk-doc/html/pango/pango.html +4 -4
  381. data/vendor/local/share/gtk-doc/html/pango/rendering.html +4 -4
  382. data/vendor/local/share/gtk-doc/html/pango/style.css +260 -105
  383. data/vendor/local/share/gtk-doc/html/pango/tools.html +4 -4
  384. data/vendor/local/share/icu/54.1/config/mh-mingw +158 -0
  385. data/vendor/local/share/icu/54.1/install-sh +251 -0
  386. data/vendor/local/share/icu/54.1/license.html +385 -0
  387. data/vendor/local/share/icu/54.1/mkinstalldirs +43 -0
  388. data/vendor/local/share/license/harfbuzz/AUTHORS +1 -0
  389. data/vendor/local/share/man/man1/derb.1 +196 -0
  390. data/vendor/local/share/man/man1/genbrk.1 +112 -0
  391. data/vendor/local/share/man/man1/gencfu.1 +91 -0
  392. data/vendor/local/share/man/man1/gencnval.1 +91 -0
  393. data/vendor/local/share/man/man1/gendict.1 +131 -0
  394. data/vendor/local/share/man/man1/genrb.1 +146 -0
  395. data/vendor/local/share/man/man1/icu-config.1 +288 -0
  396. data/vendor/local/share/man/man1/makeconv.1 +112 -0
  397. data/vendor/local/share/man/man1/pango-querymodules.1 +2 -2
  398. data/vendor/local/share/man/man1/pango-view.1 +1 -118
  399. data/vendor/local/share/man/man1/pkgdata.1 +258 -0
  400. data/vendor/local/share/man/man1/uconv.1 +443 -0
  401. data/vendor/local/share/man/man8/genccode.8 +106 -0
  402. data/vendor/local/share/man/man8/gencmn.8 +129 -0
  403. data/vendor/local/share/man/man8/gensprep.8 +102 -0
  404. data/vendor/local/share/man/man8/icupkg.8 +204 -0
  405. metadata +266 -14
  406. data/lib/1.9/pango.so +0 -0
  407. data/lib/2.1/pango.so +0 -0
@@ -0,0 +1,232 @@
1
+ /*
2
+ *******************************************************************************
3
+ * Copyright (C) 2011-2012, International Business Machines
4
+ * Corporation and others. All Rights Reserved.
5
+ *******************************************************************************
6
+ * file name: appendable.h
7
+ * encoding: US-ASCII
8
+ * tab size: 8 (not used)
9
+ * indentation:4
10
+ *
11
+ * created on: 2010dec07
12
+ * created by: Markus W. Scherer
13
+ */
14
+
15
+ #ifndef __APPENDABLE_H__
16
+ #define __APPENDABLE_H__
17
+
18
+ /**
19
+ * \file
20
+ * \brief C++ API: Appendable class: Sink for Unicode code points and 16-bit code units (UChars).
21
+ */
22
+
23
+ #include "unicode/utypes.h"
24
+ #include "unicode/uobject.h"
25
+
26
+ U_NAMESPACE_BEGIN
27
+
28
+ class UnicodeString;
29
+
30
+ /**
31
+ * Base class for objects to which Unicode characters and strings can be appended.
32
+ * Combines elements of Java Appendable and ICU4C ByteSink.
33
+ *
34
+ * This class can be used in APIs where it does not matter whether the actual destination is
35
+ * a UnicodeString, a UChar[] array, a UnicodeSet, or any other object
36
+ * that receives and processes characters and/or strings.
37
+ *
38
+ * Implementation classes must implement at least appendCodeUnit(UChar).
39
+ * The base class provides default implementations for the other methods.
40
+ *
41
+ * The methods do not take UErrorCode parameters.
42
+ * If an error occurs (e.g., out-of-memory),
43
+ * in addition to returning FALSE from failing operations,
44
+ * the implementation must prevent unexpected behavior (e.g., crashes)
45
+ * from further calls and should make the error condition available separately
46
+ * (e.g., store a UErrorCode, make/keep a UnicodeString bogus).
47
+ * @stable ICU 4.8
48
+ */
49
+ class U_COMMON_API Appendable : public UObject {
50
+ public:
51
+ /**
52
+ * Destructor.
53
+ * @stable ICU 4.8
54
+ */
55
+ ~Appendable();
56
+
57
+ /**
58
+ * Appends a 16-bit code unit.
59
+ * @param c code unit
60
+ * @return TRUE if the operation succeeded
61
+ * @stable ICU 4.8
62
+ */
63
+ virtual UBool appendCodeUnit(UChar c) = 0;
64
+
65
+ /**
66
+ * Appends a code point.
67
+ * The default implementation calls appendCodeUnit(UChar) once or twice.
68
+ * @param c code point 0..0x10ffff
69
+ * @return TRUE if the operation succeeded
70
+ * @stable ICU 4.8
71
+ */
72
+ virtual UBool appendCodePoint(UChar32 c);
73
+
74
+ /**
75
+ * Appends a string.
76
+ * The default implementation calls appendCodeUnit(UChar) for each code unit.
77
+ * @param s string, must not be NULL if length!=0
78
+ * @param length string length, or -1 if NUL-terminated
79
+ * @return TRUE if the operation succeeded
80
+ * @stable ICU 4.8
81
+ */
82
+ virtual UBool appendString(const UChar *s, int32_t length);
83
+
84
+ /**
85
+ * Tells the object that the caller is going to append roughly
86
+ * appendCapacity UChars. A subclass might use this to pre-allocate
87
+ * a larger buffer if necessary.
88
+ * The default implementation does nothing. (It always returns TRUE.)
89
+ * @param appendCapacity estimated number of UChars that will be appended
90
+ * @return TRUE if the operation succeeded
91
+ * @stable ICU 4.8
92
+ */
93
+ virtual UBool reserveAppendCapacity(int32_t appendCapacity);
94
+
95
+ /**
96
+ * Returns a writable buffer for appending and writes the buffer's capacity to
97
+ * *resultCapacity. Guarantees *resultCapacity>=minCapacity.
98
+ * May return a pointer to the caller-owned scratch buffer which must have
99
+ * scratchCapacity>=minCapacity.
100
+ * The returned buffer is only valid until the next operation
101
+ * on this Appendable.
102
+ *
103
+ * After writing at most *resultCapacity UChars, call appendString() with the
104
+ * pointer returned from this function and the number of UChars written.
105
+ * Many appendString() implementations will avoid copying UChars if this function
106
+ * returned an internal buffer.
107
+ *
108
+ * Partial usage example:
109
+ * \code
110
+ * int32_t capacity;
111
+ * UChar* buffer = app.getAppendBuffer(..., &capacity);
112
+ * ... Write n UChars into buffer, with n <= capacity.
113
+ * app.appendString(buffer, n);
114
+ * \endcode
115
+ * In many implementations, that call to append will avoid copying UChars.
116
+ *
117
+ * If the Appendable allocates or reallocates an internal buffer, it should use
118
+ * the desiredCapacityHint if appropriate.
119
+ * If a caller cannot provide a reasonable guess at the desired capacity,
120
+ * it should pass desiredCapacityHint=0.
121
+ *
122
+ * If a non-scratch buffer is returned, the caller may only pass
123
+ * a prefix to it to appendString().
124
+ * That is, it is not correct to pass an interior pointer to appendString().
125
+ *
126
+ * The default implementation always returns the scratch buffer.
127
+ *
128
+ * @param minCapacity required minimum capacity of the returned buffer;
129
+ * must be non-negative
130
+ * @param desiredCapacityHint desired capacity of the returned buffer;
131
+ * must be non-negative
132
+ * @param scratch default caller-owned buffer
133
+ * @param scratchCapacity capacity of the scratch buffer
134
+ * @param resultCapacity pointer to an integer which will be set to the
135
+ * capacity of the returned buffer
136
+ * @return a buffer with *resultCapacity>=minCapacity
137
+ * @stable ICU 4.8
138
+ */
139
+ virtual UChar *getAppendBuffer(int32_t minCapacity,
140
+ int32_t desiredCapacityHint,
141
+ UChar *scratch, int32_t scratchCapacity,
142
+ int32_t *resultCapacity);
143
+ };
144
+
145
+ /**
146
+ * An Appendable implementation which writes to a UnicodeString.
147
+ *
148
+ * This class is not intended for public subclassing.
149
+ * @stable ICU 4.8
150
+ */
151
+ class U_COMMON_API UnicodeStringAppendable : public Appendable {
152
+ public:
153
+ /**
154
+ * Aliases the UnicodeString (keeps its reference) for writing.
155
+ * @param s The UnicodeString to which this Appendable will write.
156
+ * @stable ICU 4.8
157
+ */
158
+ explicit UnicodeStringAppendable(UnicodeString &s) : str(s) {}
159
+
160
+ /**
161
+ * Destructor.
162
+ * @stable ICU 4.8
163
+ */
164
+ ~UnicodeStringAppendable();
165
+
166
+ /**
167
+ * Appends a 16-bit code unit to the string.
168
+ * @param c code unit
169
+ * @return TRUE if the operation succeeded
170
+ * @stable ICU 4.8
171
+ */
172
+ virtual UBool appendCodeUnit(UChar c);
173
+
174
+ /**
175
+ * Appends a code point to the string.
176
+ * @param c code point 0..0x10ffff
177
+ * @return TRUE if the operation succeeded
178
+ * @stable ICU 4.8
179
+ */
180
+ virtual UBool appendCodePoint(UChar32 c);
181
+
182
+ /**
183
+ * Appends a string to the UnicodeString.
184
+ * @param s string, must not be NULL if length!=0
185
+ * @param length string length, or -1 if NUL-terminated
186
+ * @return TRUE if the operation succeeded
187
+ * @stable ICU 4.8
188
+ */
189
+ virtual UBool appendString(const UChar *s, int32_t length);
190
+
191
+ /**
192
+ * Tells the UnicodeString that the caller is going to append roughly
193
+ * appendCapacity UChars.
194
+ * @param appendCapacity estimated number of UChars that will be appended
195
+ * @return TRUE if the operation succeeded
196
+ * @stable ICU 4.8
197
+ */
198
+ virtual UBool reserveAppendCapacity(int32_t appendCapacity);
199
+
200
+ /**
201
+ * Returns a writable buffer for appending and writes the buffer's capacity to
202
+ * *resultCapacity. Guarantees *resultCapacity>=minCapacity.
203
+ * May return a pointer to the caller-owned scratch buffer which must have
204
+ * scratchCapacity>=minCapacity.
205
+ * The returned buffer is only valid until the next write operation
206
+ * on the UnicodeString.
207
+ *
208
+ * For details see Appendable::getAppendBuffer().
209
+ *
210
+ * @param minCapacity required minimum capacity of the returned buffer;
211
+ * must be non-negative
212
+ * @param desiredCapacityHint desired capacity of the returned buffer;
213
+ * must be non-negative
214
+ * @param scratch default caller-owned buffer
215
+ * @param scratchCapacity capacity of the scratch buffer
216
+ * @param resultCapacity pointer to an integer which will be set to the
217
+ * capacity of the returned buffer
218
+ * @return a buffer with *resultCapacity>=minCapacity
219
+ * @stable ICU 4.8
220
+ */
221
+ virtual UChar *getAppendBuffer(int32_t minCapacity,
222
+ int32_t desiredCapacityHint,
223
+ UChar *scratch, int32_t scratchCapacity,
224
+ int32_t *resultCapacity);
225
+
226
+ private:
227
+ UnicodeString &str;
228
+ };
229
+
230
+ U_NAMESPACE_END
231
+
232
+ #endif // __APPENDABLE_H__
@@ -0,0 +1,214 @@
1
+ /*
2
+ *******************************************************************************
3
+ * Copyright (C) 2007-2013, International Business Machines Corporation and
4
+ * others. All Rights Reserved.
5
+ *******************************************************************************
6
+ */
7
+ #ifndef BASICTZ_H
8
+ #define BASICTZ_H
9
+
10
+ /**
11
+ * \file
12
+ * \brief C++ API: ICU TimeZone base class
13
+ */
14
+
15
+ #include "unicode/utypes.h"
16
+
17
+ #if !UCONFIG_NO_FORMATTING
18
+
19
+ #include "unicode/timezone.h"
20
+ #include "unicode/tzrule.h"
21
+ #include "unicode/tztrans.h"
22
+
23
+ U_NAMESPACE_BEGIN
24
+
25
+ // forward declarations
26
+ class UVector;
27
+
28
+ /**
29
+ * <code>BasicTimeZone</code> is an abstract class extending <code>TimeZone</code>.
30
+ * This class provides some additional methods to access time zone transitions and rules.
31
+ * All ICU <code>TimeZone</code> concrete subclasses extend this class.
32
+ * @stable ICU 3.8
33
+ */
34
+ class U_I18N_API BasicTimeZone: public TimeZone {
35
+ public:
36
+ /**
37
+ * Destructor.
38
+ * @stable ICU 3.8
39
+ */
40
+ virtual ~BasicTimeZone();
41
+
42
+ /**
43
+ * Gets the first time zone transition after the base time.
44
+ * @param base The base time.
45
+ * @param inclusive Whether the base time is inclusive or not.
46
+ * @param result Receives the first transition after the base time.
47
+ * @return TRUE if the transition is found.
48
+ * @stable ICU 3.8
49
+ */
50
+ virtual UBool getNextTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const = 0;
51
+
52
+ /**
53
+ * Gets the most recent time zone transition before the base time.
54
+ * @param base The base time.
55
+ * @param inclusive Whether the base time is inclusive or not.
56
+ * @param result Receives the most recent transition before the base time.
57
+ * @return TRUE if the transition is found.
58
+ * @stable ICU 3.8
59
+ */
60
+ virtual UBool getPreviousTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const = 0;
61
+
62
+ /**
63
+ * Checks if the time zone has equivalent transitions in the time range.
64
+ * This method returns true when all of transition times, from/to standard
65
+ * offsets and DST savings used by this time zone match the other in the
66
+ * time range.
67
+ * @param tz The <code>BasicTimeZone</code> object to be compared with.
68
+ * @param start The start time of the evaluated time range (inclusive)
69
+ * @param end The end time of the evaluated time range (inclusive)
70
+ * @param ignoreDstAmount
71
+ * When true, any transitions with only daylight saving amount
72
+ * changes will be ignored, except either of them is zero.
73
+ * For example, a transition from rawoffset 3:00/dstsavings 1:00
74
+ * to rawoffset 2:00/dstsavings 2:00 is excluded from the comparison,
75
+ * but a transtion from rawoffset 2:00/dstsavings 1:00 to
76
+ * rawoffset 3:00/dstsavings 0:00 is included.
77
+ * @param ec Output param to filled in with a success or an error.
78
+ * @return true if the other time zone has the equivalent transitions in the
79
+ * time range.
80
+ * @stable ICU 3.8
81
+ */
82
+ virtual UBool hasEquivalentTransitions(const BasicTimeZone& tz, UDate start, UDate end,
83
+ UBool ignoreDstAmount, UErrorCode& ec) const;
84
+
85
+ /**
86
+ * Returns the number of <code>TimeZoneRule</code>s which represents time transitions,
87
+ * for this time zone, that is, all <code>TimeZoneRule</code>s for this time zone except
88
+ * <code>InitialTimeZoneRule</code>. The return value range is 0 or any positive value.
89
+ * @param status Receives error status code.
90
+ * @return The number of <code>TimeZoneRule</code>s representing time transitions.
91
+ * @stable ICU 3.8
92
+ */
93
+ virtual int32_t countTransitionRules(UErrorCode& status) const = 0;
94
+
95
+ /**
96
+ * Gets the <code>InitialTimeZoneRule</code> and the set of <code>TimeZoneRule</code>
97
+ * which represent time transitions for this time zone. On successful return,
98
+ * the argument initial points to non-NULL <code>InitialTimeZoneRule</code> and
99
+ * the array trsrules is filled with 0 or multiple <code>TimeZoneRule</code>
100
+ * instances up to the size specified by trscount. The results are referencing the
101
+ * rule instance held by this time zone instance. Therefore, after this time zone
102
+ * is destructed, they are no longer available.
103
+ * @param initial Receives the initial timezone rule
104
+ * @param trsrules Receives the timezone transition rules
105
+ * @param trscount On input, specify the size of the array 'transitions' receiving
106
+ * the timezone transition rules. On output, actual number of
107
+ * rules filled in the array will be set.
108
+ * @param status Receives error status code.
109
+ * @stable ICU 3.8
110
+ */
111
+ virtual void getTimeZoneRules(const InitialTimeZoneRule*& initial,
112
+ const TimeZoneRule* trsrules[], int32_t& trscount, UErrorCode& status) const = 0;
113
+
114
+ /**
115
+ * Gets the set of time zone rules valid at the specified time. Some known external time zone
116
+ * implementations are not capable to handle historic time zone rule changes. Also some
117
+ * implementations can only handle certain type of rule definitions.
118
+ * If this time zone does not use any daylight saving time within about 1 year from the specified
119
+ * time, only the <code>InitialTimeZone</code> is returned. Otherwise, the rule for standard
120
+ * time and daylight saving time transitions are returned in addition to the
121
+ * <code>InitialTimeZoneRule</code>. The standard and daylight saving time transition rules are
122
+ * represented by <code>AnnualTimeZoneRule</code> with <code>DateTimeRule::DOW</code> for its date
123
+ * rule and <code>DateTimeRule::WALL_TIME</code> for its time rule. Because daylight saving time
124
+ * rule is changing time to time in many time zones and also mapping a transition time rule to
125
+ * different type is lossy transformation, the set of rules returned by this method may be valid
126
+ * for short period of time.
127
+ * The time zone rule objects returned by this method is owned by the caller, so the caller is
128
+ * responsible for deleting them after use.
129
+ * @param date The date used for extracting time zone rules.
130
+ * @param initial Receives the <code>InitialTimeZone</code>, always not NULL.
131
+ * @param std Receives the <code>AnnualTimeZoneRule</code> for standard time transitions.
132
+ * When this time time zone does not observe daylight saving times around the
133
+ * specified date, NULL is set.
134
+ * @param dst Receives the <code>AnnualTimeZoneRule</code> for daylight saving time
135
+ * transitions. When this time zone does not observer daylight saving times
136
+ * around the specified date, NULL is set.
137
+ * @param status Receives error status code.
138
+ * @stable ICU 3.8
139
+ */
140
+ virtual void getSimpleRulesNear(UDate date, InitialTimeZoneRule*& initial,
141
+ AnnualTimeZoneRule*& std, AnnualTimeZoneRule*& dst, UErrorCode& status) const;
142
+
143
+
144
+ #ifndef U_HIDE_INTERNAL_API
145
+ /**
146
+ * The time type option bit flags used by getOffsetFromLocal
147
+ * @internal
148
+ */
149
+ enum {
150
+ kStandard = 0x01,
151
+ kDaylight = 0x03,
152
+ kFormer = 0x04,
153
+ kLatter = 0x0C
154
+ };
155
+ #endif /* U_HIDE_INTERNAL_API */
156
+
157
+ /**
158
+ * Get time zone offsets from local wall time.
159
+ * @internal
160
+ */
161
+ virtual void getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt,
162
+ int32_t& rawOffset, int32_t& dstOffset, UErrorCode& status) const;
163
+
164
+ protected:
165
+
166
+ #ifndef U_HIDE_INTERNAL_API
167
+ /**
168
+ * The time type option bit masks used by getOffsetFromLocal
169
+ * @internal
170
+ */
171
+ enum {
172
+ kStdDstMask = kDaylight,
173
+ kFormerLatterMask = kLatter
174
+ };
175
+ #endif /* U_HIDE_INTERNAL_API */
176
+
177
+ /**
178
+ * Default constructor.
179
+ * @stable ICU 3.8
180
+ */
181
+ BasicTimeZone();
182
+
183
+ /**
184
+ * Construct a timezone with a given ID.
185
+ * @param id a system time zone ID
186
+ * @stable ICU 3.8
187
+ */
188
+ BasicTimeZone(const UnicodeString &id);
189
+
190
+ /**
191
+ * Copy constructor.
192
+ * @param source the object to be copied.
193
+ * @stable ICU 3.8
194
+ */
195
+ BasicTimeZone(const BasicTimeZone& source);
196
+
197
+ /**
198
+ * Gets the set of TimeZoneRule instances applicable to the specified time and after.
199
+ * @param start The start date used for extracting time zone rules
200
+ * @param initial Receives the InitialTimeZone, always not NULL
201
+ * @param transitionRules Receives the transition rules, could be NULL
202
+ * @param status Receives error status code
203
+ */
204
+ void getTimeZoneRulesAfter(UDate start, InitialTimeZoneRule*& initial, UVector*& transitionRules,
205
+ UErrorCode& status) const;
206
+ };
207
+
208
+ U_NAMESPACE_END
209
+
210
+ #endif /* #if !UCONFIG_NO_FORMATTING */
211
+
212
+ #endif // BASICTZ_H
213
+
214
+ //eof
@@ -0,0 +1,655 @@
1
+ /*
2
+ ********************************************************************************
3
+ * Copyright (C) 1997-2014, International Business Machines
4
+ * Corporation and others. All Rights Reserved.
5
+ ********************************************************************************
6
+ *
7
+ * File brkiter.h
8
+ *
9
+ * Modification History:
10
+ *
11
+ * Date Name Description
12
+ * 02/18/97 aliu Added typedef for TextCount. Made DONE const.
13
+ * 05/07/97 aliu Fixed DLL declaration.
14
+ * 07/09/97 jfitz Renamed BreakIterator and interface synced with JDK
15
+ * 08/11/98 helena Sync-up JDK1.2.
16
+ * 01/13/2000 helena Added UErrorCode parameter to createXXXInstance methods.
17
+ ********************************************************************************
18
+ */
19
+
20
+ #ifndef BRKITER_H
21
+ #define BRKITER_H
22
+
23
+ #include "unicode/utypes.h"
24
+
25
+ /**
26
+ * \file
27
+ * \brief C++ API: Break Iterator.
28
+ */
29
+
30
+ #if UCONFIG_NO_BREAK_ITERATION
31
+
32
+ U_NAMESPACE_BEGIN
33
+
34
+ /*
35
+ * Allow the declaration of APIs with pointers to BreakIterator
36
+ * even when break iteration is removed from the build.
37
+ */
38
+ class BreakIterator;
39
+
40
+ U_NAMESPACE_END
41
+
42
+ #else
43
+
44
+ #include "unicode/uobject.h"
45
+ #include "unicode/unistr.h"
46
+ #include "unicode/chariter.h"
47
+ #include "unicode/locid.h"
48
+ #include "unicode/ubrk.h"
49
+ #include "unicode/strenum.h"
50
+ #include "unicode/utext.h"
51
+ #include "unicode/umisc.h"
52
+
53
+ U_NAMESPACE_BEGIN
54
+
55
+ /**
56
+ * The BreakIterator class implements methods for finding the location
57
+ * of boundaries in text. BreakIterator is an abstract base class.
58
+ * Instances of BreakIterator maintain a current position and scan over
59
+ * text returning the index of characters where boundaries occur.
60
+ * <p>
61
+ * Line boundary analysis determines where a text string can be broken
62
+ * when line-wrapping. The mechanism correctly handles punctuation and
63
+ * hyphenated words.
64
+ * <p>
65
+ * Sentence boundary analysis allows selection with correct
66
+ * interpretation of periods within numbers and abbreviations, and
67
+ * trailing punctuation marks such as quotation marks and parentheses.
68
+ * <p>
69
+ * Word boundary analysis is used by search and replace functions, as
70
+ * well as within text editing applications that allow the user to
71
+ * select words with a double click. Word selection provides correct
72
+ * interpretation of punctuation marks within and following
73
+ * words. Characters that are not part of a word, such as symbols or
74
+ * punctuation marks, have word-breaks on both sides.
75
+ * <p>
76
+ * Character boundary analysis allows users to interact with
77
+ * characters as they expect to, for example, when moving the cursor
78
+ * through a text string. Character boundary analysis provides correct
79
+ * navigation of through character strings, regardless of how the
80
+ * character is stored. For example, an accented character might be
81
+ * stored as a base character and a diacritical mark. What users
82
+ * consider to be a character can differ between languages.
83
+ * <p>
84
+ * The text boundary positions are found according to the rules
85
+ * described in Unicode Standard Annex #29, Text Boundaries, and
86
+ * Unicode Standard Annex #14, Line Breaking Properties. These
87
+ * are available at http://www.unicode.org/reports/tr14/ and
88
+ * http://www.unicode.org/reports/tr29/.
89
+ * <p>
90
+ * In addition to the C++ API defined in this header file, a
91
+ * plain C API with equivalent functionality is defined in the
92
+ * file ubrk.h
93
+ * <p>
94
+ * Code snippets illustrating the use of the Break Iterator APIs
95
+ * are available in the ICU User Guide,
96
+ * http://icu-project.org/userguide/boundaryAnalysis.html
97
+ * and in the sample program icu/source/samples/break/break.cpp
98
+ *
99
+ */
100
+ class U_COMMON_API BreakIterator : public UObject {
101
+ public:
102
+ /**
103
+ * destructor
104
+ * @stable ICU 2.0
105
+ */
106
+ virtual ~BreakIterator();
107
+
108
+ /**
109
+ * Return true if another object is semantically equal to this
110
+ * one. The other object should be an instance of the same subclass of
111
+ * BreakIterator. Objects of different subclasses are considered
112
+ * unequal.
113
+ * <P>
114
+ * Return true if this BreakIterator is at the same position in the
115
+ * same text, and is the same class and type (word, line, etc.) of
116
+ * BreakIterator, as the argument. Text is considered the same if
117
+ * it contains the same characters, it need not be the same
118
+ * object, and styles are not considered.
119
+ * @stable ICU 2.0
120
+ */
121
+ virtual UBool operator==(const BreakIterator&) const = 0;
122
+
123
+ /**
124
+ * Returns the complement of the result of operator==
125
+ * @param rhs The BreakIterator to be compared for inequality
126
+ * @return the complement of the result of operator==
127
+ * @stable ICU 2.0
128
+ */
129
+ UBool operator!=(const BreakIterator& rhs) const { return !operator==(rhs); }
130
+
131
+ /**
132
+ * Return a polymorphic copy of this object. This is an abstract
133
+ * method which subclasses implement.
134
+ * @stable ICU 2.0
135
+ */
136
+ virtual BreakIterator* clone(void) const = 0;
137
+
138
+ /**
139
+ * Return a polymorphic class ID for this object. Different subclasses
140
+ * will return distinct unequal values.
141
+ * @stable ICU 2.0
142
+ */
143
+ virtual UClassID getDynamicClassID(void) const = 0;
144
+
145
+ /**
146
+ * Return a CharacterIterator over the text being analyzed.
147
+ * @stable ICU 2.0
148
+ */
149
+ virtual CharacterIterator& getText(void) const = 0;
150
+
151
+
152
+ /**
153
+ * Get a UText for the text being analyzed.
154
+ * The returned UText is a shallow clone of the UText used internally
155
+ * by the break iterator implementation. It can safely be used to
156
+ * access the text without impacting any break iterator operations,
157
+ * but the underlying text itself must not be altered.
158
+ *
159
+ * @param fillIn A UText to be filled in. If NULL, a new UText will be
160
+ * allocated to hold the result.
161
+ * @param status receives any error codes.
162
+ * @return The current UText for this break iterator. If an input
163
+ * UText was provided, it will always be returned.
164
+ * @stable ICU 3.4
165
+ */
166
+ virtual UText *getUText(UText *fillIn, UErrorCode &status) const = 0;
167
+
168
+ /**
169
+ * Change the text over which this operates. The text boundary is
170
+ * reset to the start.
171
+ * @param text The UnicodeString used to change the text.
172
+ * @stable ICU 2.0
173
+ */
174
+ virtual void setText(const UnicodeString &text) = 0;
175
+
176
+ /**
177
+ * Reset the break iterator to operate over the text represented by
178
+ * the UText. The iterator position is reset to the start.
179
+ *
180
+ * This function makes a shallow clone of the supplied UText. This means
181
+ * that the caller is free to immediately close or otherwise reuse the
182
+ * Utext that was passed as a parameter, but that the underlying text itself
183
+ * must not be altered while being referenced by the break iterator.
184
+ *
185
+ * All index positions returned by break iterator functions are
186
+ * native indices from the UText. For example, when breaking UTF-8
187
+ * encoded text, the break positions returned by next(), previous(), etc.
188
+ * will be UTF-8 string indices, not UTF-16 positions.
189
+ *
190
+ * @param text The UText used to change the text.
191
+ * @param status receives any error codes.
192
+ * @stable ICU 3.4
193
+ */
194
+ virtual void setText(UText *text, UErrorCode &status) = 0;
195
+
196
+ /**
197
+ * Change the text over which this operates. The text boundary is
198
+ * reset to the start.
199
+ * Note that setText(UText *) provides similar functionality to this function,
200
+ * and is more efficient.
201
+ * @param it The CharacterIterator used to change the text.
202
+ * @stable ICU 2.0
203
+ */
204
+ virtual void adoptText(CharacterIterator* it) = 0;
205
+
206
+ enum {
207
+ /**
208
+ * DONE is returned by previous() and next() after all valid
209
+ * boundaries have been returned.
210
+ * @stable ICU 2.0
211
+ */
212
+ DONE = (int32_t)-1
213
+ };
214
+
215
+ /**
216
+ * Sets the current iteration position to the beginning of the text, position zero.
217
+ * @return The offset of the beginning of the text, zero.
218
+ * @stable ICU 2.0
219
+ */
220
+ virtual int32_t first(void) = 0;
221
+
222
+ /**
223
+ * Set the iterator position to the index immediately BEYOND the last character in the text being scanned.
224
+ * @return The index immediately BEYOND the last character in the text being scanned.
225
+ * @stable ICU 2.0
226
+ */
227
+ virtual int32_t last(void) = 0;
228
+
229
+ /**
230
+ * Set the iterator position to the boundary preceding the current boundary.
231
+ * @return The character index of the previous text boundary or DONE if all
232
+ * boundaries have been returned.
233
+ * @stable ICU 2.0
234
+ */
235
+ virtual int32_t previous(void) = 0;
236
+
237
+ /**
238
+ * Advance the iterator to the boundary following the current boundary.
239
+ * @return The character index of the next text boundary or DONE if all
240
+ * boundaries have been returned.
241
+ * @stable ICU 2.0
242
+ */
243
+ virtual int32_t next(void) = 0;
244
+
245
+ /**
246
+ * Return character index of the current interator position within the text.
247
+ * @return The boundary most recently returned.
248
+ * @stable ICU 2.0
249
+ */
250
+ virtual int32_t current(void) const = 0;
251
+
252
+ /**
253
+ * Advance the iterator to the first boundary following the specified offset.
254
+ * The value returned is always greater than the offset or
255
+ * the value BreakIterator.DONE
256
+ * @param offset the offset to begin scanning.
257
+ * @return The first boundary after the specified offset.
258
+ * @stable ICU 2.0
259
+ */
260
+ virtual int32_t following(int32_t offset) = 0;
261
+
262
+ /**
263
+ * Set the iterator position to the first boundary preceding the specified offset.
264
+ * The value returned is always smaller than the offset or
265
+ * the value BreakIterator.DONE
266
+ * @param offset the offset to begin scanning.
267
+ * @return The first boundary before the specified offset.
268
+ * @stable ICU 2.0
269
+ */
270
+ virtual int32_t preceding(int32_t offset) = 0;
271
+
272
+ /**
273
+ * Return true if the specfied position is a boundary position.
274
+ * As a side effect, the current position of the iterator is set
275
+ * to the first boundary position at or following the specified offset.
276
+ * @param offset the offset to check.
277
+ * @return True if "offset" is a boundary position.
278
+ * @stable ICU 2.0
279
+ */
280
+ virtual UBool isBoundary(int32_t offset) = 0;
281
+
282
+ /**
283
+ * Set the iterator position to the nth boundary from the current boundary
284
+ * @param n the number of boundaries to move by. A value of 0
285
+ * does nothing. Negative values move to previous boundaries
286
+ * and positive values move to later boundaries.
287
+ * @return The new iterator position, or
288
+ * DONE if there are fewer than |n| boundaries in the specfied direction.
289
+ * @stable ICU 2.0
290
+ */
291
+ virtual int32_t next(int32_t n) = 0;
292
+
293
+ /**
294
+ * For RuleBasedBreakIterators, return the status tag from the
295
+ * break rule that determined the most recently
296
+ * returned break position.
297
+ * <p>
298
+ * For break iterator types that do not support a rule status,
299
+ * a default value of 0 is returned.
300
+ * <p>
301
+ * @return the status from the break rule that determined the most recently
302
+ * returned break position.
303
+ * @see RuleBaseBreakIterator::getRuleStatus()
304
+ * @see UWordBreak
305
+ * @stable ICU 52
306
+ */
307
+ virtual int32_t getRuleStatus() const;
308
+
309
+ /**
310
+ * For RuleBasedBreakIterators, get the status (tag) values from the break rule(s)
311
+ * that determined the most recently returned break position.
312
+ * <p>
313
+ * For break iterator types that do not support rule status,
314
+ * no values are returned.
315
+ * <p>
316
+ * The returned status value(s) are stored into an array provided by the caller.
317
+ * The values are stored in sorted (ascending) order.
318
+ * If the capacity of the output array is insufficient to hold the data,
319
+ * the output will be truncated to the available length, and a
320
+ * U_BUFFER_OVERFLOW_ERROR will be signaled.
321
+ * <p>
322
+ * @see RuleBaseBreakIterator::getRuleStatusVec
323
+ *
324
+ * @param fillInVec an array to be filled in with the status values.
325
+ * @param capacity the length of the supplied vector. A length of zero causes
326
+ * the function to return the number of status values, in the
327
+ * normal way, without attemtping to store any values.
328
+ * @param status receives error codes.
329
+ * @return The number of rule status values from rules that determined
330
+ * the most recent boundary returned by the break iterator.
331
+ * In the event of a U_BUFFER_OVERFLOW_ERROR, the return value
332
+ * is the total number of status values that were available,
333
+ * not the reduced number that were actually returned.
334
+ * @see getRuleStatus
335
+ * @stable ICU 52
336
+ */
337
+ virtual int32_t getRuleStatusVec(int32_t *fillInVec, int32_t capacity, UErrorCode &status);
338
+
339
+ /**
340
+ * Create BreakIterator for word-breaks using the given locale.
341
+ * Returns an instance of a BreakIterator implementing word breaks.
342
+ * WordBreak is useful for word selection (ex. double click)
343
+ * @param where the locale.
344
+ * @param status the error code
345
+ * @return A BreakIterator for word-breaks. The UErrorCode& status
346
+ * parameter is used to return status information to the user.
347
+ * To check whether the construction succeeded or not, you should check
348
+ * the value of U_SUCCESS(err). If you wish more detailed information, you
349
+ * can check for informational error results which still indicate success.
350
+ * U_USING_FALLBACK_WARNING indicates that a fall back locale was used. For
351
+ * example, 'de_CH' was requested, but nothing was found there, so 'de' was
352
+ * used. U_USING_DEFAULT_WARNING indicates that the default locale data was
353
+ * used; neither the requested locale nor any of its fall back locales
354
+ * could be found.
355
+ * The caller owns the returned object and is responsible for deleting it.
356
+ * @stable ICU 2.0
357
+ */
358
+ static BreakIterator* U_EXPORT2
359
+ createWordInstance(const Locale& where, UErrorCode& status);
360
+
361
+ /**
362
+ * Create BreakIterator for line-breaks using specified locale.
363
+ * Returns an instance of a BreakIterator implementing line breaks. Line
364
+ * breaks are logically possible line breaks, actual line breaks are
365
+ * usually determined based on display width.
366
+ * LineBreak is useful for word wrapping text.
367
+ * @param where the locale.
368
+ * @param status The error code.
369
+ * @return A BreakIterator for line-breaks. The UErrorCode& status
370
+ * parameter is used to return status information to the user.
371
+ * To check whether the construction succeeded or not, you should check
372
+ * the value of U_SUCCESS(err). If you wish more detailed information, you
373
+ * can check for informational error results which still indicate success.
374
+ * U_USING_FALLBACK_WARNING indicates that a fall back locale was used. For
375
+ * example, 'de_CH' was requested, but nothing was found there, so 'de' was
376
+ * used. U_USING_DEFAULT_WARNING indicates that the default locale data was
377
+ * used; neither the requested locale nor any of its fall back locales
378
+ * could be found.
379
+ * The caller owns the returned object and is responsible for deleting it.
380
+ * @stable ICU 2.0
381
+ */
382
+ static BreakIterator* U_EXPORT2
383
+ createLineInstance(const Locale& where, UErrorCode& status);
384
+
385
+ /**
386
+ * Create BreakIterator for character-breaks using specified locale
387
+ * Returns an instance of a BreakIterator implementing character breaks.
388
+ * Character breaks are boundaries of combining character sequences.
389
+ * @param where the locale.
390
+ * @param status The error code.
391
+ * @return A BreakIterator for character-breaks. The UErrorCode& status
392
+ * parameter is used to return status information to the user.
393
+ * To check whether the construction succeeded or not, you should check
394
+ * the value of U_SUCCESS(err). If you wish more detailed information, you
395
+ * can check for informational error results which still indicate success.
396
+ * U_USING_FALLBACK_WARNING indicates that a fall back locale was used. For
397
+ * example, 'de_CH' was requested, but nothing was found there, so 'de' was
398
+ * used. U_USING_DEFAULT_WARNING indicates that the default locale data was
399
+ * used; neither the requested locale nor any of its fall back locales
400
+ * could be found.
401
+ * The caller owns the returned object and is responsible for deleting it.
402
+ * @stable ICU 2.0
403
+ */
404
+ static BreakIterator* U_EXPORT2
405
+ createCharacterInstance(const Locale& where, UErrorCode& status);
406
+
407
+ /**
408
+ * Create BreakIterator for sentence-breaks using specified locale
409
+ * Returns an instance of a BreakIterator implementing sentence breaks.
410
+ * @param where the locale.
411
+ * @param status The error code.
412
+ * @return A BreakIterator for sentence-breaks. The UErrorCode& status
413
+ * parameter is used to return status information to the user.
414
+ * To check whether the construction succeeded or not, you should check
415
+ * the value of U_SUCCESS(err). If you wish more detailed information, you
416
+ * can check for informational error results which still indicate success.
417
+ * U_USING_FALLBACK_WARNING indicates that a fall back locale was used. For
418
+ * example, 'de_CH' was requested, but nothing was found there, so 'de' was
419
+ * used. U_USING_DEFAULT_WARNING indicates that the default locale data was
420
+ * used; neither the requested locale nor any of its fall back locales
421
+ * could be found.
422
+ * The caller owns the returned object and is responsible for deleting it.
423
+ * @stable ICU 2.0
424
+ */
425
+ static BreakIterator* U_EXPORT2
426
+ createSentenceInstance(const Locale& where, UErrorCode& status);
427
+
428
+ /**
429
+ * Create BreakIterator for title-casing breaks using the specified locale
430
+ * Returns an instance of a BreakIterator implementing title breaks.
431
+ * The iterator returned locates title boundaries as described for
432
+ * Unicode 3.2 only. For Unicode 4.0 and above title boundary iteration,
433
+ * please use Word Boundary iterator.{@link #createWordInstance }
434
+ *
435
+ * @param where the locale.
436
+ * @param status The error code.
437
+ * @return A BreakIterator for title-breaks. The UErrorCode& status
438
+ * parameter is used to return status information to the user.
439
+ * To check whether the construction succeeded or not, you should check
440
+ * the value of U_SUCCESS(err). If you wish more detailed information, you
441
+ * can check for informational error results which still indicate success.
442
+ * U_USING_FALLBACK_WARNING indicates that a fall back locale was used. For
443
+ * example, 'de_CH' was requested, but nothing was found there, so 'de' was
444
+ * used. U_USING_DEFAULT_WARNING indicates that the default locale data was
445
+ * used; neither the requested locale nor any of its fall back locales
446
+ * could be found.
447
+ * The caller owns the returned object and is responsible for deleting it.
448
+ * @stable ICU 2.1
449
+ */
450
+ static BreakIterator* U_EXPORT2
451
+ createTitleInstance(const Locale& where, UErrorCode& status);
452
+
453
+ /**
454
+ * Get the set of Locales for which TextBoundaries are installed.
455
+ * <p><b>Note:</b> this will not return locales added through the register
456
+ * call. To see the registered locales too, use the getAvailableLocales
457
+ * function that returns a StringEnumeration object </p>
458
+ * @param count the output parameter of number of elements in the locale list
459
+ * @return available locales
460
+ * @stable ICU 2.0
461
+ */
462
+ static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
463
+
464
+ /**
465
+ * Get name of the object for the desired Locale, in the desired langauge.
466
+ * @param objectLocale must be from getAvailableLocales.
467
+ * @param displayLocale specifies the desired locale for output.
468
+ * @param name the fill-in parameter of the return value
469
+ * Uses best match.
470
+ * @return user-displayable name
471
+ * @stable ICU 2.0
472
+ */
473
+ static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale,
474
+ const Locale& displayLocale,
475
+ UnicodeString& name);
476
+
477
+ /**
478
+ * Get name of the object for the desired Locale, in the langauge of the
479
+ * default locale.
480
+ * @param objectLocale must be from getMatchingLocales
481
+ * @param name the fill-in parameter of the return value
482
+ * @return user-displayable name
483
+ * @stable ICU 2.0
484
+ */
485
+ static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale,
486
+ UnicodeString& name);
487
+
488
+ /**
489
+ * Deprecated functionality. Use clone() instead.
490
+ *
491
+ * Thread safe client-buffer-based cloning operation
492
+ * Do NOT call delete on a safeclone, since 'new' is not used to create it.
493
+ * @param stackBuffer user allocated space for the new clone. If NULL new memory will be allocated.
494
+ * If buffer is not large enough, new memory will be allocated.
495
+ * @param BufferSize reference to size of allocated space.
496
+ * If BufferSize == 0, a sufficient size for use in cloning will
497
+ * be returned ('pre-flighting')
498
+ * If BufferSize is not enough for a stack-based safe clone,
499
+ * new memory will be allocated.
500
+ * @param status to indicate whether the operation went on smoothly or there were errors
501
+ * An informational status value, U_SAFECLONE_ALLOCATED_ERROR, is used if any allocations were
502
+ * necessary.
503
+ * @return pointer to the new clone
504
+ *
505
+ * @deprecated ICU 52. Use clone() instead.
506
+ */
507
+ virtual BreakIterator * createBufferClone(void *stackBuffer,
508
+ int32_t &BufferSize,
509
+ UErrorCode &status) = 0;
510
+
511
+ #ifndef U_HIDE_DEPRECATED_API
512
+
513
+ /**
514
+ * Determine whether the BreakIterator was created in user memory by
515
+ * createBufferClone(), and thus should not be deleted. Such objects
516
+ * must be closed by an explicit call to the destructor (not delete).
517
+ * @deprecated ICU 52. Always delete the BreakIterator.
518
+ */
519
+ inline UBool isBufferClone(void);
520
+
521
+ #endif /* U_HIDE_DEPRECATED_API */
522
+
523
+ #if !UCONFIG_NO_SERVICE
524
+ /**
525
+ * Register a new break iterator of the indicated kind, to use in the given locale.
526
+ * The break iterator will be adopted. Clones of the iterator will be returned
527
+ * if a request for a break iterator of the given kind matches or falls back to
528
+ * this locale.
529
+ * Because ICU may choose to cache BreakIterators internally, this must
530
+ * be called at application startup, prior to any calls to
531
+ * BreakIterator::createXXXInstance to avoid undefined behavior.
532
+ * @param toAdopt the BreakIterator instance to be adopted
533
+ * @param locale the Locale for which this instance is to be registered
534
+ * @param kind the type of iterator for which this instance is to be registered
535
+ * @param status the in/out status code, no special meanings are assigned
536
+ * @return a registry key that can be used to unregister this instance
537
+ * @stable ICU 2.4
538
+ */
539
+ static URegistryKey U_EXPORT2 registerInstance(BreakIterator* toAdopt,
540
+ const Locale& locale,
541
+ UBreakIteratorType kind,
542
+ UErrorCode& status);
543
+
544
+ /**
545
+ * Unregister a previously-registered BreakIterator using the key returned from the
546
+ * register call. Key becomes invalid after a successful call and should not be used again.
547
+ * The BreakIterator corresponding to the key will be deleted.
548
+ * Because ICU may choose to cache BreakIterators internally, this should
549
+ * be called during application shutdown, after all calls to
550
+ * BreakIterator::createXXXInstance to avoid undefined behavior.
551
+ * @param key the registry key returned by a previous call to registerInstance
552
+ * @param status the in/out status code, no special meanings are assigned
553
+ * @return TRUE if the iterator for the key was successfully unregistered
554
+ * @stable ICU 2.4
555
+ */
556
+ static UBool U_EXPORT2 unregister(URegistryKey key, UErrorCode& status);
557
+
558
+ /**
559
+ * Return a StringEnumeration over the locales available at the time of the call,
560
+ * including registered locales.
561
+ * @return a StringEnumeration over the locales available at the time of the call
562
+ * @stable ICU 2.4
563
+ */
564
+ static StringEnumeration* U_EXPORT2 getAvailableLocales(void);
565
+ #endif
566
+
567
+ /**
568
+ * Returns the locale for this break iterator. Two flavors are available: valid and
569
+ * actual locale.
570
+ * @stable ICU 2.8
571
+ */
572
+ Locale getLocale(ULocDataLocaleType type, UErrorCode& status) const;
573
+
574
+ #ifndef U_HIDE_INTERNAL_API
575
+ /** Get the locale for this break iterator object. You can choose between valid and actual locale.
576
+ * @param type type of the locale we're looking for (valid or actual)
577
+ * @param status error code for the operation
578
+ * @return the locale
579
+ * @internal
580
+ */
581
+ const char *getLocaleID(ULocDataLocaleType type, UErrorCode& status) const;
582
+ #endif /* U_HIDE_INTERNAL_API */
583
+
584
+ /**
585
+ * Set the subject text string upon which the break iterator is operating
586
+ * without changing any other aspect of the matching state.
587
+ * The new and previous text strings must have the same content.
588
+ *
589
+ * This function is intended for use in environments where ICU is operating on
590
+ * strings that may move around in memory. It provides a mechanism for notifying
591
+ * ICU that the string has been relocated, and providing a new UText to access the
592
+ * string in its new position.
593
+ *
594
+ * Note that the break iterator implementation never copies the underlying text
595
+ * of a string being processed, but always operates directly on the original text
596
+ * provided by the user. Refreshing simply drops the references to the old text
597
+ * and replaces them with references to the new.
598
+ *
599
+ * Caution: this function is normally used only by very specialized,
600
+ * system-level code. One example use case is with garbage collection that moves
601
+ * the text in memory.
602
+ *
603
+ * @param input The new (moved) text string.
604
+ * @param status Receives errors detected by this function.
605
+ * @return *this
606
+ *
607
+ * @stable ICU 49
608
+ */
609
+ virtual BreakIterator &refreshInputText(UText *input, UErrorCode &status) = 0;
610
+
611
+ private:
612
+ static BreakIterator* buildInstance(const Locale& loc, const char *type, int32_t kind, UErrorCode& status);
613
+ static BreakIterator* createInstance(const Locale& loc, int32_t kind, UErrorCode& status);
614
+ static BreakIterator* makeInstance(const Locale& loc, int32_t kind, UErrorCode& status);
615
+
616
+ friend class ICUBreakIteratorFactory;
617
+ friend class ICUBreakIteratorService;
618
+
619
+ protected:
620
+ // Do not enclose protected default/copy constructors with #ifndef U_HIDE_INTERNAL_API
621
+ // or else the compiler will create a public ones.
622
+ /** @internal */
623
+ BreakIterator();
624
+ /** @internal */
625
+ BreakIterator (const BreakIterator &other) : UObject(other) {}
626
+ /** @internal */
627
+ BreakIterator (const Locale& valid, const Locale& actual);
628
+ private:
629
+
630
+ /** @internal */
631
+ char actualLocale[ULOC_FULLNAME_CAPACITY];
632
+ char validLocale[ULOC_FULLNAME_CAPACITY];
633
+
634
+ /**
635
+ * The assignment operator has no real implementation.
636
+ * It's provided to make the compiler happy. Do not call.
637
+ */
638
+ BreakIterator& operator=(const BreakIterator&);
639
+ };
640
+
641
+ #ifndef U_HIDE_DEPRECATED_API
642
+
643
+ inline UBool BreakIterator::isBufferClone()
644
+ {
645
+ return FALSE;
646
+ }
647
+
648
+ #endif /* U_HIDE_DEPRECATED_API */
649
+
650
+ U_NAMESPACE_END
651
+
652
+ #endif /* #if !UCONFIG_NO_BREAK_ITERATION */
653
+
654
+ #endif // _BRKITER
655
+ //eof