pango 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (530) hide show
  1. checksums.yaml +7 -0
  2. data/README +33 -0
  3. data/Rakefile +65 -0
  4. data/ext/pango/depend +12 -0
  5. data/ext/pango/extconf.rb +90 -0
  6. data/ext/pango/pango.def +18 -0
  7. data/ext/pango/rbpango.c +318 -0
  8. data/ext/pango/rbpango.h +96 -0
  9. data/ext/pango/rbpangoanalysis.c +218 -0
  10. data/ext/pango/rbpangoattribute.c +499 -0
  11. data/ext/pango/rbpangoattriterator.c +141 -0
  12. data/ext/pango/rbpangoattrlist.c +101 -0
  13. data/ext/pango/rbpangocairo.c +122 -0
  14. data/ext/pango/rbpangocairocontext.c +131 -0
  15. data/ext/pango/rbpangocolor.c +120 -0
  16. data/ext/pango/rbpangocontext.c +309 -0
  17. data/ext/pango/rbpangoconversions.h +111 -0
  18. data/ext/pango/rbpangocoverage.c +106 -0
  19. data/ext/pango/rbpangoengine.c +73 -0
  20. data/ext/pango/rbpangofont.c +110 -0
  21. data/ext/pango/rbpangofontdescription.c +282 -0
  22. data/ext/pango/rbpangofontface.c +73 -0
  23. data/ext/pango/rbpangofontfamily.c +79 -0
  24. data/ext/pango/rbpangofontmap.c +102 -0
  25. data/ext/pango/rbpangofontmetrics.c +85 -0
  26. data/ext/pango/rbpangofontset.c +69 -0
  27. data/ext/pango/rbpangofontsetsimple.c +60 -0
  28. data/ext/pango/rbpangoglyphinfo.c +123 -0
  29. data/ext/pango/rbpangoglyphitem.c +125 -0
  30. data/ext/pango/rbpangoglyphstring.c +151 -0
  31. data/ext/pango/rbpangogravity.c +54 -0
  32. data/ext/pango/rbpangoitem.c +95 -0
  33. data/ext/pango/rbpangolanguage.c +86 -0
  34. data/ext/pango/rbpangolayout.c +572 -0
  35. data/ext/pango/rbpangolayoutiter.c +189 -0
  36. data/ext/pango/rbpangolayoutline.c +239 -0
  37. data/ext/pango/rbpangologattr.c +109 -0
  38. data/ext/pango/rbpangomatrix.c +143 -0
  39. data/ext/pango/rbpangoprivate.h +49 -0
  40. data/ext/pango/rbpangorectangle.c +170 -0
  41. data/ext/pango/rbpangorenderer.c +193 -0
  42. data/ext/pango/rbpangoscript.c +84 -0
  43. data/ext/pango/rbpangoscriptiter.c +92 -0
  44. data/ext/pango/rbpangotabarray.c +128 -0
  45. data/extconf.rb +49 -0
  46. data/lib/2.0/pango.so +0 -0
  47. data/lib/2.1/pango.so +0 -0
  48. data/lib/2.2/pango.so +0 -0
  49. data/lib/pango.rb +79 -0
  50. data/sample/attribute.rb +82 -0
  51. data/sample/break.rb +28 -0
  52. data/sample/gdk_layout.rb +27 -0
  53. data/sample/glyphstring.rb +61 -0
  54. data/sample/item.rb +37 -0
  55. data/sample/label.rb +23 -0
  56. data/sample/layout.rb +102 -0
  57. data/sample/pango_cairo.rb +66 -0
  58. data/sample/parse.rb +33 -0
  59. data/sample/sample.txt +10 -0
  60. data/sample/script.rb +23 -0
  61. data/test/pango-test-utils.rb +9 -0
  62. data/test/run-test.rb +28 -0
  63. data/test/test-analysis.rb +26 -0
  64. data/test/test-attribute.rb +19 -0
  65. data/test/test-color.rb +47 -0
  66. data/test/test-language.rb +7 -0
  67. data/test/test-layout.rb +34 -0
  68. data/test/test-log-attr.rb +26 -0
  69. data/test/test-matrix.rb +26 -0
  70. data/test/test-rectangle.rb +26 -0
  71. data/vendor/local/bin/derb.exe +0 -0
  72. data/vendor/local/bin/genbrk.exe +0 -0
  73. data/vendor/local/bin/genccode.exe +0 -0
  74. data/vendor/local/bin/gencfu.exe +0 -0
  75. data/vendor/local/bin/gencmn.exe +0 -0
  76. data/vendor/local/bin/gencnval.exe +0 -0
  77. data/vendor/local/bin/gendict.exe +0 -0
  78. data/vendor/local/bin/gennorm2.exe +0 -0
  79. data/vendor/local/bin/genrb.exe +0 -0
  80. data/vendor/local/bin/gensprep.exe +0 -0
  81. data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
  82. data/vendor/local/bin/hb-shape.exe +0 -0
  83. data/vendor/local/bin/hb-view.exe +0 -0
  84. data/vendor/local/bin/icu-config +820 -0
  85. data/vendor/local/bin/icuinfo.exe +0 -0
  86. data/vendor/local/bin/icupkg.exe +0 -0
  87. data/vendor/local/bin/libharfbuzz-0.dll +0 -0
  88. data/vendor/local/bin/libpango-1.0-0.dll +0 -0
  89. data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
  90. data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
  91. data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
  92. data/vendor/local/bin/makeconv.exe +0 -0
  93. data/vendor/local/bin/pango-querymodules.exe +0 -0
  94. data/vendor/local/bin/pango-view.exe +0 -0
  95. data/vendor/local/bin/pkgdata.exe +0 -0
  96. data/vendor/local/bin/uconv.exe +0 -0
  97. data/vendor/local/etc/pango/pango.modules +19 -0
  98. data/vendor/local/include/harfbuzz/hb-blob.h +126 -0
  99. data/vendor/local/include/harfbuzz/hb-buffer.h +344 -0
  100. data/vendor/local/include/harfbuzz/hb-common.h +344 -0
  101. data/vendor/local/include/harfbuzz/hb-deprecated.h +51 -0
  102. data/vendor/local/include/harfbuzz/hb-face.h +117 -0
  103. data/vendor/local/include/harfbuzz/hb-font.h +507 -0
  104. data/vendor/local/include/harfbuzz/hb-ft.h +62 -0
  105. data/vendor/local/include/harfbuzz/hb-glib.h +52 -0
  106. data/vendor/local/include/harfbuzz/hb-icu.h +52 -0
  107. data/vendor/local/include/harfbuzz/hb-ot-font.h +41 -0
  108. data/vendor/local/include/harfbuzz/hb-ot-layout.h +302 -0
  109. data/vendor/local/include/harfbuzz/hb-ot-shape.h +53 -0
  110. data/vendor/local/include/harfbuzz/hb-ot-tag.h +59 -0
  111. data/vendor/local/include/harfbuzz/hb-ot.h +43 -0
  112. data/vendor/local/include/harfbuzz/hb-set.h +154 -0
  113. data/vendor/local/include/harfbuzz/hb-shape-plan.h +89 -0
  114. data/vendor/local/include/harfbuzz/hb-shape.h +81 -0
  115. data/vendor/local/include/harfbuzz/hb-unicode.h +445 -0
  116. data/vendor/local/include/harfbuzz/hb-version.h +66 -0
  117. data/vendor/local/include/harfbuzz/hb.h +47 -0
  118. data/vendor/local/include/layout/LEFontInstance.h +550 -0
  119. data/vendor/local/include/layout/LEGlyphFilter.h +45 -0
  120. data/vendor/local/include/layout/LEGlyphStorage.h +546 -0
  121. data/vendor/local/include/layout/LEInsertionList.h +177 -0
  122. data/vendor/local/include/layout/LELanguages.h +112 -0
  123. data/vendor/local/include/layout/LEScripts.h +263 -0
  124. data/vendor/local/include/layout/LESwaps.h +100 -0
  125. data/vendor/local/include/layout/LETableReference.h +418 -0
  126. data/vendor/local/include/layout/LETypes.h +728 -0
  127. data/vendor/local/include/layout/LayoutEngine.h +518 -0
  128. data/vendor/local/include/layout/ParagraphLayout.h +747 -0
  129. data/vendor/local/include/layout/RunArrays.h +676 -0
  130. data/vendor/local/include/layout/loengine.h +225 -0
  131. data/vendor/local/include/layout/playout.h +466 -0
  132. data/vendor/local/include/layout/plruns.h +441 -0
  133. data/vendor/local/include/pango-1.0/pango/pango-attributes.h +514 -0
  134. data/vendor/local/include/pango-1.0/pango/pango-bidi-type.h +136 -0
  135. data/vendor/local/include/pango-1.0/pango/pango-break.h +173 -0
  136. data/vendor/local/include/pango-1.0/pango/pango-context.h +112 -0
  137. data/vendor/local/include/pango-1.0/pango/pango-coverage.h +79 -0
  138. data/vendor/local/include/pango-1.0/pango/pango-engine.h +429 -0
  139. data/vendor/local/include/pango-1.0/pango/pango-enum-types.h +69 -0
  140. data/vendor/local/include/pango-1.0/pango/pango-features.h +12 -0
  141. data/vendor/local/include/pango-1.0/pango/pango-font.h +622 -0
  142. data/vendor/local/include/pango-1.0/pango/pango-fontmap.h +167 -0
  143. data/vendor/local/include/pango-1.0/pango/pango-fontset.h +169 -0
  144. data/vendor/local/include/pango-1.0/pango/pango-glyph-item.h +158 -0
  145. data/vendor/local/include/pango-1.0/pango/pango-glyph.h +197 -0
  146. data/vendor/local/include/pango-1.0/pango/pango-gravity.h +128 -0
  147. data/vendor/local/include/pango-1.0/pango/pango-item.h +109 -0
  148. data/vendor/local/include/pango-1.0/pango/pango-language.h +61 -0
  149. data/vendor/local/include/pango-1.0/pango/pango-layout.h +340 -0
  150. data/vendor/local/include/pango-1.0/pango/pango-matrix.h +117 -0
  151. data/vendor/local/include/pango-1.0/pango/pango-modules.h +71 -0
  152. data/vendor/local/include/pango-1.0/pango/pango-ot.h +391 -0
  153. data/vendor/local/include/pango-1.0/pango/pango-renderer.h +260 -0
  154. data/vendor/local/include/pango-1.0/pango/pango-script.h +260 -0
  155. data/vendor/local/include/pango-1.0/pango/pango-tabs.h +87 -0
  156. data/vendor/local/include/pango-1.0/pango/pango-types.h +200 -0
  157. data/vendor/local/include/pango-1.0/pango/pango-utils.h +189 -0
  158. data/vendor/local/include/pango-1.0/pango/pango.h +48 -0
  159. data/vendor/local/include/pango-1.0/pango/pangocairo.h +169 -0
  160. data/vendor/local/include/pango-1.0/pango/pangofc-decoder.h +110 -0
  161. data/vendor/local/include/pango-1.0/pango/pangofc-font.h +153 -0
  162. data/vendor/local/include/pango-1.0/pango/pangofc-fontmap.h +289 -0
  163. data/vendor/local/include/pango-1.0/pango/pangoft2.h +133 -0
  164. data/vendor/local/include/pango-1.0/pango/pangowin32.h +128 -0
  165. data/vendor/local/include/unicode/alphaindex.h +752 -0
  166. data/vendor/local/include/unicode/appendable.h +232 -0
  167. data/vendor/local/include/unicode/basictz.h +214 -0
  168. data/vendor/local/include/unicode/brkiter.h +655 -0
  169. data/vendor/local/include/unicode/bytestream.h +257 -0
  170. data/vendor/local/include/unicode/bytestrie.h +519 -0
  171. data/vendor/local/include/unicode/bytestriebuilder.h +181 -0
  172. data/vendor/local/include/unicode/calendar.h +2519 -0
  173. data/vendor/local/include/unicode/caniter.h +208 -0
  174. data/vendor/local/include/unicode/chariter.h +722 -0
  175. data/vendor/local/include/unicode/choicfmt.h +594 -0
  176. data/vendor/local/include/unicode/coleitr.h +404 -0
  177. data/vendor/local/include/unicode/coll.h +1267 -0
  178. data/vendor/local/include/unicode/compactdecimalformat.h +330 -0
  179. data/vendor/local/include/unicode/curramt.h +130 -0
  180. data/vendor/local/include/unicode/currpinf.h +258 -0
  181. data/vendor/local/include/unicode/currunit.h +110 -0
  182. data/vendor/local/include/unicode/datefmt.h +883 -0
  183. data/vendor/local/include/unicode/dbbi.h +40 -0
  184. data/vendor/local/include/unicode/dcfmtsym.h +482 -0
  185. data/vendor/local/include/unicode/decimfmt.h +2479 -0
  186. data/vendor/local/include/unicode/docmain.h +215 -0
  187. data/vendor/local/include/unicode/dtfmtsym.h +912 -0
  188. data/vendor/local/include/unicode/dtintrv.h +158 -0
  189. data/vendor/local/include/unicode/dtitvfmt.h +985 -0
  190. data/vendor/local/include/unicode/dtitvinf.h +514 -0
  191. data/vendor/local/include/unicode/dtptngen.h +498 -0
  192. data/vendor/local/include/unicode/dtrule.h +250 -0
  193. data/vendor/local/include/unicode/enumset.h +64 -0
  194. data/vendor/local/include/unicode/errorcode.h +137 -0
  195. data/vendor/local/include/unicode/fieldpos.h +291 -0
  196. data/vendor/local/include/unicode/filteredbrk.h +131 -0
  197. data/vendor/local/include/unicode/fmtable.h +760 -0
  198. data/vendor/local/include/unicode/format.h +305 -0
  199. data/vendor/local/include/unicode/fpositer.h +117 -0
  200. data/vendor/local/include/unicode/gender.h +111 -0
  201. data/vendor/local/include/unicode/gregocal.h +777 -0
  202. data/vendor/local/include/unicode/icudataver.h +41 -0
  203. data/vendor/local/include/unicode/icuplug.h +371 -0
  204. data/vendor/local/include/unicode/idna.h +323 -0
  205. data/vendor/local/include/unicode/listformatter.h +167 -0
  206. data/vendor/local/include/unicode/localpointer.h +304 -0
  207. data/vendor/local/include/unicode/locdspnm.h +204 -0
  208. data/vendor/local/include/unicode/locid.h +815 -0
  209. data/vendor/local/include/unicode/measfmt.h +389 -0
  210. data/vendor/local/include/unicode/measunit.h +1443 -0
  211. data/vendor/local/include/unicode/measure.h +159 -0
  212. data/vendor/local/include/unicode/messagepattern.h +943 -0
  213. data/vendor/local/include/unicode/msgfmt.h +1093 -0
  214. data/vendor/local/include/unicode/normalizer2.h +658 -0
  215. data/vendor/local/include/unicode/normlzr.h +797 -0
  216. data/vendor/local/include/unicode/numfmt.h +1187 -0
  217. data/vendor/local/include/unicode/numsys.h +208 -0
  218. data/vendor/local/include/unicode/parseerr.h +92 -0
  219. data/vendor/local/include/unicode/parsepos.h +230 -0
  220. data/vendor/local/include/unicode/platform.h +751 -0
  221. data/vendor/local/include/unicode/plurfmt.h +615 -0
  222. data/vendor/local/include/unicode/plurrule.h +501 -0
  223. data/vendor/local/include/unicode/ptypes.h +126 -0
  224. data/vendor/local/include/unicode/putil.h +181 -0
  225. data/vendor/local/include/unicode/rbbi.h +782 -0
  226. data/vendor/local/include/unicode/rbnf.h +1032 -0
  227. data/vendor/local/include/unicode/rbtz.h +362 -0
  228. data/vendor/local/include/unicode/regex.h +1857 -0
  229. data/vendor/local/include/unicode/region.h +228 -0
  230. data/vendor/local/include/unicode/reldatefmt.h +498 -0
  231. data/vendor/local/include/unicode/rep.h +261 -0
  232. data/vendor/local/include/unicode/resbund.h +490 -0
  233. data/vendor/local/include/unicode/schriter.h +187 -0
  234. data/vendor/local/include/unicode/scientificformathelper.h +139 -0
  235. data/vendor/local/include/unicode/search.h +575 -0
  236. data/vendor/local/include/unicode/selfmt.h +367 -0
  237. data/vendor/local/include/unicode/simpletz.h +928 -0
  238. data/vendor/local/include/unicode/smpdtfmt.h +1592 -0
  239. data/vendor/local/include/unicode/sortkey.h +338 -0
  240. data/vendor/local/include/unicode/std_string.h +37 -0
  241. data/vendor/local/include/unicode/strenum.h +276 -0
  242. data/vendor/local/include/unicode/stringpiece.h +224 -0
  243. data/vendor/local/include/unicode/stringtriebuilder.h +402 -0
  244. data/vendor/local/include/unicode/stsearch.h +504 -0
  245. data/vendor/local/include/unicode/symtable.h +112 -0
  246. data/vendor/local/include/unicode/tblcoll.h +873 -0
  247. data/vendor/local/include/unicode/timezone.h +948 -0
  248. data/vendor/local/include/unicode/tmunit.h +129 -0
  249. data/vendor/local/include/unicode/tmutamt.h +168 -0
  250. data/vendor/local/include/unicode/tmutfmt.h +243 -0
  251. data/vendor/local/include/unicode/translit.h +1342 -0
  252. data/vendor/local/include/unicode/tzfmt.h +1098 -0
  253. data/vendor/local/include/unicode/tznames.h +404 -0
  254. data/vendor/local/include/unicode/tzrule.h +828 -0
  255. data/vendor/local/include/unicode/tztrans.h +195 -0
  256. data/vendor/local/include/unicode/ubidi.h +2186 -0
  257. data/vendor/local/include/unicode/ubrk.h +540 -0
  258. data/vendor/local/include/unicode/ucal.h +1560 -0
  259. data/vendor/local/include/unicode/ucasemap.h +423 -0
  260. data/vendor/local/include/unicode/ucat.h +158 -0
  261. data/vendor/local/include/unicode/uchar.h +3426 -0
  262. data/vendor/local/include/unicode/ucharstrie.h +576 -0
  263. data/vendor/local/include/unicode/ucharstriebuilder.h +185 -0
  264. data/vendor/local/include/unicode/uchriter.h +381 -0
  265. data/vendor/local/include/unicode/uclean.h +258 -0
  266. data/vendor/local/include/unicode/ucnv.h +2036 -0
  267. data/vendor/local/include/unicode/ucnv_cb.h +162 -0
  268. data/vendor/local/include/unicode/ucnv_err.h +463 -0
  269. data/vendor/local/include/unicode/ucnvsel.h +187 -0
  270. data/vendor/local/include/unicode/ucol.h +1474 -0
  271. data/vendor/local/include/unicode/ucoleitr.h +266 -0
  272. data/vendor/local/include/unicode/uconfig.h +430 -0
  273. data/vendor/local/include/unicode/ucsdet.h +413 -0
  274. data/vendor/local/include/unicode/ucurr.h +424 -0
  275. data/vendor/local/include/unicode/udat.h +1536 -0
  276. data/vendor/local/include/unicode/udata.h +430 -0
  277. data/vendor/local/include/unicode/udateintervalformat.h +181 -0
  278. data/vendor/local/include/unicode/udatpg.h +588 -0
  279. data/vendor/local/include/unicode/udisplaycontext.h +150 -0
  280. data/vendor/local/include/unicode/uenum.h +206 -0
  281. data/vendor/local/include/unicode/uformattable.h +280 -0
  282. data/vendor/local/include/unicode/ugender.h +82 -0
  283. data/vendor/local/include/unicode/uidna.h +762 -0
  284. data/vendor/local/include/unicode/uiter.h +707 -0
  285. data/vendor/local/include/unicode/uldnames.h +302 -0
  286. data/vendor/local/include/unicode/uloc.h +1256 -0
  287. data/vendor/local/include/unicode/ulocdata.h +277 -0
  288. data/vendor/local/include/unicode/umachine.h +356 -0
  289. data/vendor/local/include/unicode/umisc.h +60 -0
  290. data/vendor/local/include/unicode/umsg.h +623 -0
  291. data/vendor/local/include/unicode/unifilt.h +120 -0
  292. data/vendor/local/include/unicode/unifunct.h +125 -0
  293. data/vendor/local/include/unicode/unimatch.h +163 -0
  294. data/vendor/local/include/unicode/unirepl.h +97 -0
  295. data/vendor/local/include/unicode/uniset.h +1691 -0
  296. data/vendor/local/include/unicode/unistr.h +4470 -0
  297. data/vendor/local/include/unicode/unorm.h +561 -0
  298. data/vendor/local/include/unicode/unorm2.h +528 -0
  299. data/vendor/local/include/unicode/unum.h +1328 -0
  300. data/vendor/local/include/unicode/unumsys.h +170 -0
  301. data/vendor/local/include/unicode/uobject.h +320 -0
  302. data/vendor/local/include/unicode/upluralrules.h +145 -0
  303. data/vendor/local/include/unicode/uregex.h +1591 -0
  304. data/vendor/local/include/unicode/uregion.h +248 -0
  305. data/vendor/local/include/unicode/urename.h +1784 -0
  306. data/vendor/local/include/unicode/urep.h +155 -0
  307. data/vendor/local/include/unicode/ures.h +887 -0
  308. data/vendor/local/include/unicode/uscript.h +642 -0
  309. data/vendor/local/include/unicode/usearch.h +885 -0
  310. data/vendor/local/include/unicode/uset.h +1126 -0
  311. data/vendor/local/include/unicode/usetiter.h +318 -0
  312. data/vendor/local/include/unicode/ushape.h +474 -0
  313. data/vendor/local/include/unicode/uspoof.h +1064 -0
  314. data/vendor/local/include/unicode/usprep.h +269 -0
  315. data/vendor/local/include/unicode/ustdio.h +1018 -0
  316. data/vendor/local/include/unicode/ustream.h +68 -0
  317. data/vendor/local/include/unicode/ustring.h +1700 -0
  318. data/vendor/local/include/unicode/ustringtrie.h +95 -0
  319. data/vendor/local/include/unicode/utext.h +1600 -0
  320. data/vendor/local/include/unicode/utf.h +223 -0
  321. data/vendor/local/include/unicode/utf16.h +623 -0
  322. data/vendor/local/include/unicode/utf32.h +23 -0
  323. data/vendor/local/include/unicode/utf8.h +824 -0
  324. data/vendor/local/include/unicode/utf_old.h +1169 -0
  325. data/vendor/local/include/unicode/utmscale.h +481 -0
  326. data/vendor/local/include/unicode/utrace.h +359 -0
  327. data/vendor/local/include/unicode/utrans.h +658 -0
  328. data/vendor/local/include/unicode/utypes.h +723 -0
  329. data/vendor/local/include/unicode/uvernum.h +170 -0
  330. data/vendor/local/include/unicode/uversion.h +193 -0
  331. data/vendor/local/include/unicode/vtzone.h +455 -0
  332. data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
  333. data/vendor/local/lib/girepository-1.0/PangoCairo-1.0.typelib +0 -0
  334. data/vendor/local/lib/girepository-1.0/PangoFT2-1.0.typelib +0 -0
  335. data/vendor/local/lib/icu/54.1/Makefile.inc +293 -0
  336. data/vendor/local/lib/icu/54.1/pkgdata.inc +17 -0
  337. data/vendor/local/lib/icu/Makefile.inc +293 -0
  338. data/vendor/local/lib/icu/pkgdata.inc +17 -0
  339. data/vendor/local/lib/icudt.dll +0 -0
  340. data/vendor/local/lib/icudt54.dll +0 -0
  341. data/vendor/local/lib/icuin.dll +0 -0
  342. data/vendor/local/lib/icuin54.dll +0 -0
  343. data/vendor/local/lib/icuio.dll +0 -0
  344. data/vendor/local/lib/icuio54.dll +0 -0
  345. data/vendor/local/lib/icule.dll +0 -0
  346. data/vendor/local/lib/icule54.dll +0 -0
  347. data/vendor/local/lib/iculx.dll +0 -0
  348. data/vendor/local/lib/iculx54.dll +0 -0
  349. data/vendor/local/lib/icutest.dll +0 -0
  350. data/vendor/local/lib/icutest54.dll +0 -0
  351. data/vendor/local/lib/icutu.dll +0 -0
  352. data/vendor/local/lib/icutu54.dll +0 -0
  353. data/vendor/local/lib/icuuc.dll +0 -0
  354. data/vendor/local/lib/icuuc54.dll +0 -0
  355. data/vendor/local/lib/libharfbuzz-icu.a +0 -0
  356. data/vendor/local/lib/libharfbuzz-icu.la +41 -0
  357. data/vendor/local/lib/libharfbuzz.dll.a +0 -0
  358. data/vendor/local/lib/libharfbuzz.la +41 -0
  359. data/vendor/local/lib/libicudt.dll.a +0 -0
  360. data/vendor/local/lib/libicuin.dll.a +0 -0
  361. data/vendor/local/lib/libicuio.dll.a +0 -0
  362. data/vendor/local/lib/libicule.dll.a +0 -0
  363. data/vendor/local/lib/libiculx.dll.a +0 -0
  364. data/vendor/local/lib/libicutest.dll.a +0 -0
  365. data/vendor/local/lib/libicutu.dll.a +0 -0
  366. data/vendor/local/lib/libicuuc.dll.a +0 -0
  367. data/vendor/local/lib/libpango-1.0.dll.a +0 -0
  368. data/vendor/local/lib/libpango-1.0.la +41 -0
  369. data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
  370. data/vendor/local/lib/libpangocairo-1.0.la +41 -0
  371. data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
  372. data/vendor/local/lib/libpangoft2-1.0.la +41 -0
  373. data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
  374. data/vendor/local/lib/libpangowin32-1.0.la +41 -0
  375. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll +0 -0
  376. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll.a +0 -0
  377. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.la +41 -0
  378. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll +0 -0
  379. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll.a +0 -0
  380. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.la +41 -0
  381. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll +0 -0
  382. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll.a +0 -0
  383. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.la +41 -0
  384. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll +0 -0
  385. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll.a +0 -0
  386. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.la +41 -0
  387. data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +13 -0
  388. data/vendor/local/lib/pkgconfig/harfbuzz.pc +11 -0
  389. data/vendor/local/lib/pkgconfig/icu-i18n.pc +38 -0
  390. data/vendor/local/lib/pkgconfig/icu-io.pc +38 -0
  391. data/vendor/local/lib/pkgconfig/icu-le.pc +38 -0
  392. data/vendor/local/lib/pkgconfig/icu-lx.pc +38 -0
  393. data/vendor/local/lib/pkgconfig/icu-uc.pc +38 -0
  394. data/vendor/local/lib/pkgconfig/pango.pc +14 -0
  395. data/vendor/local/lib/pkgconfig/pangocairo.pc +11 -0
  396. data/vendor/local/lib/pkgconfig/pangoft2.pc +12 -0
  397. data/vendor/local/lib/pkgconfig/pangowin32.pc +11 -0
  398. data/vendor/local/share/gir-1.0/Pango-1.0.gir +13329 -0
  399. data/vendor/local/share/gir-1.0/PangoCairo-1.0.gir +833 -0
  400. data/vendor/local/share/gir-1.0/PangoFT2-1.0.gir +354 -0
  401. data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +75 -0
  402. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +1449 -0
  403. data/vendor/local/share/gtk-doc/html/harfbuzz/ch01.html +98 -0
  404. data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +46 -0
  405. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +610 -0
  406. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-buffer.html +1780 -0
  407. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +1337 -0
  408. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +144 -0
  409. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +99 -0
  410. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +630 -0
  411. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +2529 -0
  412. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +188 -0
  413. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +120 -0
  414. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +50 -0
  415. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +120 -0
  416. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +120 -0
  417. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +771 -0
  418. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +172 -0
  419. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +50 -0
  420. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +966 -0
  421. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +405 -0
  422. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape.html +286 -0
  423. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +1523 -0
  424. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +100 -0
  425. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +182 -0
  426. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +50 -0
  427. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +378 -0
  428. data/vendor/local/share/gtk-doc/html/harfbuzz/home.png +0 -0
  429. data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +105 -0
  430. data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +496 -0
  431. data/vendor/local/share/gtk-doc/html/harfbuzz/left-insensitive.png +0 -0
  432. data/vendor/local/share/gtk-doc/html/harfbuzz/left.png +0 -0
  433. data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +59 -0
  434. data/vendor/local/share/gtk-doc/html/harfbuzz/right-insensitive.png +0 -0
  435. data/vendor/local/share/gtk-doc/html/harfbuzz/right.png +0 -0
  436. data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +476 -0
  437. data/vendor/local/share/gtk-doc/html/harfbuzz/up-insensitive.png +0 -0
  438. data/vendor/local/share/gtk-doc/html/harfbuzz/up.png +0 -0
  439. data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +224 -0
  440. data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +255 -0
  441. data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +246 -0
  442. data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +500 -0
  443. data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +1001 -0
  444. data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +301 -0
  445. data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +1219 -0
  446. data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +89 -0
  447. data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +135 -0
  448. data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +49 -0
  449. data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +64 -0
  450. data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +228 -0
  451. data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +152 -0
  452. data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +122 -0
  453. data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +87 -0
  454. data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +124 -0
  455. data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +97 -0
  456. data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +46 -0
  457. data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +39 -0
  458. data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +39 -0
  459. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +53 -0
  460. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +42 -0
  461. data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +38 -0
  462. data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +201 -0
  463. data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +165 -0
  464. data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +171 -0
  465. data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +284 -0
  466. data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +2968 -0
  467. data/vendor/local/share/gtk-doc/html/pango/home.png +0 -0
  468. data/vendor/local/share/gtk-doc/html/pango/index.html +146 -0
  469. data/vendor/local/share/gtk-doc/html/pango/index.sgml +957 -0
  470. data/vendor/local/share/gtk-doc/html/pango/layout.gif +0 -0
  471. data/vendor/local/share/gtk-doc/html/pango/left-insensitive.png +0 -0
  472. data/vendor/local/share/gtk-doc/html/pango/left.png +0 -0
  473. data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +68 -0
  474. data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +514 -0
  475. data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +1632 -0
  476. data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +115 -0
  477. data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +508 -0
  478. data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +358 -0
  479. data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +4154 -0
  480. data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +956 -0
  481. data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +2627 -0
  482. data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +4153 -0
  483. data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +965 -0
  484. data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +331 -0
  485. data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +2202 -0
  486. data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +1430 -0
  487. data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +582 -0
  488. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +3356 -0
  489. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +2079 -0
  490. data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +325 -0
  491. data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +523 -0
  492. data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +1028 -0
  493. data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +1275 -0
  494. data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +91 -0
  495. data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +131 -0
  496. data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +786 -0
  497. data/vendor/local/share/gtk-doc/html/pango/pango.html +63 -0
  498. data/vendor/local/share/gtk-doc/html/pango/rendering.html +47 -0
  499. data/vendor/local/share/gtk-doc/html/pango/right-insensitive.png +0 -0
  500. data/vendor/local/share/gtk-doc/html/pango/right.png +0 -0
  501. data/vendor/local/share/gtk-doc/html/pango/rotated-text.png +0 -0
  502. data/vendor/local/share/gtk-doc/html/pango/style.css +476 -0
  503. data/vendor/local/share/gtk-doc/html/pango/tools.html +33 -0
  504. data/vendor/local/share/gtk-doc/html/pango/up-insensitive.png +0 -0
  505. data/vendor/local/share/gtk-doc/html/pango/up.png +0 -0
  506. data/vendor/local/share/icu/54.1/config/mh-mingw64 +158 -0
  507. data/vendor/local/share/icu/54.1/install-sh +251 -0
  508. data/vendor/local/share/icu/54.1/license.html +385 -0
  509. data/vendor/local/share/icu/54.1/mkinstalldirs +43 -0
  510. data/vendor/local/share/license/harfbuzz/AUTHORS +9 -0
  511. data/vendor/local/share/license/harfbuzz/COPYING +36 -0
  512. data/vendor/local/share/license/pango/AUTHORS +2 -0
  513. data/vendor/local/share/license/pango/COPYING +482 -0
  514. data/vendor/local/share/man/man1/derb.1 +196 -0
  515. data/vendor/local/share/man/man1/genbrk.1 +112 -0
  516. data/vendor/local/share/man/man1/gencfu.1 +91 -0
  517. data/vendor/local/share/man/man1/gencnval.1 +91 -0
  518. data/vendor/local/share/man/man1/gendict.1 +131 -0
  519. data/vendor/local/share/man/man1/genrb.1 +146 -0
  520. data/vendor/local/share/man/man1/icu-config.1 +288 -0
  521. data/vendor/local/share/man/man1/makeconv.1 +112 -0
  522. data/vendor/local/share/man/man1/pango-querymodules.1 +106 -0
  523. data/vendor/local/share/man/man1/pango-view.1 +1 -0
  524. data/vendor/local/share/man/man1/pkgdata.1 +258 -0
  525. data/vendor/local/share/man/man1/uconv.1 +443 -0
  526. data/vendor/local/share/man/man8/genccode.8 +106 -0
  527. data/vendor/local/share/man/man8/gencmn.8 +129 -0
  528. data/vendor/local/share/man/man8/gensprep.8 +102 -0
  529. data/vendor/local/share/man/man8/icupkg.8 +204 -0
  530. metadata +599 -0
