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,777 @@
1
+ /*
2
+ * Copyright (C) 1997-2013, International Business Machines Corporation and others.
3
+ * All Rights Reserved.
4
+ ********************************************************************************
5
+ *
6
+ * File GREGOCAL.H
7
+ *
8
+ * Modification History:
9
+ *
10
+ * Date Name Description
11
+ * 04/22/97 aliu Overhauled header.
12
+ * 07/28/98 stephen Sync with JDK 1.2
13
+ * 09/04/98 stephen Re-sync with JDK 8/31 putback
14
+ * 09/14/98 stephen Changed type of kOneDay, kOneWeek to double.
15
+ * Fixed bug in roll()
16
+ * 10/15/99 aliu Fixed j31, incorrect WEEK_OF_YEAR computation.
17
+ * Added documentation of WEEK_OF_YEAR computation.
18
+ * 10/15/99 aliu Fixed j32, cannot set date to Feb 29 2000 AD.
19
+ * {JDK bug 4210209 4209272}
20
+ * 11/07/2003 srl Update, clean up documentation.
21
+ ********************************************************************************
22
+ */
23
+
24
+ #ifndef GREGOCAL_H
25
+ #define GREGOCAL_H
26
+
27
+ #include "unicode/utypes.h"
28
+
29
+ #if !UCONFIG_NO_FORMATTING
30
+
31
+ #include "unicode/calendar.h"
32
+
33
+ /**
34
+ * \file
35
+ * \brief C++ API: Concrete class which provides the standard calendar.
36
+ */
37
+
38
+ U_NAMESPACE_BEGIN
39
+
40
+ /**
41
+ * Concrete class which provides the standard calendar used by most of the world.
42
+ * <P>
43
+ * The standard (Gregorian) calendar has 2 eras, BC and AD.
44
+ * <P>
45
+ * This implementation handles a single discontinuity, which corresponds by default to
46
+ * the date the Gregorian calendar was originally instituted (October 15, 1582). Not all
47
+ * countries adopted the Gregorian calendar then, so this cutover date may be changed by
48
+ * the caller.
49
+ * <P>
50
+ * Prior to the institution of the Gregorian Calendar, New Year's Day was March 25. To
51
+ * avoid confusion, this Calendar always uses January 1. A manual adjustment may be made
52
+ * if desired for dates that are prior to the Gregorian changeover and which fall
53
+ * between January 1 and March 24.
54
+ *
55
+ * <p>Values calculated for the <code>WEEK_OF_YEAR</code> field range from 1 to
56
+ * 53. Week 1 for a year is the first week that contains at least
57
+ * <code>getMinimalDaysInFirstWeek()</code> days from that year. It thus
58
+ * depends on the values of <code>getMinimalDaysInFirstWeek()</code>,
59
+ * <code>getFirstDayOfWeek()</code>, and the day of the week of January 1.
60
+ * Weeks between week 1 of one year and week 1 of the following year are
61
+ * numbered sequentially from 2 to 52 or 53 (as needed).
62
+ *
63
+ * <p>For example, January 1, 1998 was a Thursday. If
64
+ * <code>getFirstDayOfWeek()</code> is <code>MONDAY</code> and
65
+ * <code>getMinimalDaysInFirstWeek()</code> is 4 (these are the values
66
+ * reflecting ISO 8601 and many national standards), then week 1 of 1998 starts
67
+ * on December 29, 1997, and ends on January 4, 1998. If, however,
68
+ * <code>getFirstDayOfWeek()</code> is <code>SUNDAY</code>, then week 1 of 1998
69
+ * starts on January 4, 1998, and ends on January 10, 1998; the first three days
70
+ * of 1998 then are part of week 53 of 1997.
71
+ *
72
+ * <p>Example for using GregorianCalendar:
73
+ * <pre>
74
+ * \code
75
+ * // get the supported ids for GMT-08:00 (Pacific Standard Time)
76
+ * UErrorCode success = U_ZERO_ERROR;
77
+ * const StringEnumeration *ids = TimeZone::createEnumeration(-8 * 60 * 60 * 1000);
78
+ * // if no ids were returned, something is wrong. get out.
79
+ * if (ids == 0 || ids->count(success) == 0) {
80
+ * return;
81
+ * }
82
+ *
83
+ * // begin output
84
+ * cout << "Current Time" << endl;
85
+ *
86
+ * // create a Pacific Standard Time time zone
87
+ * SimpleTimeZone* pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids->unext(NULL, success)));
88
+ *
89
+ * // set up rules for daylight savings time
90
+ * pdt->setStartRule(UCAL_MARCH, 1, UCAL_SUNDAY, 2 * 60 * 60 * 1000);
91
+ * pdt->setEndRule(UCAL_NOVEMBER, 2, UCAL_SUNDAY, 2 * 60 * 60 * 1000);
92
+ *
93
+ * // create a GregorianCalendar with the Pacific Daylight time zone
94
+ * // and the current date and time
95
+ * Calendar* calendar = new GregorianCalendar( pdt, success );
96
+ *
97
+ * // print out a bunch of interesting things
98
+ * cout << "ERA: " << calendar->get( UCAL_ERA, success ) << endl;
99
+ * cout << "YEAR: " << calendar->get( UCAL_YEAR, success ) << endl;
100
+ * cout << "MONTH: " << calendar->get( UCAL_MONTH, success ) << endl;
101
+ * cout << "WEEK_OF_YEAR: " << calendar->get( UCAL_WEEK_OF_YEAR, success ) << endl;
102
+ * cout << "WEEK_OF_MONTH: " << calendar->get( UCAL_WEEK_OF_MONTH, success ) << endl;
103
+ * cout << "DATE: " << calendar->get( UCAL_DATE, success ) << endl;
104
+ * cout << "DAY_OF_MONTH: " << calendar->get( UCAL_DAY_OF_MONTH, success ) << endl;
105
+ * cout << "DAY_OF_YEAR: " << calendar->get( UCAL_DAY_OF_YEAR, success ) << endl;
106
+ * cout << "DAY_OF_WEEK: " << calendar->get( UCAL_DAY_OF_WEEK, success ) << endl;
107
+ * cout << "DAY_OF_WEEK_IN_MONTH: " << calendar->get( UCAL_DAY_OF_WEEK_IN_MONTH, success ) << endl;
108
+ * cout << "AM_PM: " << calendar->get( UCAL_AM_PM, success ) << endl;
109
+ * cout << "HOUR: " << calendar->get( UCAL_HOUR, success ) << endl;
110
+ * cout << "HOUR_OF_DAY: " << calendar->get( UCAL_HOUR_OF_DAY, success ) << endl;
111
+ * cout << "MINUTE: " << calendar->get( UCAL_MINUTE, success ) << endl;
112
+ * cout << "SECOND: " << calendar->get( UCAL_SECOND, success ) << endl;
113
+ * cout << "MILLISECOND: " << calendar->get( UCAL_MILLISECOND, success ) << endl;
114
+ * cout << "ZONE_OFFSET: " << (calendar->get( UCAL_ZONE_OFFSET, success )/(60*60*1000)) << endl;
115
+ * cout << "DST_OFFSET: " << (calendar->get( UCAL_DST_OFFSET, success )/(60*60*1000)) << endl;
116
+ *
117
+ * cout << "Current Time, with hour reset to 3" << endl;
118
+ * calendar->clear(UCAL_HOUR_OF_DAY); // so doesn't override
119
+ * calendar->set(UCAL_HOUR, 3);
120
+ * cout << "ERA: " << calendar->get( UCAL_ERA, success ) << endl;
121
+ * cout << "YEAR: " << calendar->get( UCAL_YEAR, success ) << endl;
122
+ * cout << "MONTH: " << calendar->get( UCAL_MONTH, success ) << endl;
123
+ * cout << "WEEK_OF_YEAR: " << calendar->get( UCAL_WEEK_OF_YEAR, success ) << endl;
124
+ * cout << "WEEK_OF_MONTH: " << calendar->get( UCAL_WEEK_OF_MONTH, success ) << endl;
125
+ * cout << "DATE: " << calendar->get( UCAL_DATE, success ) << endl;
126
+ * cout << "DAY_OF_MONTH: " << calendar->get( UCAL_DAY_OF_MONTH, success ) << endl;
127
+ * cout << "DAY_OF_YEAR: " << calendar->get( UCAL_DAY_OF_YEAR, success ) << endl;
128
+ * cout << "DAY_OF_WEEK: " << calendar->get( UCAL_DAY_OF_WEEK, success ) << endl;
129
+ * cout << "DAY_OF_WEEK_IN_MONTH: " << calendar->get( UCAL_DAY_OF_WEEK_IN_MONTH, success ) << endl;
130
+ * cout << "AM_PM: " << calendar->get( UCAL_AM_PM, success ) << endl;
131
+ * cout << "HOUR: " << calendar->get( UCAL_HOUR, success ) << endl;
132
+ * cout << "HOUR_OF_DAY: " << calendar->get( UCAL_HOUR_OF_DAY, success ) << endl;
133
+ * cout << "MINUTE: " << calendar->get( UCAL_MINUTE, success ) << endl;
134
+ * cout << "SECOND: " << calendar->get( UCAL_SECOND, success ) << endl;
135
+ * cout << "MILLISECOND: " << calendar->get( UCAL_MILLISECOND, success ) << endl;
136
+ * cout << "ZONE_OFFSET: " << (calendar->get( UCAL_ZONE_OFFSET, success )/(60*60*1000)) << endl; // in hours
137
+ * cout << "DST_OFFSET: " << (calendar->get( UCAL_DST_OFFSET, success )/(60*60*1000)) << endl; // in hours
138
+ *
139
+ * if (U_FAILURE(success)) {
140
+ * cout << "An error occured. success=" << u_errorName(success) << endl;
141
+ * }
142
+ *
143
+ * delete ids;
144
+ * delete calendar; // also deletes pdt
145
+ * \endcode
146
+ * </pre>
147
+ * @stable ICU 2.0
148
+ */
149
+ class U_I18N_API GregorianCalendar: public Calendar {
150
+ public:
151
+
152
+ /**
153
+ * Useful constants for GregorianCalendar and TimeZone.
154
+ * @stable ICU 2.0
155
+ */
156
+ enum EEras {
157
+ BC,
158
+ AD
159
+ };
160
+
161
+ /**
162
+ * Constructs a default GregorianCalendar using the current time in the default time
163
+ * zone with the default locale.
164
+ *
165
+ * @param success Indicates the status of GregorianCalendar object construction.
166
+ * Returns U_ZERO_ERROR if constructed successfully.
167
+ * @stable ICU 2.0
168
+ */
169
+ GregorianCalendar(UErrorCode& success);
170
+
171
+ /**
172
+ * Constructs a GregorianCalendar based on the current time in the given time zone
173
+ * with the default locale. Clients are no longer responsible for deleting the given
174
+ * time zone object after it's adopted.
175
+ *
176
+ * @param zoneToAdopt The given timezone.
177
+ * @param success Indicates the status of GregorianCalendar object construction.
178
+ * Returns U_ZERO_ERROR if constructed successfully.
179
+ * @stable ICU 2.0
180
+ */
181
+ GregorianCalendar(TimeZone* zoneToAdopt, UErrorCode& success);
182
+
183
+ /**
184
+ * Constructs a GregorianCalendar based on the current time in the given time zone
185
+ * with the default locale.
186
+ *
187
+ * @param zone The given timezone.
188
+ * @param success Indicates the status of GregorianCalendar object construction.
189
+ * Returns U_ZERO_ERROR if constructed successfully.
190
+ * @stable ICU 2.0
191
+ */
192
+ GregorianCalendar(const TimeZone& zone, UErrorCode& success);
193
+
194
+ /**
195
+ * Constructs a GregorianCalendar based on the current time in the default time zone
196
+ * with the given locale.
197
+ *
198
+ * @param aLocale The given locale.
199
+ * @param success Indicates the status of GregorianCalendar object construction.
200
+ * Returns U_ZERO_ERROR if constructed successfully.
201
+ * @stable ICU 2.0
202
+ */
203
+ GregorianCalendar(const Locale& aLocale, UErrorCode& success);
204
+
205
+ /**
206
+ * Constructs a GregorianCalendar based on the current time in the given time zone
207
+ * with the given locale. Clients are no longer responsible for deleting the given
208
+ * time zone object after it's adopted.
209
+ *
210
+ * @param zoneToAdopt The given timezone.
211
+ * @param aLocale The given locale.
212
+ * @param success Indicates the status of GregorianCalendar object construction.
213
+ * Returns U_ZERO_ERROR if constructed successfully.
214
+ * @stable ICU 2.0
215
+ */
216
+ GregorianCalendar(TimeZone* zoneToAdopt, const Locale& aLocale, UErrorCode& success);
217
+
218
+ /**
219
+ * Constructs a GregorianCalendar based on the current time in the given time zone
220
+ * with the given locale.
221
+ *
222
+ * @param zone The given timezone.
223
+ * @param aLocale The given locale.
224
+ * @param success Indicates the status of GregorianCalendar object construction.
225
+ * Returns U_ZERO_ERROR if constructed successfully.
226
+ * @stable ICU 2.0
227
+ */
228
+ GregorianCalendar(const TimeZone& zone, const Locale& aLocale, UErrorCode& success);
229
+
230
+ /**
231
+ * Constructs a GregorianCalendar with the given AD date set in the default time
232
+ * zone with the default locale.
233
+ *
234
+ * @param year The value used to set the YEAR time field in the calendar.
235
+ * @param month The value used to set the MONTH time field in the calendar. Month
236
+ * value is 0-based. e.g., 0 for January.
237
+ * @param date The value used to set the DATE time field in the calendar.
238
+ * @param success Indicates the status of GregorianCalendar object construction.
239
+ * Returns U_ZERO_ERROR if constructed successfully.
240
+ * @stable ICU 2.0
241
+ */
242
+ GregorianCalendar(int32_t year, int32_t month, int32_t date, UErrorCode& success);
243
+
244
+ /**
245
+ * Constructs a GregorianCalendar with the given AD date and time set for the
246
+ * default time zone with the default locale.
247
+ *
248
+ * @param year The value used to set the YEAR time field in the calendar.
249
+ * @param month The value used to set the MONTH time field in the calendar. Month
250
+ * value is 0-based. e.g., 0 for January.
251
+ * @param date The value used to set the DATE time field in the calendar.
252
+ * @param hour The value used to set the HOUR_OF_DAY time field in the calendar.
253
+ * @param minute The value used to set the MINUTE time field in the calendar.
254
+ * @param success Indicates the status of GregorianCalendar object construction.
255
+ * Returns U_ZERO_ERROR if constructed successfully.
256
+ * @stable ICU 2.0
257
+ */
258
+ GregorianCalendar(int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, UErrorCode& success);
259
+
260
+ /**
261
+ * Constructs a GregorianCalendar with the given AD date and time set for the
262
+ * default time zone with the default locale.
263
+ *
264
+ * @param year The value used to set the YEAR time field in the calendar.
265
+ * @param month The value used to set the MONTH time field in the calendar. Month
266
+ * value is 0-based. e.g., 0 for January.
267
+ * @param date The value used to set the DATE time field in the calendar.
268
+ * @param hour The value used to set the HOUR_OF_DAY time field in the calendar.
269
+ * @param minute The value used to set the MINUTE time field in the calendar.
270
+ * @param second The value used to set the SECOND time field in the calendar.
271
+ * @param success Indicates the status of GregorianCalendar object construction.
272
+ * Returns U_ZERO_ERROR if constructed successfully.
273
+ * @stable ICU 2.0
274
+ */
275
+ GregorianCalendar(int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, int32_t second, UErrorCode& success);
276
+
277
+ /**
278
+ * Destructor
279
+ * @stable ICU 2.0
280
+ */
281
+ virtual ~GregorianCalendar();
282
+
283
+ /**
284
+ * Copy constructor
285
+ * @param source the object to be copied.
286
+ * @stable ICU 2.0
287
+ */
288
+ GregorianCalendar(const GregorianCalendar& source);
289
+
290
+ /**
291
+ * Default assignment operator
292
+ * @param right the object to be copied.
293
+ * @stable ICU 2.0
294
+ */
295
+ GregorianCalendar& operator=(const GregorianCalendar& right);
296
+
297
+ /**
298
+ * Create and return a polymorphic copy of this calendar.
299
+ * @return return a polymorphic copy of this calendar.
300
+ * @stable ICU 2.0
301
+ */
302
+ virtual Calendar* clone(void) const;
303
+
304
+ /**
305
+ * Sets the GregorianCalendar change date. This is the point when the switch from
306
+ * Julian dates to Gregorian dates occurred. Default is 00:00:00 local time, October
307
+ * 15, 1582. Previous to this time and date will be Julian dates.
308
+ *
309
+ * @param date The given Gregorian cutover date.
310
+ * @param success Output param set to success/failure code on exit.
311
+ * @stable ICU 2.0
312
+ */
313
+ void setGregorianChange(UDate date, UErrorCode& success);
314
+
315
+ /**
316
+ * Gets the Gregorian Calendar change date. This is the point when the switch from
317
+ * Julian dates to Gregorian dates occurred. Default is 00:00:00 local time, October
318
+ * 15, 1582. Previous to this time and date will be Julian dates.
319
+ *
320
+ * @return The Gregorian cutover time for this calendar.
321
+ * @stable ICU 2.0
322
+ */
323
+ UDate getGregorianChange(void) const;
324
+
325
+ /**
326
+ * Return true if the given year is a leap year. Determination of whether a year is
327
+ * a leap year is actually very complicated. We do something crude and mostly
328
+ * correct here, but for a real determination you need a lot of contextual
329
+ * information. For example, in Sweden, the change from Julian to Gregorian happened
330
+ * in a complex way resulting in missed leap years and double leap years between
331
+ * 1700 and 1753. Another example is that after the start of the Julian calendar in
332
+ * 45 B.C., the leap years did not regularize until 8 A.D. This method ignores these
333
+ * quirks, and pays attention only to the Julian onset date and the Gregorian
334
+ * cutover (which can be changed).
335
+ *
336
+ * @param year The given year.
337
+ * @return True if the given year is a leap year; false otherwise.
338
+ * @stable ICU 2.0
339
+ */
340
+ UBool isLeapYear(int32_t year) const;
341
+
342
+ /**
343
+ * Returns TRUE if the given Calendar object is equivalent to this
344
+ * one. Calendar override.
345
+ *
346
+ * @param other the Calendar to be compared with this Calendar
347
+ * @stable ICU 2.4
348
+ */
349
+ virtual UBool isEquivalentTo(const Calendar& other) const;
350
+
351
+ /**
352
+ * (Overrides Calendar) Rolls up or down by the given amount in the specified field.
353
+ * For more information, see the documentation for Calendar::roll().
354
+ *
355
+ * @param field The time field.
356
+ * @param amount Indicates amount to roll.
357
+ * @param status Output param set to success/failure code on exit. If any value
358
+ * previously set in the time field is invalid, this will be set to
359
+ * an error status.
360
+ * @deprecated ICU 2.6. Use roll(UCalendarDateFields field, int32_t amount, UErrorCode& status) instead.
361
+ */
362
+ virtual void roll(EDateFields field, int32_t amount, UErrorCode& status);
363
+
364
+ /**
365
+ * (Overrides Calendar) Rolls up or down by the given amount in the specified field.
366
+ * For more information, see the documentation for Calendar::roll().
367
+ *
368
+ * @param field The time field.
369
+ * @param amount Indicates amount to roll.
370
+ * @param status Output param set to success/failure code on exit. If any value
371
+ * previously set in the time field is invalid, this will be set to
372
+ * an error status.
373
+ * @stable ICU 2.6.
374
+ */
375
+ virtual void roll(UCalendarDateFields field, int32_t amount, UErrorCode& status);
376
+
377
+ #ifndef U_HIDE_DEPRECATED_API
378
+ /**
379
+ * Return the minimum value that this field could have, given the current date.
380
+ * For the Gregorian calendar, this is the same as getMinimum() and getGreatestMinimum().
381
+ * @param field the time field.
382
+ * @return the minimum value that this field could have, given the current date.
383
+ * @deprecated ICU 2.6. Use getActualMinimum(UCalendarDateFields field) instead.
384
+ */
385
+ int32_t getActualMinimum(EDateFields field) const;
386
+
387
+ /**
388
+ * Return the minimum value that this field could have, given the current date.
389
+ * For the Gregorian calendar, this is the same as getMinimum() and getGreatestMinimum().
390
+ * @param field the time field.
391
+ * @param status
392
+ * @return the minimum value that this field could have, given the current date.
393
+ * @deprecated ICU 2.6. Use getActualMinimum(UCalendarDateFields field) instead. (Added to ICU 3.0 for signature consistency)
394
+ */
395
+ int32_t getActualMinimum(EDateFields field, UErrorCode& status) const;
396
+ #endif /* U_HIDE_DEPRECATED_API */
397
+
398
+ /**
399
+ * Return the minimum value that this field could have, given the current date.
400
+ * For the Gregorian calendar, this is the same as getMinimum() and getGreatestMinimum().
401
+ * @param field the time field.
402
+ * @param status error result.
403
+ * @return the minimum value that this field could have, given the current date.
404
+ * @stable ICU 3.0
405
+ */
406
+ int32_t getActualMinimum(UCalendarDateFields field, UErrorCode &status) const;
407
+
408
+ #ifndef U_HIDE_DEPRECATED_API
409
+ /**
410
+ * Return the maximum value that this field could have, given the current date.
411
+ * For example, with the date "Feb 3, 1997" and the DAY_OF_MONTH field, the actual
412
+ * maximum would be 28; for "Feb 3, 1996" it s 29. Similarly for a Hebrew calendar,
413
+ * for some years the actual maximum for MONTH is 12, and for others 13.
414
+ * @param field the time field.
415
+ * @return the maximum value that this field could have, given the current date.
416
+ * @deprecated ICU 2.6. Use getActualMaximum(UCalendarDateFields field) instead.
417
+ */
418
+ int32_t getActualMaximum(EDateFields field) const;
419
+ #endif /* U_HIDE_DEPRECATED_API */
420
+
421
+ /**
422
+ * Return the maximum value that this field could have, given the current date.
423
+ * For example, with the date "Feb 3, 1997" and the DAY_OF_MONTH field, the actual
424
+ * maximum would be 28; for "Feb 3, 1996" it s 29. Similarly for a Hebrew calendar,
425
+ * for some years the actual maximum for MONTH is 12, and for others 13.
426
+ * @param field the time field.
427
+ * @param status returns any errors that may result from this function call.
428
+ * @return the maximum value that this field could have, given the current date.
429
+ * @stable ICU 2.6
430
+ */
431
+ virtual int32_t getActualMaximum(UCalendarDateFields field, UErrorCode& status) const;
432
+
433
+ /**
434
+ * (Overrides Calendar) Return true if the current date for this Calendar is in
435
+ * Daylight Savings Time. Recognizes DST_OFFSET, if it is set.
436
+ *
437
+ * @param status Fill-in parameter which receives the status of this operation.
438
+ * @return True if the current date for this Calendar is in Daylight Savings Time,
439
+ * false, otherwise.
440
+ * @stable ICU 2.0
441
+ */
442
+ virtual UBool inDaylightTime(UErrorCode& status) const;
443
+
444
+ public:
445
+
446
+ /**
447
+ * Override Calendar Returns a unique class ID POLYMORPHICALLY. Pure virtual
448
+ * override. This method is to implement a simple version of RTTI, since not all C++
449
+ * compilers support genuine RTTI. Polymorphic operator==() and clone() methods call
450
+ * this method.
451
+ *
452
+ * @return The class ID for this object. All objects of a given class have the
453
+ * same class ID. Objects of other classes have different class IDs.
454
+ * @stable ICU 2.0
455
+ */
456
+ virtual UClassID getDynamicClassID(void) const;
457
+
458
+ /**
459
+ * Return the class ID for this class. This is useful only for comparing to a return
460
+ * value from getDynamicClassID(). For example:
461
+ *
462
+ * Base* polymorphic_pointer = createPolymorphicObject();
463
+ * if (polymorphic_pointer->getDynamicClassID() ==
464
+ * Derived::getStaticClassID()) ...
465
+ *
466
+ * @return The class ID for all objects of this class.
467
+ * @stable ICU 2.0
468
+ */
469
+ static UClassID U_EXPORT2 getStaticClassID(void);
470
+
471
+ /**
472
+ * Returns the calendar type name string for this Calendar object.
473
+ * The returned string is the legacy ICU calendar attribute value,
474
+ * for example, "gregorian" or "japanese".
475
+ *
476
+ * For more details see the Calendar::getType() documentation.
477
+ *
478
+ * @return legacy calendar type name string
479
+ * @stable ICU 49
480
+ */
481
+ virtual const char * getType() const;
482
+
483
+ private:
484
+ GregorianCalendar(); // default constructor not implemented
485
+
486
+ protected:
487
+ /**
488
+ * Return the ERA. We need a special method for this because the
489
+ * default ERA is AD, but a zero (unset) ERA is BC.
490
+ * @return the ERA.
491
+ * @internal
492
+ */
493
+ virtual int32_t internalGetEra() const;
494
+
495
+ /**
496
+ * Return the Julian day number of day before the first day of the
497
+ * given month in the given extended year. Subclasses should override
498
+ * this method to implement their calendar system.
499
+ * @param eyear the extended year
500
+ * @param month the zero-based month, or 0 if useMonth is false
501
+ * @param useMonth if false, compute the day before the first day of
502
+ * the given year, otherwise, compute the day before the first day of
503
+ * the given month
504
+ * @return the Julian day number of the day before the first
505
+ * day of the given month and year
506
+ * @internal
507
+ */
508
+ virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month,
509
+ UBool useMonth) const;
510
+
511
+ /**
512
+ * Subclasses may override this. This method calls
513
+ * handleGetMonthLength() to obtain the calendar-specific month
514
+ * length.
515
+ * @param bestField which field to use to calculate the date
516
+ * @return julian day specified by calendar fields.
517
+ * @internal
518
+ */
519
+ virtual int32_t handleComputeJulianDay(UCalendarDateFields bestField) ;
520
+
521
+ /**
522
+ * Return the number of days in the given month of the given extended
523
+ * year of this calendar system. Subclasses should override this
524
+ * method if they can provide a more correct or more efficient
525
+ * implementation than the default implementation in Calendar.
526
+ * @internal
527
+ */
528
+ virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
529
+
530
+ /**
531
+ * Return the number of days in the given extended year of this
532
+ * calendar system. Subclasses should override this method if they can
533
+ * provide a more correct or more efficient implementation than the
534
+ * default implementation in Calendar.
535
+ * @stable ICU 2.0
536
+ */
537
+ virtual int32_t handleGetYearLength(int32_t eyear) const;
538
+
539
+ /**
540
+ * return the length of the given month.
541
+ * @param month the given month.
542
+ * @return the length of the given month.
543
+ * @internal
544
+ */
545
+ virtual int32_t monthLength(int32_t month) const;
546
+
547
+ /**
548
+ * return the length of the month according to the given year.
549
+ * @param month the given month.
550
+ * @param year the given year.
551
+ * @return the length of the month
552
+ * @internal
553
+ */
554
+ virtual int32_t monthLength(int32_t month, int32_t year) const;
555
+
556
+ #ifndef U_HIDE_INTERNAL_API
557
+ /**
558
+ * return the length of the given year.
559
+ * @param year the given year.
560
+ * @return the length of the given year.
561
+ * @internal
562
+ */
563
+ int32_t yearLength(int32_t year) const;
564
+
565
+ /**
566
+ * return the length of the year field.
567
+ * @return the length of the year field
568
+ * @internal
569
+ */
570
+ int32_t yearLength(void) const;
571
+
572
+ /**
573
+ * After adjustments such as add(MONTH), add(YEAR), we don't want the
574
+ * month to jump around. E.g., we don't want Jan 31 + 1 month to go to Mar
575
+ * 3, we want it to go to Feb 28. Adjustments which might run into this
576
+ * problem call this method to retain the proper month.
577
+ * @internal
578
+ */
579
+ void pinDayOfMonth(void);
580
+ #endif /* U_HIDE_INTERNAL_API */
581
+
582
+ /**
583
+ * Return the day number with respect to the epoch. January 1, 1970 (Gregorian)
584
+ * is day zero.
585
+ * @param status Fill-in parameter which receives the status of this operation.
586
+ * @return the day number with respect to the epoch.
587
+ * @internal
588
+ */
589
+ virtual UDate getEpochDay(UErrorCode& status);
590
+
591
+ /**
592
+ * Subclass API for defining limits of different types.
593
+ * Subclasses must implement this method to return limits for the
594
+ * following fields:
595
+ *
596
+ * <pre>UCAL_ERA
597
+ * UCAL_YEAR
598
+ * UCAL_MONTH
599
+ * UCAL_WEEK_OF_YEAR
600
+ * UCAL_WEEK_OF_MONTH
601
+ * UCAL_DATE (DAY_OF_MONTH on Java)
602
+ * UCAL_DAY_OF_YEAR
603
+ * UCAL_DAY_OF_WEEK_IN_MONTH
604
+ * UCAL_YEAR_WOY
605
+ * UCAL_EXTENDED_YEAR</pre>
606
+ *
607
+ * @param field one of the above field numbers
608
+ * @param limitType one of <code>MINIMUM</code>, <code>GREATEST_MINIMUM</code>,
609
+ * <code>LEAST_MAXIMUM</code>, or <code>MAXIMUM</code>
610
+ * @internal
611
+ */
612
+ virtual int32_t handleGetLimit(UCalendarDateFields field, ELimitType limitType) const;
613
+
614
+ /**
615
+ * Return the extended year defined by the current fields. This will
616
+ * use the UCAL_EXTENDED_YEAR field or the UCAL_YEAR and supra-year fields (such
617
+ * as UCAL_ERA) specific to the calendar system, depending on which set of
618
+ * fields is newer.
619
+ * @return the extended year
620
+ * @internal
621
+ */
622
+ virtual int32_t handleGetExtendedYear();
623
+
624
+ /**
625
+ * Subclasses may override this to convert from week fields
626
+ * (YEAR_WOY and WEEK_OF_YEAR) to an extended year in the case
627
+ * where YEAR, EXTENDED_YEAR are not set.
628
+ * The Gregorian implementation assumes a yearWoy in gregorian format, according to the current era.
629
+ * @return the extended year, UCAL_EXTENDED_YEAR
630
+ * @internal
631
+ */
632
+ virtual int32_t handleGetExtendedYearFromWeekFields(int32_t yearWoy, int32_t woy);
633
+
634
+
635
+ /**
636
+ * Subclasses may override this method to compute several fields
637
+ * specific to each calendar system. These are:
638
+ *
639
+ * <ul><li>ERA
640
+ * <li>YEAR
641
+ * <li>MONTH
642
+ * <li>DAY_OF_MONTH
643
+ * <li>DAY_OF_YEAR
644
+ * <li>EXTENDED_YEAR</ul>
645
+ *
646
+ * <p>The GregorianCalendar implementation implements
647
+ * a calendar with the specified Julian/Gregorian cutover date.
648
+ * @internal
649
+ */
650
+ virtual void handleComputeFields(int32_t julianDay, UErrorCode &status);
651
+
652
+ private:
653
+ /**
654
+ * Compute the julian day number of the given year.
655
+ * @param isGregorian if true, using Gregorian calendar, otherwise using Julian calendar
656
+ * @param year the given year.
657
+ * @param isLeap true if the year is a leap year.
658
+ * @return
659
+ */
660
+ static double computeJulianDayOfYear(UBool isGregorian, int32_t year,
661
+ UBool& isLeap);
662
+
663
+ /**
664
+ * Validates the values of the set time fields. True if they're all valid.
665
+ * @return True if the set time fields are all valid.
666
+ */
667
+ UBool validateFields(void) const;
668
+
669
+ /**
670
+ * Validates the value of the given time field. True if it's valid.
671
+ */
672
+ UBool boundsCheck(int32_t value, UCalendarDateFields field) const;
673
+
674
+ /**
675
+ * Return the pseudo-time-stamp for two fields, given their
676
+ * individual pseudo-time-stamps. If either of the fields
677
+ * is unset, then the aggregate is unset. Otherwise, the
678
+ * aggregate is the later of the two stamps.
679
+ * @param stamp_a One given field.
680
+ * @param stamp_b Another given field.
681
+ * @return the pseudo-time-stamp for two fields
682
+ */
683
+ int32_t aggregateStamp(int32_t stamp_a, int32_t stamp_b);
684
+
685
+ /**
686
+ * The point at which the Gregorian calendar rules are used, measured in
687
+ * milliseconds from the standard epoch. Default is October 15, 1582
688
+ * (Gregorian) 00:00:00 UTC, that is, October 4, 1582 (Julian) is followed
689
+ * by October 15, 1582 (Gregorian). This corresponds to Julian day number
690
+ * 2299161. This is measured from the standard epoch, not in Julian Days.
691
+ */
692
+ UDate fGregorianCutover;
693
+
694
+ /**
695
+ * Julian day number of the Gregorian cutover
696
+ */
697
+ int32_t fCutoverJulianDay;
698
+
699
+ /**
700
+ * Midnight, local time (using this Calendar's TimeZone) at or before the
701
+ * gregorianCutover. This is a pure date value with no time of day or
702
+ * timezone component.
703
+ */
704
+ UDate fNormalizedGregorianCutover;// = gregorianCutover;
705
+
706
+ /**
707
+ * The year of the gregorianCutover, with 0 representing
708
+ * 1 BC, -1 representing 2 BC, etc.
709
+ */
710
+ int32_t fGregorianCutoverYear;// = 1582;
711
+
712
+ /**
713
+ * The year of the gregorianCutover, with 0 representing
714
+ * 1 BC, -1 representing 2 BC, etc.
715
+ */
716
+ int32_t fGregorianCutoverJulianDay;// = 2299161;
717
+
718
+ /**
719
+ * Converts time as milliseconds to Julian date. The Julian date used here is not a
720
+ * true Julian date, since it is measured from midnight, not noon.
721
+ *
722
+ * @param millis The given milliseconds.
723
+ * @return The Julian date number.
724
+ */
725
+ static double millisToJulianDay(UDate millis);
726
+
727
+ /**
728
+ * Converts Julian date to time as milliseconds. The Julian date used here is not a
729
+ * true Julian date, since it is measured from midnight, not noon.
730
+ *
731
+ * @param julian The given Julian date number.
732
+ * @return Time as milliseconds.
733
+ */
734
+ static UDate julianDayToMillis(double julian);
735
+
736
+ /**
737
+ * Used by handleComputeJulianDay() and handleComputeMonthStart().
738
+ * Temporary field indicating whether the calendar is currently Gregorian as opposed to Julian.
739
+ */
740
+ UBool fIsGregorian;
741
+
742
+ /**
743
+ * Used by handleComputeJulianDay() and handleComputeMonthStart().
744
+ * Temporary field indicating that the sense of the gregorian cutover should be inverted
745
+ * to handle certain calculations on and around the cutover date.
746
+ */
747
+ UBool fInvertGregorian;
748
+
749
+
750
+ public: // internal implementation
751
+
752
+ /**
753
+ * @return TRUE if this calendar has the notion of a default century
754
+ * @internal
755
+ */
756
+ virtual UBool haveDefaultCentury() const;
757
+
758
+ /**
759
+ * @return the start of the default century
760
+ * @internal
761
+ */
762
+ virtual UDate defaultCenturyStart() const;
763
+
764
+ /**
765
+ * @return the beginning year of the default century
766
+ * @internal
767
+ */
768
+ virtual int32_t defaultCenturyStartYear() const;
769
+ };
770
+
771
+ U_NAMESPACE_END
772
+
773
+ #endif /* #if !UCONFIG_NO_FORMATTING */
774
+
775
+ #endif // _GREGOCAL
776
+ //eof
777
+