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,1328 @@
1
+ /*
2
+ *******************************************************************************
3
+ * Copyright (C) 1997-2014, International Business Machines Corporation and others.
4
+ * All Rights Reserved.
5
+ * Modification History:
6
+ *
7
+ * Date Name Description
8
+ * 06/24/99 helena Integrated Alan's NF enhancements and Java2 bug fixes
9
+ *******************************************************************************
10
+ */
11
+
12
+ #ifndef _UNUM
13
+ #define _UNUM
14
+
15
+ #include "unicode/utypes.h"
16
+
17
+ #if !UCONFIG_NO_FORMATTING
18
+
19
+ #include "unicode/localpointer.h"
20
+ #include "unicode/uloc.h"
21
+ #include "unicode/ucurr.h"
22
+ #include "unicode/umisc.h"
23
+ #include "unicode/parseerr.h"
24
+ #include "unicode/uformattable.h"
25
+ #include "unicode/udisplaycontext.h"
26
+
27
+ /**
28
+ * \file
29
+ * \brief C API: NumberFormat
30
+ *
31
+ * <h2> Number Format C API </h2>
32
+ *
33
+ * Number Format C API Provides functions for
34
+ * formatting and parsing a number. Also provides methods for
35
+ * determining which locales have number formats, and what their names
36
+ * are.
37
+ * <P>
38
+ * UNumberFormat helps you to format and parse numbers for any locale.
39
+ * Your code can be completely independent of the locale conventions
40
+ * for decimal points, thousands-separators, or even the particular
41
+ * decimal digits used, or whether the number format is even decimal.
42
+ * There are different number format styles like decimal, currency,
43
+ * percent and spellout.
44
+ * <P>
45
+ * To format a number for the current Locale, use one of the static
46
+ * factory methods:
47
+ * <pre>
48
+ * \code
49
+ * UChar myString[20];
50
+ * double myNumber = 7.0;
51
+ * UErrorCode status = U_ZERO_ERROR;
52
+ * UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, &status);
53
+ * unum_formatDouble(nf, myNumber, myString, 20, NULL, &status);
54
+ * printf(" Example 1: %s\n", austrdup(myString) ); //austrdup( a function used to convert UChar* to char*)
55
+ * \endcode
56
+ * </pre>
57
+ * If you are formatting multiple numbers, it is more efficient to get
58
+ * the format and use it multiple times so that the system doesn't
59
+ * have to fetch the information about the local language and country
60
+ * conventions multiple times.
61
+ * <pre>
62
+ * \code
63
+ * uint32_t i, resultlength, reslenneeded;
64
+ * UErrorCode status = U_ZERO_ERROR;
65
+ * UFieldPosition pos;
66
+ * uint32_t a[] = { 123, 3333, -1234567 };
67
+ * const uint32_t a_len = sizeof(a) / sizeof(a[0]);
68
+ * UNumberFormat* nf;
69
+ * UChar* result = NULL;
70
+ *
71
+ * nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, &status);
72
+ * for (i = 0; i < a_len; i++) {
73
+ * resultlength=0;
74
+ * reslenneeded=unum_format(nf, a[i], NULL, resultlength, &pos, &status);
75
+ * result = NULL;
76
+ * if(status==U_BUFFER_OVERFLOW_ERROR){
77
+ * status=U_ZERO_ERROR;
78
+ * resultlength=reslenneeded+1;
79
+ * result=(UChar*)malloc(sizeof(UChar) * resultlength);
80
+ * unum_format(nf, a[i], result, resultlength, &pos, &status);
81
+ * }
82
+ * printf( " Example 2: %s\n", austrdup(result));
83
+ * free(result);
84
+ * }
85
+ * \endcode
86
+ * </pre>
87
+ * To format a number for a different Locale, specify it in the
88
+ * call to unum_open().
89
+ * <pre>
90
+ * \code
91
+ * UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, "fr_FR", NULL, &success)
92
+ * \endcode
93
+ * </pre>
94
+ * You can use a NumberFormat API unum_parse() to parse.
95
+ * <pre>
96
+ * \code
97
+ * UErrorCode status = U_ZERO_ERROR;
98
+ * int32_t pos=0;
99
+ * int32_t num;
100
+ * num = unum_parse(nf, str, u_strlen(str), &pos, &status);
101
+ * \endcode
102
+ * </pre>
103
+ * Use UNUM_DECIMAL to get the normal number format for that country.
104
+ * There are other static options available. Use UNUM_CURRENCY
105
+ * to get the currency number format for that country. Use UNUM_PERCENT
106
+ * to get a format for displaying percentages. With this format, a
107
+ * fraction from 0.53 is displayed as 53%.
108
+ * <P>
109
+ * Use a pattern to create either a DecimalFormat or a RuleBasedNumberFormat
110
+ * formatter. The pattern must conform to the syntax defined for those
111
+ * formatters.
112
+ * <P>
113
+ * You can also control the display of numbers with such function as
114
+ * unum_getAttributes() and unum_setAttributes(), which let you set the
115
+ * miminum fraction digits, grouping, etc.
116
+ * @see UNumberFormatAttributes for more details
117
+ * <P>
118
+ * You can also use forms of the parse and format methods with
119
+ * ParsePosition and UFieldPosition to allow you to:
120
+ * <ul type=round>
121
+ * <li>(a) progressively parse through pieces of a string.
122
+ * <li>(b) align the decimal point and other areas.
123
+ * </ul>
124
+ * <p>
125
+ * It is also possible to change or set the symbols used for a particular
126
+ * locale like the currency symbol, the grouping seperator , monetary seperator
127
+ * etc by making use of functions unum_setSymbols() and unum_getSymbols().
128
+ */
129
+
130
+ /** A number formatter.
131
+ * For usage in C programs.
132
+ * @stable ICU 2.0
133
+ */
134
+ typedef void* UNumberFormat;
135
+
136
+ /** The possible number format styles.
137
+ * @stable ICU 2.0
138
+ */
139
+ typedef enum UNumberFormatStyle {
140
+ /**
141
+ * Decimal format defined by a pattern string.
142
+ * @stable ICU 3.0
143
+ */
144
+ UNUM_PATTERN_DECIMAL=0,
145
+ /**
146
+ * Decimal format ("normal" style).
147
+ * @stable ICU 2.0
148
+ */
149
+ UNUM_DECIMAL=1,
150
+ /**
151
+ * Currency format with a currency symbol, e.g., "$1.00".
152
+ * @stable ICU 2.0
153
+ */
154
+ UNUM_CURRENCY=2,
155
+ /**
156
+ * Percent format
157
+ * @stable ICU 2.0
158
+ */
159
+ UNUM_PERCENT=3,
160
+ /**
161
+ * Scientific format
162
+ * @stable ICU 2.1
163
+ */
164
+ UNUM_SCIENTIFIC=4,
165
+ /**
166
+ * Spellout rule-based format. The default ruleset can be specified/changed using
167
+ * unum_setTextAttribute with UNUM_DEFAULT_RULESET; the available public rulesets
168
+ * can be listed using unum_getTextAttribute with UNUM_PUBLIC_RULESETS.
169
+ * @stable ICU 2.0
170
+ */
171
+ UNUM_SPELLOUT=5,
172
+ /**
173
+ * Ordinal rule-based format . The default ruleset can be specified/changed using
174
+ * unum_setTextAttribute with UNUM_DEFAULT_RULESET; the available public rulesets
175
+ * can be listed using unum_getTextAttribute with UNUM_PUBLIC_RULESETS.
176
+ * @stable ICU 3.0
177
+ */
178
+ UNUM_ORDINAL=6,
179
+ /**
180
+ * Duration rule-based format
181
+ * @stable ICU 3.0
182
+ */
183
+ UNUM_DURATION=7,
184
+ /**
185
+ * Numbering system rule-based format
186
+ * @stable ICU 4.2
187
+ */
188
+ UNUM_NUMBERING_SYSTEM=8,
189
+ /**
190
+ * Rule-based format defined by a pattern string.
191
+ * @stable ICU 3.0
192
+ */
193
+ UNUM_PATTERN_RULEBASED=9,
194
+ /**
195
+ * Currency format with an ISO currency code, e.g., "USD1.00".
196
+ * @stable ICU 4.8
197
+ */
198
+ UNUM_CURRENCY_ISO=10,
199
+ /**
200
+ * Currency format with a pluralized currency name,
201
+ * e.g., "1.00 US dollar" and "3.00 US dollars".
202
+ * @stable ICU 4.8
203
+ */
204
+ UNUM_CURRENCY_PLURAL=11,
205
+ #ifndef U_HIDE_DRAFT_API
206
+ /**
207
+ * Currency format for accounting, e.g., "($3.00)" for
208
+ * negative currency amount instead of "-$3.00" ({@link #UNUM_CURRENCY}).
209
+ * @draft ICU 53
210
+ */
211
+ UNUM_CURRENCY_ACCOUNTING=12,
212
+ /**
213
+ * Currency format with a currency symbol given CASH usage, e.g.,
214
+ * "NT$3" instead of "NT$3.23".
215
+ * @draft ICU 54
216
+ */
217
+ UNUM_CASH_CURRENCY=13,
218
+ #endif /* U_HIDE_DRAFT_API */
219
+
220
+ /**
221
+ * One more than the highest number format style constant.
222
+ * @stable ICU 4.8
223
+ */
224
+ UNUM_FORMAT_STYLE_COUNT=14,
225
+
226
+ /**
227
+ * Default format
228
+ * @stable ICU 2.0
229
+ */
230
+ UNUM_DEFAULT = UNUM_DECIMAL,
231
+ /**
232
+ * Alias for UNUM_PATTERN_DECIMAL
233
+ * @stable ICU 3.0
234
+ */
235
+ UNUM_IGNORE = UNUM_PATTERN_DECIMAL
236
+ } UNumberFormatStyle;
237
+
238
+ /** The possible number format rounding modes.
239
+ * @stable ICU 2.0
240
+ */
241
+ typedef enum UNumberFormatRoundingMode {
242
+ UNUM_ROUND_CEILING,
243
+ UNUM_ROUND_FLOOR,
244
+ UNUM_ROUND_DOWN,
245
+ UNUM_ROUND_UP,
246
+ /**
247
+ * Half-even rounding
248
+ * @stable, ICU 3.8
249
+ */
250
+ UNUM_ROUND_HALFEVEN,
251
+ #ifndef U_HIDE_DEPRECATED_API
252
+ /**
253
+ * Half-even rounding, misspelled name
254
+ * @deprecated, ICU 3.8
255
+ */
256
+ UNUM_FOUND_HALFEVEN = UNUM_ROUND_HALFEVEN,
257
+ #endif /* U_HIDE_DEPRECATED_API */
258
+ UNUM_ROUND_HALFDOWN = UNUM_ROUND_HALFEVEN + 1,
259
+ UNUM_ROUND_HALFUP,
260
+ /**
261
+ * ROUND_UNNECESSARY reports an error if formatted result is not exact.
262
+ * @stable ICU 4.8
263
+ */
264
+ UNUM_ROUND_UNNECESSARY
265
+ } UNumberFormatRoundingMode;
266
+
267
+ /** The possible number format pad positions.
268
+ * @stable ICU 2.0
269
+ */
270
+ typedef enum UNumberFormatPadPosition {
271
+ UNUM_PAD_BEFORE_PREFIX,
272
+ UNUM_PAD_AFTER_PREFIX,
273
+ UNUM_PAD_BEFORE_SUFFIX,
274
+ UNUM_PAD_AFTER_SUFFIX
275
+ } UNumberFormatPadPosition;
276
+
277
+ /**
278
+ * Constants for specifying short or long format.
279
+ * @stable ICU 51
280
+ */
281
+ typedef enum UNumberCompactStyle {
282
+ /** @stable ICU 51 */
283
+ UNUM_SHORT,
284
+ /** @stable ICU 51 */
285
+ UNUM_LONG
286
+ /** @stable ICU 51 */
287
+ } UNumberCompactStyle;
288
+
289
+ /**
290
+ * Constants for specifying currency spacing
291
+ * @stable ICU 4.8
292
+ */
293
+ enum UCurrencySpacing {
294
+ /** @stable ICU 4.8 */
295
+ UNUM_CURRENCY_MATCH,
296
+ /** @stable ICU 4.8 */
297
+ UNUM_CURRENCY_SURROUNDING_MATCH,
298
+ /** @stable ICU 4.8 */
299
+ UNUM_CURRENCY_INSERT,
300
+ /** @stable ICU 4.8 */
301
+ UNUM_CURRENCY_SPACING_COUNT
302
+ };
303
+ typedef enum UCurrencySpacing UCurrencySpacing; /**< @stable ICU 4.8 */
304
+
305
+
306
+ /**
307
+ * FieldPosition and UFieldPosition selectors for format fields
308
+ * defined by NumberFormat and UNumberFormat.
309
+ * @stable ICU 49
310
+ */
311
+ typedef enum UNumberFormatFields {
312
+ /** @stable ICU 49 */
313
+ UNUM_INTEGER_FIELD,
314
+ /** @stable ICU 49 */
315
+ UNUM_FRACTION_FIELD,
316
+ /** @stable ICU 49 */
317
+ UNUM_DECIMAL_SEPARATOR_FIELD,
318
+ /** @stable ICU 49 */
319
+ UNUM_EXPONENT_SYMBOL_FIELD,
320
+ /** @stable ICU 49 */
321
+ UNUM_EXPONENT_SIGN_FIELD,
322
+ /** @stable ICU 49 */
323
+ UNUM_EXPONENT_FIELD,
324
+ /** @stable ICU 49 */
325
+ UNUM_GROUPING_SEPARATOR_FIELD,
326
+ /** @stable ICU 49 */
327
+ UNUM_CURRENCY_FIELD,
328
+ /** @stable ICU 49 */
329
+ UNUM_PERCENT_FIELD,
330
+ /** @stable ICU 49 */
331
+ UNUM_PERMILL_FIELD,
332
+ /** @stable ICU 49 */
333
+ UNUM_SIGN_FIELD,
334
+ /** @stable ICU 49 */
335
+ UNUM_FIELD_COUNT
336
+ } UNumberFormatFields;
337
+
338
+
339
+ /**
340
+ * Create and return a new UNumberFormat for formatting and parsing
341
+ * numbers. A UNumberFormat may be used to format numbers by calling
342
+ * {@link #unum_format }, and to parse numbers by calling {@link #unum_parse }.
343
+ * The caller must call {@link #unum_close } when done to release resources
344
+ * used by this object.
345
+ * @param style The type of number format to open: one of
346
+ * UNUM_DECIMAL, UNUM_CURRENCY, UNUM_PERCENT, UNUM_SCIENTIFIC,
347
+ * UNUM_CURRENCY_ISO, UNUM_CURRENCY_PLURAL, UNUM_SPELLOUT,
348
+ * UNUM_ORDINAL, UNUM_DURATION, UNUM_NUMBERING_SYSTEM,
349
+ * UNUM_PATTERN_DECIMAL, UNUM_PATTERN_RULEBASED, or UNUM_DEFAULT.
350
+ * If UNUM_PATTERN_DECIMAL or UNUM_PATTERN_RULEBASED is passed then the
351
+ * number format is opened using the given pattern, which must conform
352
+ * to the syntax described in DecimalFormat or RuleBasedNumberFormat,
353
+ * respectively.
354
+ * @param pattern A pattern specifying the format to use.
355
+ * This parameter is ignored unless the style is
356
+ * UNUM_PATTERN_DECIMAL or UNUM_PATTERN_RULEBASED.
357
+ * @param patternLength The number of characters in the pattern, or -1
358
+ * if null-terminated. This parameter is ignored unless the style is
359
+ * UNUM_PATTERN.
360
+ * @param locale A locale identifier to use to determine formatting
361
+ * and parsing conventions, or NULL to use the default locale.
362
+ * @param parseErr A pointer to a UParseError struct to receive the
363
+ * details of any parsing errors, or NULL if no parsing error details
364
+ * are desired.
365
+ * @param status A pointer to an input-output UErrorCode.
366
+ * @return A pointer to a newly created UNumberFormat, or NULL if an
367
+ * error occurred.
368
+ * @see unum_close
369
+ * @see DecimalFormat
370
+ * @stable ICU 2.0
371
+ */
372
+ U_STABLE UNumberFormat* U_EXPORT2
373
+ unum_open( UNumberFormatStyle style,
374
+ const UChar* pattern,
375
+ int32_t patternLength,
376
+ const char* locale,
377
+ UParseError* parseErr,
378
+ UErrorCode* status);
379
+
380
+
381
+ /**
382
+ * Close a UNumberFormat.
383
+ * Once closed, a UNumberFormat may no longer be used.
384
+ * @param fmt The formatter to close.
385
+ * @stable ICU 2.0
386
+ */
387
+ U_STABLE void U_EXPORT2
388
+ unum_close(UNumberFormat* fmt);
389
+
390
+ #if U_SHOW_CPLUSPLUS_API
391
+
392
+ U_NAMESPACE_BEGIN
393
+
394
+ /**
395
+ * \class LocalUNumberFormatPointer
396
+ * "Smart pointer" class, closes a UNumberFormat via unum_close().
397
+ * For most methods see the LocalPointerBase base class.
398
+ *
399
+ * @see LocalPointerBase
400
+ * @see LocalPointer
401
+ * @stable ICU 4.4
402
+ */
403
+ U_DEFINE_LOCAL_OPEN_POINTER(LocalUNumberFormatPointer, UNumberFormat, unum_close);
404
+
405
+ U_NAMESPACE_END
406
+
407
+ #endif
408
+
409
+ /**
410
+ * Open a copy of a UNumberFormat.
411
+ * This function performs a deep copy.
412
+ * @param fmt The format to copy
413
+ * @param status A pointer to an UErrorCode to receive any errors.
414
+ * @return A pointer to a UNumberFormat identical to fmt.
415
+ * @stable ICU 2.0
416
+ */
417
+ U_STABLE UNumberFormat* U_EXPORT2
418
+ unum_clone(const UNumberFormat *fmt,
419
+ UErrorCode *status);
420
+
421
+ /**
422
+ * Format an integer using a UNumberFormat.
423
+ * The integer will be formatted according to the UNumberFormat's locale.
424
+ * @param fmt The formatter to use.
425
+ * @param number The number to format.
426
+ * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If
427
+ * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength)
428
+ * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number
429
+ * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR.
430
+ * @param resultLength The maximum size of result.
431
+ * @param pos A pointer to a UFieldPosition. On input, position->field
432
+ * is read. On output, position->beginIndex and position->endIndex indicate
433
+ * the beginning and ending indices of field number position->field, if such
434
+ * a field exists. This parameter may be NULL, in which case no field
435
+ * @param status A pointer to an UErrorCode to receive any errors
436
+ * @return The total buffer size needed; if greater than resultLength, the output was truncated.
437
+ * @see unum_formatInt64
438
+ * @see unum_formatDouble
439
+ * @see unum_parse
440
+ * @see unum_parseInt64
441
+ * @see unum_parseDouble
442
+ * @see UFieldPosition
443
+ * @stable ICU 2.0
444
+ */
445
+ U_STABLE int32_t U_EXPORT2
446
+ unum_format( const UNumberFormat* fmt,
447
+ int32_t number,
448
+ UChar* result,
449
+ int32_t resultLength,
450
+ UFieldPosition *pos,
451
+ UErrorCode* status);
452
+
453
+ /**
454
+ * Format an int64 using a UNumberFormat.
455
+ * The int64 will be formatted according to the UNumberFormat's locale.
456
+ * @param fmt The formatter to use.
457
+ * @param number The number to format.
458
+ * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If
459
+ * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength)
460
+ * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number
461
+ * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR.
462
+ * @param resultLength The maximum size of result.
463
+ * @param pos A pointer to a UFieldPosition. On input, position->field
464
+ * is read. On output, position->beginIndex and position->endIndex indicate
465
+ * the beginning and ending indices of field number position->field, if such
466
+ * a field exists. This parameter may be NULL, in which case no field
467
+ * @param status A pointer to an UErrorCode to receive any errors
468
+ * @return The total buffer size needed; if greater than resultLength, the output was truncated.
469
+ * @see unum_format
470
+ * @see unum_formatDouble
471
+ * @see unum_parse
472
+ * @see unum_parseInt64
473
+ * @see unum_parseDouble
474
+ * @see UFieldPosition
475
+ * @stable ICU 2.0
476
+ */
477
+ U_STABLE int32_t U_EXPORT2
478
+ unum_formatInt64(const UNumberFormat *fmt,
479
+ int64_t number,
480
+ UChar* result,
481
+ int32_t resultLength,
482
+ UFieldPosition *pos,
483
+ UErrorCode* status);
484
+
485
+ /**
486
+ * Format a double using a UNumberFormat.
487
+ * The double will be formatted according to the UNumberFormat's locale.
488
+ * @param fmt The formatter to use.
489
+ * @param number The number to format.
490
+ * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If
491
+ * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength)
492
+ * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number
493
+ * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR.
494
+ * @param resultLength The maximum size of result.
495
+ * @param pos A pointer to a UFieldPosition. On input, position->field
496
+ * is read. On output, position->beginIndex and position->endIndex indicate
497
+ * the beginning and ending indices of field number position->field, if such
498
+ * a field exists. This parameter may be NULL, in which case no field
499
+ * @param status A pointer to an UErrorCode to receive any errors
500
+ * @return The total buffer size needed; if greater than resultLength, the output was truncated.
501
+ * @see unum_format
502
+ * @see unum_formatInt64
503
+ * @see unum_parse
504
+ * @see unum_parseInt64
505
+ * @see unum_parseDouble
506
+ * @see UFieldPosition
507
+ * @stable ICU 2.0
508
+ */
509
+ U_STABLE int32_t U_EXPORT2
510
+ unum_formatDouble( const UNumberFormat* fmt,
511
+ double number,
512
+ UChar* result,
513
+ int32_t resultLength,
514
+ UFieldPosition *pos, /* 0 if ignore */
515
+ UErrorCode* status);
516
+
517
+ /**
518
+ * Format a decimal number using a UNumberFormat.
519
+ * The number will be formatted according to the UNumberFormat's locale.
520
+ * The syntax of the input number is a "numeric string"
521
+ * as defined in the Decimal Arithmetic Specification, available at
522
+ * http://speleotrove.com/decimal
523
+ * @param fmt The formatter to use.
524
+ * @param number The number to format.
525
+ * @param length The length of the input number, or -1 if the input is nul-terminated.
526
+ * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If
527
+ * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength)
528
+ * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number
529
+ * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR.
530
+ * @param resultLength The maximum size of result.
531
+ * @param pos A pointer to a UFieldPosition. On input, position->field
532
+ * is read. On output, position->beginIndex and position->endIndex indicate
533
+ * the beginning and ending indices of field number position->field, if such
534
+ * a field exists. This parameter may be NULL, in which case it is ignored.
535
+ * @param status A pointer to an UErrorCode to receive any errors
536
+ * @return The total buffer size needed; if greater than resultLength, the output was truncated.
537
+ * @see unum_format
538
+ * @see unum_formatInt64
539
+ * @see unum_parse
540
+ * @see unum_parseInt64
541
+ * @see unum_parseDouble
542
+ * @see UFieldPosition
543
+ * @stable ICU 4.4
544
+ */
545
+ U_STABLE int32_t U_EXPORT2
546
+ unum_formatDecimal( const UNumberFormat* fmt,
547
+ const char * number,
548
+ int32_t length,
549
+ UChar* result,
550
+ int32_t resultLength,
551
+ UFieldPosition *pos, /* 0 if ignore */
552
+ UErrorCode* status);
553
+
554
+ /**
555
+ * Format a double currency amount using a UNumberFormat.
556
+ * The double will be formatted according to the UNumberFormat's locale.
557
+ * @param fmt the formatter to use
558
+ * @param number the number to format
559
+ * @param currency the 3-letter null-terminated ISO 4217 currency code
560
+ * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If
561
+ * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength)
562
+ * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number
563
+ * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR.
564
+ * @param resultLength the maximum number of UChars to write to result
565
+ * @param pos a pointer to a UFieldPosition. On input,
566
+ * position->field is read. On output, position->beginIndex and
567
+ * position->endIndex indicate the beginning and ending indices of
568
+ * field number position->field, if such a field exists. This
569
+ * parameter may be NULL, in which case it is ignored.
570
+ * @param status a pointer to an input-output UErrorCode
571
+ * @return the total buffer size needed; if greater than resultLength,
572
+ * the output was truncated.
573
+ * @see unum_formatDouble
574
+ * @see unum_parseDoubleCurrency
575
+ * @see UFieldPosition
576
+ * @stable ICU 3.0
577
+ */
578
+ U_STABLE int32_t U_EXPORT2
579
+ unum_formatDoubleCurrency(const UNumberFormat* fmt,
580
+ double number,
581
+ UChar* currency,
582
+ UChar* result,
583
+ int32_t resultLength,
584
+ UFieldPosition* pos,
585
+ UErrorCode* status);
586
+
587
+ /**
588
+ * Format a UFormattable into a string.
589
+ * @param fmt the formatter to use
590
+ * @param number the number to format, as a UFormattable
591
+ * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If
592
+ * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength)
593
+ * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number
594
+ * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR.
595
+ * @param resultLength the maximum number of UChars to write to result
596
+ * @param pos a pointer to a UFieldPosition. On input,
597
+ * position->field is read. On output, position->beginIndex and
598
+ * position->endIndex indicate the beginning and ending indices of
599
+ * field number position->field, if such a field exists. This
600
+ * parameter may be NULL, in which case it is ignored.
601
+ * @param status a pointer to an input-output UErrorCode
602
+ * @return the total buffer size needed; if greater than resultLength,
603
+ * the output was truncated. Will return 0 on error.
604
+ * @see unum_parseToUFormattable
605
+ * @stable ICU 52
606
+ */
607
+ U_STABLE int32_t U_EXPORT2
608
+ unum_formatUFormattable(const UNumberFormat* fmt,
609
+ const UFormattable *number,
610
+ UChar *result,
611
+ int32_t resultLength,
612
+ UFieldPosition *pos,
613
+ UErrorCode *status);
614
+
615
+ /**
616
+ * Parse a string into an integer using a UNumberFormat.
617
+ * The string will be parsed according to the UNumberFormat's locale.
618
+ * @param fmt The formatter to use.
619
+ * @param text The text to parse.
620
+ * @param textLength The length of text, or -1 if null-terminated.
621
+ * @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which
622
+ * to begin parsing. If not NULL, on output the offset at which parsing ended.
623
+ * @param status A pointer to an UErrorCode to receive any errors
624
+ * @return The value of the parsed integer
625
+ * @see unum_parseInt64
626
+ * @see unum_parseDouble
627
+ * @see unum_format
628
+ * @see unum_formatInt64
629
+ * @see unum_formatDouble
630
+ * @stable ICU 2.0
631
+ */
632
+ U_STABLE int32_t U_EXPORT2
633
+ unum_parse( const UNumberFormat* fmt,
634
+ const UChar* text,
635
+ int32_t textLength,
636
+ int32_t *parsePos /* 0 = start */,
637
+ UErrorCode *status);
638
+
639
+ /**
640
+ * Parse a string into an int64 using a UNumberFormat.
641
+ * The string will be parsed according to the UNumberFormat's locale.
642
+ * @param fmt The formatter to use.
643
+ * @param text The text to parse.
644
+ * @param textLength The length of text, or -1 if null-terminated.
645
+ * @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which
646
+ * to begin parsing. If not NULL, on output the offset at which parsing ended.
647
+ * @param status A pointer to an UErrorCode to receive any errors
648
+ * @return The value of the parsed integer
649
+ * @see unum_parse
650
+ * @see unum_parseDouble
651
+ * @see unum_format
652
+ * @see unum_formatInt64
653
+ * @see unum_formatDouble
654
+ * @stable ICU 2.8
655
+ */
656
+ U_STABLE int64_t U_EXPORT2
657
+ unum_parseInt64(const UNumberFormat* fmt,
658
+ const UChar* text,
659
+ int32_t textLength,
660
+ int32_t *parsePos /* 0 = start */,
661
+ UErrorCode *status);
662
+
663
+ /**
664
+ * Parse a string into a double using a UNumberFormat.
665
+ * The string will be parsed according to the UNumberFormat's locale.
666
+ * @param fmt The formatter to use.
667
+ * @param text The text to parse.
668
+ * @param textLength The length of text, or -1 if null-terminated.
669
+ * @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which
670
+ * to begin parsing. If not NULL, on output the offset at which parsing ended.
671
+ * @param status A pointer to an UErrorCode to receive any errors
672
+ * @return The value of the parsed double
673
+ * @see unum_parse
674
+ * @see unum_parseInt64
675
+ * @see unum_format
676
+ * @see unum_formatInt64
677
+ * @see unum_formatDouble
678
+ * @stable ICU 2.0
679
+ */
680
+ U_STABLE double U_EXPORT2
681
+ unum_parseDouble( const UNumberFormat* fmt,
682
+ const UChar* text,
683
+ int32_t textLength,
684
+ int32_t *parsePos /* 0 = start */,
685
+ UErrorCode *status);
686
+
687
+
688
+ /**
689
+ * Parse a number from a string into an unformatted numeric string using a UNumberFormat.
690
+ * The input string will be parsed according to the UNumberFormat's locale.
691
+ * The syntax of the output is a "numeric string"
692
+ * as defined in the Decimal Arithmetic Specification, available at
693
+ * http://speleotrove.com/decimal
694
+ * @param fmt The formatter to use.
695
+ * @param text The text to parse.
696
+ * @param textLength The length of text, or -1 if null-terminated.
697
+ * @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which
698
+ * to begin parsing. If not NULL, on output the offset at which parsing ended.
699
+ * @param outBuf A (char *) buffer to receive the parsed number as a string. The output string
700
+ * will be nul-terminated if there is sufficient space.
701
+ * @param outBufLength The size of the output buffer. May be zero, in which case
702
+ * the outBuf pointer may be NULL, and the function will return the
703
+ * size of the output string.
704
+ * @param status A pointer to an UErrorCode to receive any errors
705
+ * @return the length of the output string, not including any terminating nul.
706
+ * @see unum_parse
707
+ * @see unum_parseInt64
708
+ * @see unum_format
709
+ * @see unum_formatInt64
710
+ * @see unum_formatDouble
711
+ * @stable ICU 4.4
712
+ */
713
+ U_STABLE int32_t U_EXPORT2
714
+ unum_parseDecimal(const UNumberFormat* fmt,
715
+ const UChar* text,
716
+ int32_t textLength,
717
+ int32_t *parsePos /* 0 = start */,
718
+ char *outBuf,
719
+ int32_t outBufLength,
720
+ UErrorCode *status);
721
+
722
+ /**
723
+ * Parse a string into a double and a currency using a UNumberFormat.
724
+ * The string will be parsed according to the UNumberFormat's locale.
725
+ * @param fmt the formatter to use
726
+ * @param text the text to parse
727
+ * @param textLength the length of text, or -1 if null-terminated
728
+ * @param parsePos a pointer to an offset index into text at which to
729
+ * begin parsing. On output, *parsePos will point after the last
730
+ * parsed character. This parameter may be NULL, in which case parsing
731
+ * begins at offset 0.
732
+ * @param currency a pointer to the buffer to receive the parsed null-
733
+ * terminated currency. This buffer must have a capacity of at least
734
+ * 4 UChars.
735
+ * @param status a pointer to an input-output UErrorCode
736
+ * @return the parsed double
737
+ * @see unum_parseDouble
738
+ * @see unum_formatDoubleCurrency
739
+ * @stable ICU 3.0
740
+ */
741
+ U_STABLE double U_EXPORT2
742
+ unum_parseDoubleCurrency(const UNumberFormat* fmt,
743
+ const UChar* text,
744
+ int32_t textLength,
745
+ int32_t* parsePos, /* 0 = start */
746
+ UChar* currency,
747
+ UErrorCode* status);
748
+
749
+ /**
750
+ * Parse a UChar string into a UFormattable.
751
+ * Example code:
752
+ * \snippet test/cintltst/cnumtst.c unum_parseToUFormattable
753
+ * @param fmt the formatter to use
754
+ * @param result the UFormattable to hold the result. If NULL, a new UFormattable will be allocated (which the caller must close with ufmt_close).
755
+ * @param text the text to parse
756
+ * @param textLength the length of text, or -1 if null-terminated
757
+ * @param parsePos a pointer to an offset index into text at which to
758
+ * begin parsing. On output, *parsePos will point after the last
759
+ * parsed character. This parameter may be NULL in which case parsing
760
+ * begins at offset 0.
761
+ * @param status a pointer to an input-output UErrorCode
762
+ * @return the UFormattable. Will be ==result unless NULL was passed in for result, in which case it will be the newly opened UFormattable.
763
+ * @see ufmt_getType
764
+ * @see ufmt_close
765
+ * @stable ICU 52
766
+ */
767
+ U_STABLE UFormattable* U_EXPORT2
768
+ unum_parseToUFormattable(const UNumberFormat* fmt,
769
+ UFormattable *result,
770
+ const UChar* text,
771
+ int32_t textLength,
772
+ int32_t* parsePos, /* 0 = start */
773
+ UErrorCode* status);
774
+
775
+ /**
776
+ * Set the pattern used by a UNumberFormat. This can only be used
777
+ * on a DecimalFormat, other formats return U_UNSUPPORTED_ERROR
778
+ * in the status.
779
+ * @param format The formatter to set.
780
+ * @param localized TRUE if the pattern is localized, FALSE otherwise.
781
+ * @param pattern The new pattern
782
+ * @param patternLength The length of pattern, or -1 if null-terminated.
783
+ * @param parseError A pointer to UParseError to recieve information
784
+ * about errors occurred during parsing, or NULL if no parse error
785
+ * information is desired.
786
+ * @param status A pointer to an input-output UErrorCode.
787
+ * @see unum_toPattern
788
+ * @see DecimalFormat
789
+ * @stable ICU 2.0
790
+ */
791
+ U_STABLE void U_EXPORT2
792
+ unum_applyPattern( UNumberFormat *format,
793
+ UBool localized,
794
+ const UChar *pattern,
795
+ int32_t patternLength,
796
+ UParseError *parseError,
797
+ UErrorCode *status
798
+ );
799
+
800
+ /**
801
+ * Get a locale for which decimal formatting patterns are available.
802
+ * A UNumberFormat in a locale returned by this function will perform the correct
803
+ * formatting and parsing for the locale. The results of this call are not
804
+ * valid for rule-based number formats.
805
+ * @param localeIndex The index of the desired locale.
806
+ * @return A locale for which number formatting patterns are available, or 0 if none.
807
+ * @see unum_countAvailable
808
+ * @stable ICU 2.0
809
+ */
810
+ U_STABLE const char* U_EXPORT2
811
+ unum_getAvailable(int32_t localeIndex);
812
+
813
+ /**
814
+ * Determine how many locales have decimal formatting patterns available. The
815
+ * results of this call are not valid for rule-based number formats.
816
+ * This function is useful for determining the loop ending condition for
817
+ * calls to {@link #unum_getAvailable }.
818
+ * @return The number of locales for which decimal formatting patterns are available.
819
+ * @see unum_getAvailable
820
+ * @stable ICU 2.0
821
+ */
822
+ U_STABLE int32_t U_EXPORT2
823
+ unum_countAvailable(void);
824
+
825
+ #if UCONFIG_HAVE_PARSEALLINPUT
826
+ /* The UNumberFormatAttributeValue type cannot be #ifndef U_HIDE_INTERNAL_API, needed for .h variable declaration */
827
+ /**
828
+ * @internal
829
+ */
830
+ typedef enum UNumberFormatAttributeValue {
831
+ #ifndef U_HIDE_INTERNAL_API
832
+ /** @internal */
833
+ UNUM_NO = 0,
834
+ /** @internal */
835
+ UNUM_YES = 1,
836
+ /** @internal */
837
+ UNUM_MAYBE = 2
838
+ #endif /* U_HIDE_INTERNAL_API */
839
+ } UNumberFormatAttributeValue;
840
+ #endif
841
+
842
+ /** The possible UNumberFormat numeric attributes @stable ICU 2.0 */
843
+ typedef enum UNumberFormatAttribute {
844
+ /** Parse integers only */
845
+ UNUM_PARSE_INT_ONLY,
846
+ /** Use grouping separator */
847
+ UNUM_GROUPING_USED,
848
+ /** Always show decimal point */
849
+ UNUM_DECIMAL_ALWAYS_SHOWN,
850
+ /** Maximum integer digits */
851
+ UNUM_MAX_INTEGER_DIGITS,
852
+ /** Minimum integer digits */
853
+ UNUM_MIN_INTEGER_DIGITS,
854
+ /** Integer digits */
855
+ UNUM_INTEGER_DIGITS,
856
+ /** Maximum fraction digits */
857
+ UNUM_MAX_FRACTION_DIGITS,
858
+ /** Minimum fraction digits */
859
+ UNUM_MIN_FRACTION_DIGITS,
860
+ /** Fraction digits */
861
+ UNUM_FRACTION_DIGITS,
862
+ /** Multiplier */
863
+ UNUM_MULTIPLIER,
864
+ /** Grouping size */
865
+ UNUM_GROUPING_SIZE,
866
+ /** Rounding Mode */
867
+ UNUM_ROUNDING_MODE,
868
+ /** Rounding increment */
869
+ UNUM_ROUNDING_INCREMENT,
870
+ /** The width to which the output of <code>format()</code> is padded. */
871
+ UNUM_FORMAT_WIDTH,
872
+ /** The position at which padding will take place. */
873
+ UNUM_PADDING_POSITION,
874
+ /** Secondary grouping size */
875
+ UNUM_SECONDARY_GROUPING_SIZE,
876
+ /** Use significant digits
877
+ * @stable ICU 3.0 */
878
+ UNUM_SIGNIFICANT_DIGITS_USED,
879
+ /** Minimum significant digits
880
+ * @stable ICU 3.0 */
881
+ UNUM_MIN_SIGNIFICANT_DIGITS,
882
+ /** Maximum significant digits
883
+ * @stable ICU 3.0 */
884
+ UNUM_MAX_SIGNIFICANT_DIGITS,
885
+ /** Lenient parse mode used by rule-based formats.
886
+ * @stable ICU 3.0
887
+ */
888
+ UNUM_LENIENT_PARSE,
889
+ #if UCONFIG_HAVE_PARSEALLINPUT
890
+ /** Consume all input. (may use fastpath). Set to UNUM_YES (require fastpath), UNUM_NO (skip fastpath), or UNUM_MAYBE (heuristic).
891
+ * This is an internal ICU API. Do not use.
892
+ * @internal
893
+ */
894
+ UNUM_PARSE_ALL_INPUT = UNUM_LENIENT_PARSE + 1,
895
+ #endif
896
+ /**
897
+ * Scale, which adjusts the position of the
898
+ * decimal point when formatting. Amounts will be multiplied by 10 ^ (scale)
899
+ * before they are formatted. The default value for the scale is 0 ( no adjustment ).
900
+ *
901
+ * <p>Example: setting the scale to 3, 123 formats as "123,000"
902
+ * <p>Example: setting the scale to -4, 123 formats as "0.0123"
903
+ *
904
+ * @stable ICU 51 */
905
+ UNUM_SCALE = UNUM_LENIENT_PARSE + 2,
906
+
907
+ #ifndef U_HIDE_INTERNAL_API
908
+ /** Count of "regular" numeric attributes.
909
+ * @internal */
910
+ UNUM_NUMERIC_ATTRIBUTE_COUNT = UNUM_LENIENT_PARSE + 3,
911
+ #endif /* U_HIDE_INTERNAL_API */
912
+
913
+ #ifndef U_HIDE_DRAFT_API
914
+ /**
915
+ * if this attribute is set to 0, it is set to UNUM_CURRENCY_STANDARD purpose,
916
+ * otherwise it is UNUM_CURRENCY_CASH purpose
917
+ * Default: 0 (UNUM_CURRENCY_STANDARD purpose)
918
+ * @draft ICU 54
919
+ */
920
+ UNUM_CURRENCY_USAGE = UNUM_LENIENT_PARSE + 4,
921
+ #endif /* U_HIDE_DRAFT_API */
922
+
923
+ /* The following cannot be #ifndef U_HIDE_INTERNAL_API, needed in .h file variable declararions */
924
+ /** One below the first bitfield-boolean item.
925
+ * All items after this one are stored in boolean form.
926
+ * @internal */
927
+ UNUM_MAX_NONBOOLEAN_ATTRIBUTE = 0x0FFF,
928
+
929
+ /** If 1, specifies that if setting the "max integer digits" attribute would truncate a value, set an error status rather than silently truncating.
930
+ * For example, formatting the value 1234 with 4 max int digits would succeed, but formatting 12345 would fail. There is no effect on parsing.
931
+ * Default: 0 (not set)
932
+ * @stable ICU 50
933
+ */
934
+ UNUM_FORMAT_FAIL_IF_MORE_THAN_MAX_DIGITS = 0x1000,
935
+ /**
936
+ * if this attribute is set to 1, specifies that, if the pattern doesn't contain an exponent, the exponent will not be parsed. If the pattern does contain an exponent, this attribute has no effect.
937
+ * Has no effect on formatting.
938
+ * Default: 0 (unset)
939
+ * @stable ICU 50
940
+ */
941
+ UNUM_PARSE_NO_EXPONENT,
942
+
943
+ #ifndef U_HIDE_DRAFT_API
944
+ /**
945
+ * if this attribute is set to 1, specifies that, if the pattern contains a
946
+ * decimal mark the input is required to have one. If this attribute is set to 0,
947
+ * specifies that input does not have to contain a decimal mark.
948
+ * Has no effect on formatting.
949
+ * Default: 0 (unset)
950
+ * @draft ICU 54
951
+ */
952
+ UNUM_PARSE_DECIMAL_MARK_REQUIRED = UNUM_PARSE_NO_EXPONENT+1,
953
+ #endif /* U_HIDE_DRAFT_API */
954
+
955
+ /* The following cannot be #ifndef U_HIDE_INTERNAL_API, needed in .h file variable declararions */
956
+ /** Limit of boolean attributes.
957
+ * @internal */
958
+ UNUM_LIMIT_BOOLEAN_ATTRIBUTE = UNUM_PARSE_NO_EXPONENT+2
959
+ } UNumberFormatAttribute;
960
+
961
+ /**
962
+ * Get a numeric attribute associated with a UNumberFormat.
963
+ * An example of a numeric attribute is the number of integer digits a formatter will produce.
964
+ * @param fmt The formatter to query.
965
+ * @param attr The attribute to query; one of UNUM_PARSE_INT_ONLY, UNUM_GROUPING_USED,
966
+ * UNUM_DECIMAL_ALWAYS_SHOWN, UNUM_MAX_INTEGER_DIGITS, UNUM_MIN_INTEGER_DIGITS, UNUM_INTEGER_DIGITS,
967
+ * UNUM_MAX_FRACTION_DIGITS, UNUM_MIN_FRACTION_DIGITS, UNUM_FRACTION_DIGITS, UNUM_MULTIPLIER,
968
+ * UNUM_GROUPING_SIZE, UNUM_ROUNDING_MODE, UNUM_FORMAT_WIDTH, UNUM_PADDING_POSITION, UNUM_SECONDARY_GROUPING_SIZE,
969
+ * UNUM_SCALE.
970
+ * @return The value of attr.
971
+ * @see unum_setAttribute
972
+ * @see unum_getDoubleAttribute
973
+ * @see unum_setDoubleAttribute
974
+ * @see unum_getTextAttribute
975
+ * @see unum_setTextAttribute
976
+ * @stable ICU 2.0
977
+ */
978
+ U_STABLE int32_t U_EXPORT2
979
+ unum_getAttribute(const UNumberFormat* fmt,
980
+ UNumberFormatAttribute attr);
981
+
982
+ /**
983
+ * Set a numeric attribute associated with a UNumberFormat.
984
+ * An example of a numeric attribute is the number of integer digits a formatter will produce. If the
985
+ * formatter does not understand the attribute, the call is ignored. Rule-based formatters only understand
986
+ * the lenient-parse attribute.
987
+ * @param fmt The formatter to set.
988
+ * @param attr The attribute to set; one of UNUM_PARSE_INT_ONLY, UNUM_GROUPING_USED,
989
+ * UNUM_DECIMAL_ALWAYS_SHOWN, UNUM_MAX_INTEGER_DIGITS, UNUM_MIN_INTEGER_DIGITS, UNUM_INTEGER_DIGITS,
990
+ * UNUM_MAX_FRACTION_DIGITS, UNUM_MIN_FRACTION_DIGITS, UNUM_FRACTION_DIGITS, UNUM_MULTIPLIER,
991
+ * UNUM_GROUPING_SIZE, UNUM_ROUNDING_MODE, UNUM_FORMAT_WIDTH, UNUM_PADDING_POSITION, UNUM_SECONDARY_GROUPING_SIZE,
992
+ * UNUM_LENIENT_PARSE, or UNUM_SCALE.
993
+ * @param newValue The new value of attr.
994
+ * @see unum_getAttribute
995
+ * @see unum_getDoubleAttribute
996
+ * @see unum_setDoubleAttribute
997
+ * @see unum_getTextAttribute
998
+ * @see unum_setTextAttribute
999
+ * @stable ICU 2.0
1000
+ */
1001
+ U_STABLE void U_EXPORT2
1002
+ unum_setAttribute( UNumberFormat* fmt,
1003
+ UNumberFormatAttribute attr,
1004
+ int32_t newValue);
1005
+
1006
+
1007
+ /**
1008
+ * Get a numeric attribute associated with a UNumberFormat.
1009
+ * An example of a numeric attribute is the number of integer digits a formatter will produce.
1010
+ * If the formatter does not understand the attribute, -1 is returned.
1011
+ * @param fmt The formatter to query.
1012
+ * @param attr The attribute to query; e.g. UNUM_ROUNDING_INCREMENT.
1013
+ * @return The value of attr.
1014
+ * @see unum_getAttribute
1015
+ * @see unum_setAttribute
1016
+ * @see unum_setDoubleAttribute
1017
+ * @see unum_getTextAttribute
1018
+ * @see unum_setTextAttribute
1019
+ * @stable ICU 2.0
1020
+ */
1021
+ U_STABLE double U_EXPORT2
1022
+ unum_getDoubleAttribute(const UNumberFormat* fmt,
1023
+ UNumberFormatAttribute attr);
1024
+
1025
+ /**
1026
+ * Set a numeric attribute associated with a UNumberFormat.
1027
+ * An example of a numeric attribute is the number of integer digits a formatter will produce.
1028
+ * If the formatter does not understand the attribute, this call is ignored.
1029
+ * @param fmt The formatter to set.
1030
+ * @param attr The attribute to set; e.g. UNUM_ROUNDING_INCREMENT.
1031
+ * @param newValue The new value of attr.
1032
+ * @see unum_getAttribute
1033
+ * @see unum_setAttribute
1034
+ * @see unum_getDoubleAttribute
1035
+ * @see unum_getTextAttribute
1036
+ * @see unum_setTextAttribute
1037
+ * @stable ICU 2.0
1038
+ */
1039
+ U_STABLE void U_EXPORT2
1040
+ unum_setDoubleAttribute( UNumberFormat* fmt,
1041
+ UNumberFormatAttribute attr,
1042
+ double newValue);
1043
+
1044
+ /** The possible UNumberFormat text attributes @stable ICU 2.0*/
1045
+ typedef enum UNumberFormatTextAttribute {
1046
+ /** Positive prefix */
1047
+ UNUM_POSITIVE_PREFIX,
1048
+ /** Positive suffix */
1049
+ UNUM_POSITIVE_SUFFIX,
1050
+ /** Negative prefix */
1051
+ UNUM_NEGATIVE_PREFIX,
1052
+ /** Negative suffix */
1053
+ UNUM_NEGATIVE_SUFFIX,
1054
+ /** The character used to pad to the format width. */
1055
+ UNUM_PADDING_CHARACTER,
1056
+ /** The ISO currency code */
1057
+ UNUM_CURRENCY_CODE,
1058
+ /**
1059
+ * The default rule set, such as "%spellout-numbering-year:", "%spellout-cardinal:",
1060
+ * "%spellout-ordinal-masculine-plural:", "%spellout-ordinal-feminine:", or
1061
+ * "%spellout-ordinal-neuter:". The available public rulesets can be listed using
1062
+ * unum_getTextAttribute with UNUM_PUBLIC_RULESETS. This is only available with
1063
+ * rule-based formatters.
1064
+ * @stable ICU 3.0
1065
+ */
1066
+ UNUM_DEFAULT_RULESET,
1067
+ /**
1068
+ * The public rule sets. This is only available with rule-based formatters.
1069
+ * This is a read-only attribute. The public rulesets are returned as a
1070
+ * single string, with each ruleset name delimited by ';' (semicolon). See the
1071
+ * CLDR LDML spec for more information about RBNF rulesets:
1072
+ * http://www.unicode.org/reports/tr35/tr35-numbers.html#Rule-Based_Number_Formatting
1073
+ * @stable ICU 3.0
1074
+ */
1075
+ UNUM_PUBLIC_RULESETS
1076
+ } UNumberFormatTextAttribute;
1077
+
1078
+ /**
1079
+ * Get a text attribute associated with a UNumberFormat.
1080
+ * An example of a text attribute is the suffix for positive numbers. If the formatter
1081
+ * does not understand the attribute, U_UNSUPPORTED_ERROR is returned as the status.
1082
+ * Rule-based formatters only understand UNUM_DEFAULT_RULESET and UNUM_PUBLIC_RULESETS.
1083
+ * @param fmt The formatter to query.
1084
+ * @param tag The attribute to query; one of UNUM_POSITIVE_PREFIX, UNUM_POSITIVE_SUFFIX,
1085
+ * UNUM_NEGATIVE_PREFIX, UNUM_NEGATIVE_SUFFIX, UNUM_PADDING_CHARACTER, UNUM_CURRENCY_CODE,
1086
+ * UNUM_DEFAULT_RULESET, or UNUM_PUBLIC_RULESETS.
1087
+ * @param result A pointer to a buffer to receive the attribute.
1088
+ * @param resultLength The maximum size of result.
1089
+ * @param status A pointer to an UErrorCode to receive any errors
1090
+ * @return The total buffer size needed; if greater than resultLength, the output was truncated.
1091
+ * @see unum_setTextAttribute
1092
+ * @see unum_getAttribute
1093
+ * @see unum_setAttribute
1094
+ * @stable ICU 2.0
1095
+ */
1096
+ U_STABLE int32_t U_EXPORT2
1097
+ unum_getTextAttribute( const UNumberFormat* fmt,
1098
+ UNumberFormatTextAttribute tag,
1099
+ UChar* result,
1100
+ int32_t resultLength,
1101
+ UErrorCode* status);
1102
+
1103
+ /**
1104
+ * Set a text attribute associated with a UNumberFormat.
1105
+ * An example of a text attribute is the suffix for positive numbers. Rule-based formatters
1106
+ * only understand UNUM_DEFAULT_RULESET.
1107
+ * @param fmt The formatter to set.
1108
+ * @param tag The attribute to set; one of UNUM_POSITIVE_PREFIX, UNUM_POSITIVE_SUFFIX,
1109
+ * UNUM_NEGATIVE_PREFIX, UNUM_NEGATIVE_SUFFIX, UNUM_PADDING_CHARACTER, UNUM_CURRENCY_CODE,
1110
+ * or UNUM_DEFAULT_RULESET.
1111
+ * @param newValue The new value of attr.
1112
+ * @param newValueLength The length of newValue, or -1 if null-terminated.
1113
+ * @param status A pointer to an UErrorCode to receive any errors
1114
+ * @see unum_getTextAttribute
1115
+ * @see unum_getAttribute
1116
+ * @see unum_setAttribute
1117
+ * @stable ICU 2.0
1118
+ */
1119
+ U_STABLE void U_EXPORT2
1120
+ unum_setTextAttribute( UNumberFormat* fmt,
1121
+ UNumberFormatTextAttribute tag,
1122
+ const UChar* newValue,
1123
+ int32_t newValueLength,
1124
+ UErrorCode *status);
1125
+
1126
+ /**
1127
+ * Extract the pattern from a UNumberFormat. The pattern will follow
1128
+ * the DecimalFormat pattern syntax.
1129
+ * @param fmt The formatter to query.
1130
+ * @param isPatternLocalized TRUE if the pattern should be localized,
1131
+ * FALSE otherwise. This is ignored if the formatter is a rule-based
1132
+ * formatter.
1133
+ * @param result A pointer to a buffer to receive the pattern.
1134
+ * @param resultLength The maximum size of result.
1135
+ * @param status A pointer to an input-output UErrorCode.
1136
+ * @return The total buffer size needed; if greater than resultLength,
1137
+ * the output was truncated.
1138
+ * @see unum_applyPattern
1139
+ * @see DecimalFormat
1140
+ * @stable ICU 2.0
1141
+ */
1142
+ U_STABLE int32_t U_EXPORT2
1143
+ unum_toPattern( const UNumberFormat* fmt,
1144
+ UBool isPatternLocalized,
1145
+ UChar* result,
1146
+ int32_t resultLength,
1147
+ UErrorCode* status);
1148
+
1149
+
1150
+ /**
1151
+ * Constants for specifying a number format symbol.
1152
+ * @stable ICU 2.0
1153
+ */
1154
+ typedef enum UNumberFormatSymbol {
1155
+ /** The decimal separator */
1156
+ UNUM_DECIMAL_SEPARATOR_SYMBOL = 0,
1157
+ /** The grouping separator */
1158
+ UNUM_GROUPING_SEPARATOR_SYMBOL = 1,
1159
+ /** The pattern separator */
1160
+ UNUM_PATTERN_SEPARATOR_SYMBOL = 2,
1161
+ /** The percent sign */
1162
+ UNUM_PERCENT_SYMBOL = 3,
1163
+ /** Zero*/
1164
+ UNUM_ZERO_DIGIT_SYMBOL = 4,
1165
+ /** Character representing a digit in the pattern */
1166
+ UNUM_DIGIT_SYMBOL = 5,
1167
+ /** The minus sign */
1168
+ UNUM_MINUS_SIGN_SYMBOL = 6,
1169
+ /** The plus sign */
1170
+ UNUM_PLUS_SIGN_SYMBOL = 7,
1171
+ /** The currency symbol */
1172
+ UNUM_CURRENCY_SYMBOL = 8,
1173
+ /** The international currency symbol */
1174
+ UNUM_INTL_CURRENCY_SYMBOL = 9,
1175
+ /** The monetary separator */
1176
+ UNUM_MONETARY_SEPARATOR_SYMBOL = 10,
1177
+ /** The exponential symbol */
1178
+ UNUM_EXPONENTIAL_SYMBOL = 11,
1179
+ /** Per mill symbol */
1180
+ UNUM_PERMILL_SYMBOL = 12,
1181
+ /** Escape padding character */
1182
+ UNUM_PAD_ESCAPE_SYMBOL = 13,
1183
+ /** Infinity symbol */
1184
+ UNUM_INFINITY_SYMBOL = 14,
1185
+ /** Nan symbol */
1186
+ UNUM_NAN_SYMBOL = 15,
1187
+ /** Significant digit symbol
1188
+ * @stable ICU 3.0 */
1189
+ UNUM_SIGNIFICANT_DIGIT_SYMBOL = 16,
1190
+ /** The monetary grouping separator
1191
+ * @stable ICU 3.6
1192
+ */
1193
+ UNUM_MONETARY_GROUPING_SEPARATOR_SYMBOL = 17,
1194
+ /** One
1195
+ * @stable ICU 4.6
1196
+ */
1197
+ UNUM_ONE_DIGIT_SYMBOL = 18,
1198
+ /** Two
1199
+ * @stable ICU 4.6
1200
+ */
1201
+ UNUM_TWO_DIGIT_SYMBOL = 19,
1202
+ /** Three
1203
+ * @stable ICU 4.6
1204
+ */
1205
+ UNUM_THREE_DIGIT_SYMBOL = 20,
1206
+ /** Four
1207
+ * @stable ICU 4.6
1208
+ */
1209
+ UNUM_FOUR_DIGIT_SYMBOL = 21,
1210
+ /** Five
1211
+ * @stable ICU 4.6
1212
+ */
1213
+ UNUM_FIVE_DIGIT_SYMBOL = 22,
1214
+ /** Six
1215
+ * @stable ICU 4.6
1216
+ */
1217
+ UNUM_SIX_DIGIT_SYMBOL = 23,
1218
+ /** Seven
1219
+ * @stable ICU 4.6
1220
+ */
1221
+ UNUM_SEVEN_DIGIT_SYMBOL = 24,
1222
+ /** Eight
1223
+ * @stable ICU 4.6
1224
+ */
1225
+ UNUM_EIGHT_DIGIT_SYMBOL = 25,
1226
+ /** Nine
1227
+ * @stable ICU 4.6
1228
+ */
1229
+ UNUM_NINE_DIGIT_SYMBOL = 26,
1230
+
1231
+ #ifndef U_HIDE_DRAFT_API
1232
+ /** Multiplication sign
1233
+ * @draft ICU 54
1234
+ */
1235
+ UNUM_EXPONENT_MULTIPLICATION_SYMBOL = 27,
1236
+ #endif /* U_HIDE_DRAFT_API */
1237
+
1238
+ /** count symbol constants */
1239
+ UNUM_FORMAT_SYMBOL_COUNT = 28
1240
+ } UNumberFormatSymbol;
1241
+
1242
+ /**
1243
+ * Get a symbol associated with a UNumberFormat.
1244
+ * A UNumberFormat uses symbols to represent the special locale-dependent
1245
+ * characters in a number, for example the percent sign. This API is not
1246
+ * supported for rule-based formatters.
1247
+ * @param fmt The formatter to query.
1248
+ * @param symbol The UNumberFormatSymbol constant for the symbol to get
1249
+ * @param buffer The string buffer that will receive the symbol string;
1250
+ * if it is NULL, then only the length of the symbol is returned
1251
+ * @param size The size of the string buffer
1252
+ * @param status A pointer to an UErrorCode to receive any errors
1253
+ * @return The length of the symbol; the buffer is not modified if
1254
+ * <code>length&gt;=size</code>
1255
+ * @see unum_setSymbol
1256
+ * @stable ICU 2.0
1257
+ */
1258
+ U_STABLE int32_t U_EXPORT2
1259
+ unum_getSymbol(const UNumberFormat *fmt,
1260
+ UNumberFormatSymbol symbol,
1261
+ UChar *buffer,
1262
+ int32_t size,
1263
+ UErrorCode *status);
1264
+
1265
+ /**
1266
+ * Set a symbol associated with a UNumberFormat.
1267
+ * A UNumberFormat uses symbols to represent the special locale-dependent
1268
+ * characters in a number, for example the percent sign. This API is not
1269
+ * supported for rule-based formatters.
1270
+ * @param fmt The formatter to set.
1271
+ * @param symbol The UNumberFormatSymbol constant for the symbol to set
1272
+ * @param value The string to set the symbol to
1273
+ * @param length The length of the string, or -1 for a zero-terminated string
1274
+ * @param status A pointer to an UErrorCode to receive any errors.
1275
+ * @see unum_getSymbol
1276
+ * @stable ICU 2.0
1277
+ */
1278
+ U_STABLE void U_EXPORT2
1279
+ unum_setSymbol(UNumberFormat *fmt,
1280
+ UNumberFormatSymbol symbol,
1281
+ const UChar *value,
1282
+ int32_t length,
1283
+ UErrorCode *status);
1284
+
1285
+
1286
+ /**
1287
+ * Get the locale for this number format object.
1288
+ * You can choose between valid and actual locale.
1289
+ * @param fmt The formatter to get the locale from
1290
+ * @param type type of the locale we're looking for (valid or actual)
1291
+ * @param status error code for the operation
1292
+ * @return the locale name
1293
+ * @stable ICU 2.8
1294
+ */
1295
+ U_STABLE const char* U_EXPORT2
1296
+ unum_getLocaleByType(const UNumberFormat *fmt,
1297
+ ULocDataLocaleType type,
1298
+ UErrorCode* status);
1299
+
1300
+ #ifndef U_HIDE_DRAFT_API
1301
+ /**
1302
+ * Set a particular UDisplayContext value in the formatter, such as
1303
+ * UDISPCTX_CAPITALIZATION_FOR_STANDALONE.
1304
+ * @param fmt The formatter for which to set a UDisplayContext value.
1305
+ * @param value The UDisplayContext value to set.
1306
+ * @param status A pointer to an UErrorCode to receive any errors
1307
+ * @draft ICU 53
1308
+ */
1309
+ U_DRAFT void U_EXPORT2
1310
+ unum_setContext(UNumberFormat* fmt, UDisplayContext value, UErrorCode* status);
1311
+
1312
+ /**
1313
+ * Get the formatter's UDisplayContext value for the specified UDisplayContextType,
1314
+ * such as UDISPCTX_TYPE_CAPITALIZATION.
1315
+ * @param fmt The formatter to query.
1316
+ * @param type The UDisplayContextType whose value to return
1317
+ * @param status A pointer to an UErrorCode to receive any errors
1318
+ * @return The UDisplayContextValue for the specified type.
1319
+ * @draft ICU 53
1320
+ */
1321
+ U_DRAFT UDisplayContext U_EXPORT2
1322
+ unum_getContext(const UNumberFormat *fmt, UDisplayContextType type, UErrorCode* status);
1323
+
1324
+ #endif /* U_HIDE_DRAFT_API */
1325
+
1326
+ #endif /* #if !UCONFIG_NO_FORMATTING */
1327
+
1328
+ #endif