@@ -0,0 +1,883 @@
1
+ /*
2
+ ********************************************************************************
3
+ * Copyright (C) 1997-2014, International Business Machines
4
+ * Corporation and others. All Rights Reserved.
5
+ ********************************************************************************
6
+ *
7
+ * File DATEFMT.H
8
+ *
9
+ * Modification History:
10
+ *
11
+ * Date Name Description
12
+ * 02/19/97 aliu Converted from java.
13
+ * 04/01/97 aliu Added support for centuries.
14
+ * 07/23/98 stephen JDK 1.2 sync
15
+ * 11/15/99 weiv Added support for week of year/day of week formatting
16
+ ********************************************************************************
17
+ */
18
+
19
+ #ifndef DATEFMT_H
20
+ #define DATEFMT_H
21
+
22
+ #include "unicode/utypes.h"
23
+
24
+ #if !UCONFIG_NO_FORMATTING
25
+
26
+ #include "unicode/udat.h"
27
+ #include "unicode/calendar.h"
28
+ #include "unicode/numfmt.h"
29
+ #include "unicode/format.h"
30
+ #include "unicode/locid.h"
31
+ #include "unicode/enumset.h"
32
+ #include "unicode/udisplaycontext.h"
33
+
34
+ /**
35
+ * \file
36
+ * \brief C++ API: Abstract class for converting dates.
37
+ */
38
+
39
+ U_NAMESPACE_BEGIN
40
+
41
+ class TimeZone;
42
+ class DateTimePatternGenerator;
43
+
44
+ // explicit template instantiation. see digitlst.h
45
+ #if defined (_MSC_VER)
46
+ template class U_I18N_API EnumSet<UDateFormatBooleanAttribute,
47
+ 0,
48
+ UDAT_BOOLEAN_ATTRIBUTE_COUNT>;
49
+ #endif
50
+
51
+ /**
52
+ * DateFormat is an abstract class for a family of classes that convert dates and
53
+ * times from their internal representations to textual form and back again in a
54
+ * language-independent manner. Converting from the internal representation (milliseconds
55
+ * since midnight, January 1, 1970) to text is known as "formatting," and converting
56
+ * from text to millis is known as "parsing." We currently define only one concrete
57
+ * subclass of DateFormat: SimpleDateFormat, which can handle pretty much all normal
58
+ * date formatting and parsing actions.
59
+ * <P>
60
+ * DateFormat helps you to format and parse dates for any locale. Your code can
61
+ * be completely independent of the locale conventions for months, days of the
62
+ * week, or even the calendar format: lunar vs. solar.
63
+ * <P>
64
+ * To format a date for the current Locale, use one of the static factory
65
+ * methods:
66
+ * <pre>
67
+ * \code
68
+ * DateFormat* dfmt = DateFormat::createDateInstance();
69
+ * UDate myDate = Calendar::getNow();
70
+ * UnicodeString myString;
71
+ * myString = dfmt->format( myDate, myString );
72
+ * \endcode
73
+ * </pre>
74
+ * If you are formatting multiple numbers, it is more efficient to get the
75
+ * format and use it multiple times so that the system doesn't have to fetch the
76
+ * information about the local language and country conventions multiple times.
77
+ * <pre>
78
+ * \code
79
+ * DateFormat* df = DateFormat::createDateInstance();
80
+ * UnicodeString myString;
81
+ * UDate myDateArr[] = { 0.0, 100000000.0, 2000000000.0 }; // test values
82
+ * for (int32_t i = 0; i < 3; ++i) {
83
+ * myString.remove();
84
+ * cout << df->format( myDateArr[i], myString ) << endl;
85
+ * }
86
+ * \endcode
87
+ * </pre>
88
+ * To get specific fields of a date, you can use UFieldPosition to
89
+ * get specific fields.
90
+ * <pre>
91
+ * \code
92
+ * DateFormat* dfmt = DateFormat::createDateInstance();
93
+ * FieldPosition pos(DateFormat::YEAR_FIELD);
94
+ * UnicodeString myString;
95
+ * myString = dfmt->format( myDate, myString );
96
+ * cout << myString << endl;
97
+ * cout << pos.getBeginIndex() << "," << pos. getEndIndex() << endl;
98
+ * \endcode
99
+ * </pre>
100
+ * To format a date for a different Locale, specify it in the call to
101
+ * createDateInstance().
102
+ * <pre>
103
+ * \code
104
+ * DateFormat* df =
105
+ * DateFormat::createDateInstance( DateFormat::SHORT, Locale::getFrance());
106
+ * \endcode
107
+ * </pre>
108
+ * You can use a DateFormat to parse also.
109
+ * <pre>
110
+ * \code
111
+ * UErrorCode status = U_ZERO_ERROR;
112
+ * UDate myDate = df->parse(myString, status);
113
+ * \endcode
114
+ * </pre>
115
+ * Use createDateInstance() to produce the normal date format for that country.
116
+ * There are other static factory methods available. Use createTimeInstance()
117
+ * to produce the normal time format for that country. Use createDateTimeInstance()
118
+ * to produce a DateFormat that formats both date and time. You can pass in
119
+ * different options to these factory methods to control the length of the
120
+ * result; from SHORT to MEDIUM to LONG to FULL. The exact result depends on the
121
+ * locale, but generally:
122
+ * <ul type=round>
123
+ * <li> SHORT is completely numeric, such as 12/13/52 or 3:30pm
124
+ * <li> MEDIUM is longer, such as Jan 12, 1952
125
+ * <li> LONG is longer, such as January 12, 1952 or 3:30:32pm
126
+ * <li> FULL is pretty completely specified, such as
127
+ * Tuesday, April 12, 1952 AD or 3:30:42pm PST.
128
+ * </ul>
129
+ * You can also set the time zone on the format if you wish. If you want even
130
+ * more control over the format or parsing, (or want to give your users more
131
+ * control), you can try casting the DateFormat you get from the factory methods
132
+ * to a SimpleDateFormat. This will work for the majority of countries; just
133
+ * remember to chck getDynamicClassID() before carrying out the cast.
134
+ * <P>
135
+ * You can also use forms of the parse and format methods with ParsePosition and
136
+ * FieldPosition to allow you to
137
+ * <ul type=round>
138
+ * <li> Progressively parse through pieces of a string.
139
+ * <li> Align any particular field, or find out where it is for selection
140
+ * on the screen.
141
+ * </ul>
142
+ *
143
+ * <p><em>User subclasses are not supported.</em> While clients may write
144
+ * subclasses, such code will not necessarily work and will not be
145
+ * guaranteed to work stably from release to release.
146
+ */
147
+ class U_I18N_API DateFormat : public Format {
148
+ public:
149
+
150
+ /**
151
+ * Constants for various style patterns. These reflect the order of items in
152
+ * the DateTimePatterns resource. There are 4 time patterns, 4 date patterns,
153
+ * the default date-time pattern, and 4 date-time patterns. Each block of 4 values
154
+ * in the resource occurs in the order full, long, medium, short.
155
+ * @stable ICU 2.4
156
+ */
157
+ enum EStyle
158
+ {
159
+ kNone = -1,
160
+
161
+ kFull = 0,
162
+ kLong = 1,
163
+ kMedium = 2,
164
+ kShort = 3,
165
+
166
+ kDateOffset = kShort + 1,
167
+ // kFull + kDateOffset = 4
168
+ // kLong + kDateOffset = 5
169
+ // kMedium + kDateOffset = 6
170
+ // kShort + kDateOffset = 7
171
+
172
+ kDateTime = 8,
173
+ // Default DateTime
174
+
175
+ kDateTimeOffset = kDateTime + 1,
176
+ // kFull + kDateTimeOffset = 9
177
+ // kLong + kDateTimeOffset = 10
178
+ // kMedium + kDateTimeOffset = 11
179
+ // kShort + kDateTimeOffset = 12
180
+
181
+ // relative dates
182
+ kRelative = (1 << 7),
183
+
184
+ kFullRelative = (kFull | kRelative),
185
+
186
+ kLongRelative = kLong | kRelative,
187
+
188
+ kMediumRelative = kMedium | kRelative,
189
+
190
+ kShortRelative = kShort | kRelative,
191
+
192
+
193
+ kDefault = kMedium,
194
+
195
+
196
+
197
+ /**
198
+ * These constants are provided for backwards compatibility only.
199
+ * Please use the C++ style constants defined above.
200
+ */
201
+ FULL = kFull,
202
+ LONG = kLong,
203
+ MEDIUM = kMedium,
204
+ SHORT = kShort,
205
+ DEFAULT = kDefault,
206
+ DATE_OFFSET = kDateOffset,
207
+ NONE = kNone,
208
+ DATE_TIME = kDateTime
209
+ };
210
+
211
+ /**
212
+ * Destructor.
213
+ * @stable ICU 2.0
214
+ */
215
+ virtual ~DateFormat();
216
+
217
+ /**
218
+ * Equality operator. Returns true if the two formats have the same behavior.
219
+ * @stable ICU 2.0
220
+ */
221
+ virtual UBool operator==(const Format&) const;
222
+
223
+
224
+ using Format::format;
225
+
226
+ /**
227
+ * Format an object to produce a string. This method handles Formattable
228
+ * objects with a UDate type. If a the Formattable object type is not a Date,
229
+ * then it returns a failing UErrorCode.
230
+ *
231
+ * @param obj The object to format. Must be a Date.
232
+ * @param appendTo Output parameter to receive result.
233
+ * Result is appended to existing contents.
234
+ * @param pos On input: an alignment field, if desired.
235
+ * On output: the offsets of the alignment field.
236
+ * @param status Output param filled with success/failure status.
237
+ * @return Reference to 'appendTo' parameter.
238
+ * @stable ICU 2.0
239
+ */
240
+ virtual UnicodeString& format(const Formattable& obj,
241
+ UnicodeString& appendTo,
242
+ FieldPosition& pos,
243
+ UErrorCode& status) const;
244
+
245
+ /**
246
+ * Format an object to produce a string. This method handles Formattable
247
+ * objects with a UDate type. If a the Formattable object type is not a Date,
248
+ * then it returns a failing UErrorCode.
249
+ *
250
+ * @param obj The object to format. Must be a Date.
251
+ * @param appendTo Output parameter to receive result.
252
+ * Result is appended to existing contents.
253
+ * @param posIter On return, can be used to iterate over positions
254
+ * of fields generated by this format call. Field values
255
+ * are defined in UDateFormatField. Can be NULL.
256
+ * @param status Output param filled with success/failure status.
257
+ * @return Reference to 'appendTo' parameter.
258
+ * @stable ICU 4.4
259
+ */
260
+ virtual UnicodeString& format(const Formattable& obj,
261
+ UnicodeString& appendTo,
262
+ FieldPositionIterator* posIter,
263
+ UErrorCode& status) const;
264
+ /**
265
+ * Formats a date into a date/time string. This is an abstract method which
266
+ * concrete subclasses must implement.
267
+ * <P>
268
+ * On input, the FieldPosition parameter may have its "field" member filled with
269
+ * an enum value specifying a field. On output, the FieldPosition will be filled
270
+ * in with the text offsets for that field.
271
+ * <P> For example, given a time text
272
+ * "1996.07.10 AD at 15:08:56 PDT", if the given fieldPosition.field is
273
+ * UDAT_YEAR_FIELD, the offsets fieldPosition.beginIndex and
274
+ * statfieldPositionus.getEndIndex will be set to 0 and 4, respectively.
275
+ * <P> Notice
276
+ * that if the same time field appears more than once in a pattern, the status will
277
+ * be set for the first occurence of that time field. For instance,
278
+ * formatting a UDate to the time string "1 PM PDT (Pacific Daylight Time)"
279
+ * using the pattern "h a z (zzzz)" and the alignment field
280
+ * DateFormat::TIMEZONE_FIELD, the offsets fieldPosition.beginIndex and
281
+ * fieldPosition.getEndIndex will be set to 5 and 8, respectively, for the first
282
+ * occurence of the timezone pattern character 'z'.
283
+ *
284
+ * @param cal Calendar set to the date and time to be formatted
285
+ * into a date/time string. When the calendar type is
286
+ * different from the internal calendar held by this
287
+ * DateFormat instance, the date and the time zone will
288
+ * be inherited from the input calendar, but other calendar
289
+ * field values will be calculated by the internal calendar.
290
+ * @param appendTo Output parameter to receive result.
291
+ * Result is appended to existing contents.
292
+ * @param fieldPosition On input: an alignment field, if desired (see examples above)
293
+ * On output: the offsets of the alignment field (see examples above)
294
+ * @return Reference to 'appendTo' parameter.
295
+ * @stable ICU 2.1
296
+ */
297
+ virtual UnicodeString& format( Calendar& cal,
298
+ UnicodeString& appendTo,
299
+ FieldPosition& fieldPosition) const = 0;
300
+
301
+ /**
302
+ * Formats a date into a date/time string. Subclasses should implement this method.
303
+ *
304
+ * @param cal Calendar set to the date and time to be formatted
305
+ * into a date/time string. When the calendar type is
306
+ * different from the internal calendar held by this
307
+ * DateFormat instance, the date and the time zone will
308
+ * be inherited from the input calendar, but other calendar
309
+ * field values will be calculated by the internal calendar.
310
+ * @param appendTo Output parameter to receive result.
311
+ * Result is appended to existing contents.
312
+ * @param posIter On return, can be used to iterate over positions
313
+ * of fields generated by this format call. Field values
314
+ * are defined in UDateFormatField. Can be NULL.
315
+ * @param status error status.
316
+ * @return Reference to 'appendTo' parameter.
317
+ * @stable ICU 4.4
318
+ */
319
+ virtual UnicodeString& format(Calendar& cal,
320
+ UnicodeString& appendTo,
321
+ FieldPositionIterator* posIter,
322
+ UErrorCode& status) const;
323
+ /**
324
+ * Formats a UDate into a date/time string.
325
+ * <P>
326
+ * On input, the FieldPosition parameter may have its "field" member filled with
327
+ * an enum value specifying a field. On output, the FieldPosition will be filled
328
+ * in with the text offsets for that field.
329
+ * <P> For example, given a time text
330
+ * "1996.07.10 AD at 15:08:56 PDT", if the given fieldPosition.field is
331
+ * UDAT_YEAR_FIELD, the offsets fieldPosition.beginIndex and
332
+ * statfieldPositionus.getEndIndex will be set to 0 and 4, respectively.
333
+ * <P> Notice
334
+ * that if the same time field appears more than once in a pattern, the status will
335
+ * be set for the first occurence of that time field. For instance,
336
+ * formatting a UDate to the time string "1 PM PDT (Pacific Daylight Time)"
337
+ * using the pattern "h a z (zzzz)" and the alignment field
338
+ * DateFormat::TIMEZONE_FIELD, the offsets fieldPosition.beginIndex and
339
+ * fieldPosition.getEndIndex will be set to 5 and 8, respectively, for the first
340
+ * occurence of the timezone pattern character 'z'.
341
+ *
342
+ * @param date UDate to be formatted into a date/time string.
343
+ * @param appendTo Output parameter to receive result.
344
+ * Result is appended to existing contents.
345
+ * @param fieldPosition On input: an alignment field, if desired (see examples above)
346
+ * On output: the offsets of the alignment field (see examples above)
347
+ * @return Reference to 'appendTo' parameter.
348
+ * @stable ICU 2.0
349
+ */
350
+ UnicodeString& format( UDate date,
351
+ UnicodeString& appendTo,
352
+ FieldPosition& fieldPosition) const;
353
+
354
+ /**
355
+ * Formats a UDate into a date/time string.
356
+ *
357
+ * @param date UDate to be formatted into a date/time string.
358
+ * @param appendTo Output parameter to receive result.
359
+ * Result is appended to existing contents.
360
+ * @param posIter On return, can be used to iterate over positions
361
+ * of fields generated by this format call. Field values
362
+ * are defined in UDateFormatField. Can be NULL.
363
+ * @param status error status.
364
+ * @return Reference to 'appendTo' parameter.
365
+ * @stable ICU 4.4
366
+ */
367
+ UnicodeString& format(UDate date,
368
+ UnicodeString& appendTo,
369
+ FieldPositionIterator* posIter,
370
+ UErrorCode& status) const;
371
+ /**
372
+ * Formats a UDate into a date/time string. If there is a problem, you won't
373
+ * know, using this method. Use the overloaded format() method which takes a
374
+ * FieldPosition& to detect formatting problems.
375
+ *
376
+ * @param date The UDate value to be formatted into a string.
377
+ * @param appendTo Output parameter to receive result.
378
+ * Result is appended to existing contents.
379
+ * @return Reference to 'appendTo' parameter.
380
+ * @stable ICU 2.0
381
+ */
382
+ UnicodeString& format(UDate date, UnicodeString& appendTo) const;
383
+
384
+ /**
385
+ * Parse a date/time string. For example, a time text "07/10/96 4:5 PM, PDT"
386
+ * will be parsed into a UDate that is equivalent to Date(837039928046).
387
+ * Parsing begins at the beginning of the string and proceeds as far as
388
+ * possible. Assuming no parse errors were encountered, this function
389
+ * doesn't return any information about how much of the string was consumed
390
+ * by the parsing. If you need that information, use the version of
391
+ * parse() that takes a ParsePosition.
392
+ * <P>
393
+ * By default, parsing is lenient: If the input is not in the form used by
394
+ * this object's format method but can still be parsed as a date, then the
395
+ * parse succeeds. Clients may insist on strict adherence to the format by
396
+ * calling setLenient(false).
397
+ * @see DateFormat::setLenient(boolean)
398
+ * <P>
399
+ * Note that the normal date formats associated with some calendars - such
400
+ * as the Chinese lunar calendar - do not specify enough fields to enable
401
+ * dates to be parsed unambiguously. In the case of the Chinese lunar
402
+ * calendar, while the year within the current 60-year cycle is specified,
403
+ * the number of such cycles since the start date of the calendar (in the
404
+ * ERA field of the Calendar object) is not normally part of the format,
405
+ * and parsing may assume the wrong era. For cases such as this it is
406
+ * recommended that clients parse using the method
407
+ * parse(const UnicodeString&, Calendar& cal, ParsePosition&)
408
+ * with the Calendar passed in set to the current date, or to a date
409
+ * within the era/cycle that should be assumed if absent in the format.
410
+ *
411
+ * @param text The date/time string to be parsed into a UDate value.
412
+ * @param status Output param to be set to success/failure code. If
413
+ * 'text' cannot be parsed, it will be set to a failure
414
+ * code.
415
+ * @return The parsed UDate value, if successful.
416
+ * @stable ICU 2.0
417
+ */
418
+ virtual UDate parse( const UnicodeString& text,
419
+ UErrorCode& status) const;
420
+
421
+ /**
422
+ * Parse a date/time string beginning at the given parse position. For
423
+ * example, a time text "07/10/96 4:5 PM, PDT" will be parsed into a Date
424
+ * that is equivalent to Date(837039928046).
425
+ * <P>
426
+ * By default, parsing is lenient: If the input is not in the form used by
427
+ * this object's format method but can still be parsed as a date, then the
428
+ * parse succeeds. Clients may insist on strict adherence to the format by
429
+ * calling setLenient(false).
430
+ * @see DateFormat::setLenient(boolean)
431
+ *
432
+ * @param text The date/time string to be parsed.
433
+ * @param cal A Calendar set on input to the date and time to be used for
434
+ * missing values in the date/time string being parsed, and set
435
+ * on output to the parsed date/time. When the calendar type is
436
+ * different from the internal calendar held by this DateFormat
437
+ * instance, the internal calendar will be cloned to a work
438
+ * calendar set to the same milliseconds and time zone as the
439
+ * cal parameter, field values will be parsed based on the work
440
+ * calendar, then the result (milliseconds and time zone) will
441
+ * be set in this calendar.
442
+ * @param pos On input, the position at which to start parsing; on
443
+ * output, the position at which parsing terminated, or the
444
+ * start position if the parse failed.
445
+ * @stable ICU 2.1
446
+ */
447
+ virtual void parse( const UnicodeString& text,
448
+ Calendar& cal,
449
+ ParsePosition& pos) const = 0;
450
+
451
+ /**
452
+ * Parse a date/time string beginning at the given parse position. For
453
+ * example, a time text "07/10/96 4:5 PM, PDT" will be parsed into a Date
454
+ * that is equivalent to Date(837039928046).
455
+ * <P>
456
+ * By default, parsing is lenient: If the input is not in the form used by
457
+ * this object's format method but can still be parsed as a date, then the
458
+ * parse succeeds. Clients may insist on strict adherence to the format by
459
+ * calling setLenient(false).
460
+ * @see DateFormat::setLenient(boolean)
461
+ * <P>
462
+ * Note that the normal date formats associated with some calendars - such
463
+ * as the Chinese lunar calendar - do not specify enough fields to enable
464
+ * dates to be parsed unambiguously. In the case of the Chinese lunar
465
+ * calendar, while the year within the current 60-year cycle is specified,
466
+ * the number of such cycles since the start date of the calendar (in the
467
+ * ERA field of the Calendar object) is not normally part of the format,
468
+ * and parsing may assume the wrong era. For cases such as this it is
469
+ * recommended that clients parse using the method
470
+ * parse(const UnicodeString&, Calendar& cal, ParsePosition&)
471
+ * with the Calendar passed in set to the current date, or to a date
472
+ * within the era/cycle that should be assumed if absent in the format.
473
+ *
474
+ * @param text The date/time string to be parsed into a UDate value.
475
+ * @param pos On input, the position at which to start parsing; on
476
+ * output, the position at which parsing terminated, or the
477
+ * start position if the parse failed.
478
+ * @return A valid UDate if the input could be parsed.
479
+ * @stable ICU 2.0
480
+ */
481
+ UDate parse( const UnicodeString& text,
482
+ ParsePosition& pos) const;
483
+
484
+ /**
485
+ * Parse a string to produce an object. This methods handles parsing of
486
+ * date/time strings into Formattable objects with UDate types.
487
+ * <P>
488
+ * Before calling, set parse_pos.index to the offset you want to start
489
+ * parsing at in the source. After calling, parse_pos.index is the end of
490
+ * the text you parsed. If error occurs, index is unchanged.
491
+ * <P>
492
+ * When parsing, leading whitespace is discarded (with a successful parse),
493
+ * while trailing whitespace is left as is.
494
+ * <P>
495
+ * See Format::parseObject() for more.
496
+ *
497
+ * @param source The string to be parsed into an object.
498
+ * @param result Formattable to be set to the parse result.
499
+ * If parse fails, return contents are undefined.
500
+ * @param parse_pos The position to start parsing at. Upon return
501
+ * this param is set to the position after the
502
+ * last character successfully parsed. If the
503
+ * source is not parsed successfully, this param
504
+ * will remain unchanged.
505
+ * @stable ICU 2.0
506
+ */
507
+ virtual void parseObject(const UnicodeString& source,
508
+ Formattable& result,
509
+ ParsePosition& parse_pos) const;
510
+
511
+ /**
512
+ * Create a default date/time formatter that uses the SHORT style for both
513
+ * the date and the time.
514
+ *
515
+ * @return A date/time formatter which the caller owns.
516
+ * @stable ICU 2.0
517
+ */
518
+ static DateFormat* U_EXPORT2 createInstance(void);
519
+
520
+ /**
521
+ * Creates a time formatter with the given formatting style for the given
522
+ * locale.
523
+ *
524
+ * @param style The given formatting style. For example,
525
+ * SHORT for "h:mm a" in the US locale. Relative
526
+ * time styles are not currently supported.
527
+ * @param aLocale The given locale.
528
+ * @return A time formatter which the caller owns.
529
+ * @stable ICU 2.0
530
+ */
531
+ static DateFormat* U_EXPORT2 createTimeInstance(EStyle style = kDefault,
532
+ const Locale& aLocale = Locale::getDefault());
533
+
534
+ /**
535
+ * Creates a date formatter with the given formatting style for the given
536
+ * const locale.
537
+ *
538
+ * @param style The given formatting style. For example, SHORT for "M/d/yy" in the
539
+ * US locale. As currently implemented, relative date formatting only
540
+ * affects a limited range of calendar days before or after the
541
+ * current date, based on the CLDR &lt;field type="day"&gt;/&lt;relative&gt; data:
542
+ * For example, in English, "Yesterday", "Today", and "Tomorrow".
543
+ * Outside of this range, dates are formatted using the corresponding
544
+ * non-relative style.
545
+ * @param aLocale The given locale.
546
+ * @return A date formatter which the caller owns.
547
+ * @stable ICU 2.0
548
+ */
549
+ static DateFormat* U_EXPORT2 createDateInstance(EStyle style = kDefault,
550
+ const Locale& aLocale = Locale::getDefault());
551
+
552
+ /**
553
+ * Creates a date/time formatter with the given formatting styles for the
554
+ * given locale.
555
+ *
556
+ * @param dateStyle The given formatting style for the date portion of the result.
557
+ * For example, SHORT for "M/d/yy" in the US locale. As currently
558
+ * implemented, relative date formatting only affects a limited range
559
+ * of calendar days before or after the current date, based on the
560
+ * CLDR &lt;field type="day"&gt;/&lt;relative&gt; data: For example, in English,
561
+ * "Yesterday", "Today", and "Tomorrow". Outside of this range, dates
562
+ * are formatted using the corresponding non-relative style.
563
+ * @param timeStyle The given formatting style for the time portion of the result.
564
+ * For example, SHORT for "h:mm a" in the US locale. Relative
565
+ * time styles are not currently supported.
566
+ * @param aLocale The given locale.
567
+ * @return A date/time formatter which the caller owns.
568
+ * @stable ICU 2.0
569
+ */
570
+ static DateFormat* U_EXPORT2 createDateTimeInstance(EStyle dateStyle = kDefault,
571
+ EStyle timeStyle = kDefault,
572
+ const Locale& aLocale = Locale::getDefault());
573
+
574
+ /**
575
+ * Gets the set of locales for which DateFormats are installed.
576
+ * @param count Filled in with the number of locales in the list that is returned.
577
+ * @return the set of locales for which DateFormats are installed. The caller
578
+ * does NOT own this list and must not delete it.
579
+ * @stable ICU 2.0
580
+ */
581
+ static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
582
+
583
+ /**
584
+ * Returns whether both date/time parsing in the encapsulated Calendar object and DateFormat whitespace &
585
+ * numeric processing is lenient.
586
+ * @stable ICU 2.0
587
+ */
588
+ virtual UBool isLenient(void) const;
589
+
590
+ /**
591
+ * Specifies whether date/time parsing is to be lenient. With
592
+ * lenient parsing, the parser may use heuristics to interpret inputs that
593
+ * do not precisely match this object's format. Without lenient parsing,
594
+ * inputs must match this object's format more closely.
595
+ *
596
+ * Note: ICU 53 introduced finer grained control of leniency (and added
597
+ * new control points) making the preferred method a combination of
598
+ * setCalendarLenient() & setBooleanAttribute() calls.
599
+ * This method supports prior functionality but may not support all
600
+ * future leniency control & behavior of DateFormat. For control of pre 53 leniency,
601
+ * Calendar and DateFormat whitespace & numeric tolerance, this method is safe to
602
+ * use. However, mixing leniency control via this method and modification of the
603
+ * newer attributes via setBooleanAttribute() may produce undesirable
604
+ * results.
605
+ *
606
+ * @param lenient True specifies date/time interpretation to be lenient.
607
+ * @see Calendar::setLenient
608
+ * @stable ICU 2.0
609
+ */
610
+ virtual void setLenient(UBool lenient);
611
+
612
+
613
+ /* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since it is virtual */
614
+ /**
615
+ * Returns whether date/time parsing in the encapsulated Calendar object processing is lenient.
616
+ * @draft ICU 53
617
+ */
618
+ virtual UBool isCalendarLenient(void) const;
619
+
620
+
621
+ /* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since it is virtual */
622
+ /**
623
+ * Specifies whether encapsulated Calendar date/time parsing is to be lenient. With
624
+ * lenient parsing, the parser may use heuristics to interpret inputs that
625
+ * do not precisely match this object's format. Without lenient parsing,
626
+ * inputs must match this object's format more closely.
627
+ * @param lenient when true, parsing is lenient
628
+ * @see com.ibm.icu.util.Calendar#setLenient
629
+ * @draft ICU 53
630
+ */
631
+ virtual void setCalendarLenient(UBool lenient);
632
+
633
+
634
+ /**
635
+ * Gets the calendar associated with this date/time formatter.
636
+ * The calendar is owned by the formatter and must not be modified.
637
+ * Also, the calendar does not reflect the results of a parse operation.
638
+ * To parse to a calendar, use {@link #parse(const UnicodeString&, Calendar& cal, ParsePosition&) const parse(const UnicodeString&, Calendar& cal, ParsePosition&)}
639
+ * @return the calendar associated with this date/time formatter.
640
+ * @stable ICU 2.0
641
+ */
642
+ virtual const Calendar* getCalendar(void) const;
643
+
644
+ /**
645
+ * Set the calendar to be used by this date format. Initially, the default
646
+ * calendar for the specified or default locale is used. The caller should
647
+ * not delete the Calendar object after it is adopted by this call.
648
+ * Adopting a new calendar will change to the default symbols.
649
+ *
650
+ * @param calendarToAdopt Calendar object to be adopted.
651
+ * @stable ICU 2.0
652
+ */
653
+ virtual void adoptCalendar(Calendar* calendarToAdopt);
654
+
655
+ /**
656
+ * Set the calendar to be used by this date format. Initially, the default
657
+ * calendar for the specified or default locale is used.
658
+ *
659
+ * @param newCalendar Calendar object to be set.
660
+ * @stable ICU 2.0
661
+ */
662
+ virtual void setCalendar(const Calendar& newCalendar);
663
+
664
+
665
+ /**
666
+ * Gets the number formatter which this date/time formatter uses to format
667
+ * and parse the numeric portions of the pattern.
668
+ * @return the number formatter which this date/time formatter uses.
669
+ * @stable ICU 2.0
670
+ */
671
+ virtual const NumberFormat* getNumberFormat(void) const;
672
+
673
+ /**
674
+ * Allows you to set the number formatter. The caller should
675
+ * not delete the NumberFormat object after it is adopted by this call.
676
+ * @param formatToAdopt NumberFormat object to be adopted.
677
+ * @stable ICU 2.0
678
+ */
679
+ virtual void adoptNumberFormat(NumberFormat* formatToAdopt);
680
+
681
+ /**
682
+ * Allows you to set the number formatter.
683
+ * @param newNumberFormat NumberFormat object to be set.
684
+ * @stable ICU 2.0
685
+ */
686
+ virtual void setNumberFormat(const NumberFormat& newNumberFormat);
687
+
688
+ /**
689
+ * Returns a reference to the TimeZone used by this DateFormat's calendar.
690
+ * @return the time zone associated with the calendar of DateFormat.
691
+ * @stable ICU 2.0
692
+ */
693
+ virtual const TimeZone& getTimeZone(void) const;
694
+
695
+ /**
696
+ * Sets the time zone for the calendar of this DateFormat object. The caller
697
+ * no longer owns the TimeZone object and should not delete it after this call.
698
+ * @param zoneToAdopt the TimeZone to be adopted.
699
+ * @stable ICU 2.0
700
+ */
701
+ virtual void adoptTimeZone(TimeZone* zoneToAdopt);
702
+
703
+ /**
704
+ * Sets the time zone for the calendar of this DateFormat object.
705
+ * @param zone the new time zone.
706
+ * @stable ICU 2.0
707
+ */
708
+ virtual void setTimeZone(const TimeZone& zone);
709
+
710
+ /* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since it is virtual */
711
+ /**
712
+ * Set a particular UDisplayContext value in the formatter, such as
713
+ * UDISPCTX_CAPITALIZATION_FOR_STANDALONE.
714
+ * @param value The UDisplayContext value to set.
715
+ * @param status Input/output status. If at entry this indicates a failure
716
+ * status, the function will do nothing; otherwise this will be
717
+ * updated with any new status from the function.
718
+ * @draft ICU 53
719
+ */
720
+ virtual void setContext(UDisplayContext value, UErrorCode& status);
721
+
722
+ /* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since it is virtual */
723
+ /**
724
+ * Get the formatter's UDisplayContext value for the specified UDisplayContextType,
725
+ * such as UDISPCTX_TYPE_CAPITALIZATION.
726
+ * @param type The UDisplayContextType whose value to return
727
+ * @param status Input/output status. If at entry this indicates a failure
728
+ * status, the function will do nothing; otherwise this will be
729
+ * updated with any new status from the function.
730
+ * @return The UDisplayContextValue for the specified type.
731
+ * @draft ICU 53
732
+ */
733
+ virtual UDisplayContext getContext(UDisplayContextType type, UErrorCode& status) const;
734
+
735
+ /* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since it is virtual */
736
+ /**
737
+ * Sets an boolean attribute on this DateFormat.
738
+ * May return U_UNSUPPORTED_ERROR if this instance does not support
739
+ * the specified attribute.
740
+ * @param attr the attribute to set
741
+ * @param newvalue new value
742
+ * @param status the error type
743
+ * @return *this - for chaining (example: format.setAttribute(...).setAttribute(...) )
744
+ * @draft ICU 53
745
+ */
746
+
747
+ virtual DateFormat& U_EXPORT2 setBooleanAttribute(UDateFormatBooleanAttribute attr,
748
+ UBool newvalue,
749
+ UErrorCode &status);
750
+
751
+ /* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since it is virtual */
752
+ /**
753
+ * Returns a boolean from this DateFormat
754
+ * May return U_UNSUPPORTED_ERROR if this instance does not support
755
+ * the specified attribute.
756
+ * @param attr the attribute to set
757
+ * @param status the error type
758
+ * @return the attribute value. Undefined if there is an error.
759
+ * @draft ICU 53
760
+ */
761
+ virtual UBool U_EXPORT2 getBooleanAttribute(UDateFormatBooleanAttribute attr, UErrorCode &status) const;
762
+
763
+ protected:
764
+ /**
765
+ * Default constructor. Creates a DateFormat with no Calendar or NumberFormat
766
+ * associated with it. This constructor depends on the subclasses to fill in
767
+ * the calendar and numberFormat fields.
768
+ * @stable ICU 2.0
769
+ */
770
+ DateFormat();
771
+
772
+ /**
773
+ * Copy constructor.
774
+ * @stable ICU 2.0
775
+ */
776
+ DateFormat(const DateFormat&);
777
+
778
+ /**
779
+ * Default assignment operator.
780
+ * @stable ICU 2.0
781
+ */
782
+ DateFormat& operator=(const DateFormat&);
783
+
784
+ /**
785
+ * The calendar that DateFormat uses to produce the time field values needed
786
+ * to implement date/time formatting. Subclasses should generally initialize
787
+ * this to the default calendar for the locale associated with this DateFormat.
788
+ * @stable ICU 2.4
789
+ */
790
+ Calendar* fCalendar;
791
+
792
+ /**
793
+ * The number formatter that DateFormat uses to format numbers in dates and
794
+ * times. Subclasses should generally initialize this to the default number
795
+ * format for the locale associated with this DateFormat.
796
+ * @stable ICU 2.4
797
+ */
798
+ NumberFormat* fNumberFormat;
799
+
800
+
801
+ private:
802
+ /**
803
+ * Gets the date/time formatter with the given formatting styles for the
804
+ * given locale.
805
+ * @param dateStyle the given date formatting style.
806
+ * @param timeStyle the given time formatting style.
807
+ * @param inLocale the given locale.
808
+ * @return a date/time formatter, or 0 on failure.
809
+ */
810
+ static DateFormat* U_EXPORT2 create(EStyle timeStyle, EStyle dateStyle, const Locale& inLocale);
811
+
812
+
813
+ /**
814
+ * enum set of active boolean attributes for this instance
815
+ */
816
+ EnumSet<UDateFormatBooleanAttribute, 0, UDAT_BOOLEAN_ATTRIBUTE_COUNT> fBoolFlags;
817
+
818
+
819
+ UDisplayContext fCapitalizationContext;
820
+
821
+ public:
822
+ #ifndef U_HIDE_OBSOLETE_API
823
+ /**
824
+ * Field selector for FieldPosition for DateFormat fields.
825
+ * @obsolete ICU 3.4 use UDateFormatField instead, since this API will be
826
+ * removed in that release
827
+ */
828
+ enum EField
829
+ {
830
+ // Obsolete; use UDateFormatField instead
831
+ kEraField = UDAT_ERA_FIELD,
832
+ kYearField = UDAT_YEAR_FIELD,
833
+ kMonthField = UDAT_MONTH_FIELD,
834
+ kDateField = UDAT_DATE_FIELD,
835
+ kHourOfDay1Field = UDAT_HOUR_OF_DAY1_FIELD,
836
+ kHourOfDay0Field = UDAT_HOUR_OF_DAY0_FIELD,
837
+ kMinuteField = UDAT_MINUTE_FIELD,
838
+ kSecondField = UDAT_SECOND_FIELD,
839
+ kMillisecondField = UDAT_FRACTIONAL_SECOND_FIELD,
840
+ kDayOfWeekField = UDAT_DAY_OF_WEEK_FIELD,
841
+ kDayOfYearField = UDAT_DAY_OF_YEAR_FIELD,
842
+ kDayOfWeekInMonthField = UDAT_DAY_OF_WEEK_IN_MONTH_FIELD,
843
+ kWeekOfYearField = UDAT_WEEK_OF_YEAR_FIELD,
844
+ kWeekOfMonthField = UDAT_WEEK_OF_MONTH_FIELD,
845
+ kAmPmField = UDAT_AM_PM_FIELD,
846
+ kHour1Field = UDAT_HOUR1_FIELD,
847
+ kHour0Field = UDAT_HOUR0_FIELD,
848
+ kTimezoneField = UDAT_TIMEZONE_FIELD,
849
+ kYearWOYField = UDAT_YEAR_WOY_FIELD,
850
+ kDOWLocalField = UDAT_DOW_LOCAL_FIELD,
851
+ kExtendedYearField = UDAT_EXTENDED_YEAR_FIELD,
852
+ kJulianDayField = UDAT_JULIAN_DAY_FIELD,
853
+ kMillisecondsInDayField = UDAT_MILLISECONDS_IN_DAY_FIELD,
854
+
855
+ // Obsolete; use UDateFormatField instead
856
+ ERA_FIELD = UDAT_ERA_FIELD,
857
+ YEAR_FIELD = UDAT_YEAR_FIELD,
858
+ MONTH_FIELD = UDAT_MONTH_FIELD,
859
+ DATE_FIELD = UDAT_DATE_FIELD,
860
+ HOUR_OF_DAY1_FIELD = UDAT_HOUR_OF_DAY1_FIELD,
861
+ HOUR_OF_DAY0_FIELD = UDAT_HOUR_OF_DAY0_FIELD,
862
+ MINUTE_FIELD = UDAT_MINUTE_FIELD,
863
+ SECOND_FIELD = UDAT_SECOND_FIELD,
864
+ MILLISECOND_FIELD = UDAT_FRACTIONAL_SECOND_FIELD,
865
+ DAY_OF_WEEK_FIELD = UDAT_DAY_OF_WEEK_FIELD,
866
+ DAY_OF_YEAR_FIELD = UDAT_DAY_OF_YEAR_FIELD,
867
+ DAY_OF_WEEK_IN_MONTH_FIELD = UDAT_DAY_OF_WEEK_IN_MONTH_FIELD,
868
+ WEEK_OF_YEAR_FIELD = UDAT_WEEK_OF_YEAR_FIELD,
869
+ WEEK_OF_MONTH_FIELD = UDAT_WEEK_OF_MONTH_FIELD,
870
+ AM_PM_FIELD = UDAT_AM_PM_FIELD,
871
+ HOUR1_FIELD = UDAT_HOUR1_FIELD,
872
+ HOUR0_FIELD = UDAT_HOUR0_FIELD,
873
+ TIMEZONE_FIELD = UDAT_TIMEZONE_FIELD
874
+ };
875
+ #endif /* U_HIDE_OBSOLETE_API */
876
+ };
877
+
878
+ U_NAMESPACE_END
879
+
880
+ #endif /* #if !UCONFIG_NO_FORMATTING */
881
+
882
+ #endif // _DATEFMT
883
+ //eof