pango 3.2.5-x64-mingw32 → 3.2.6-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (368) hide show
  1. checksums.yaml +4 -4
  2. data/COPYING.LIB +502 -0
  3. data/README.md +25 -0
  4. data/Rakefile +8 -8
  5. data/ext/pango/extconf.rb +4 -1
  6. data/ext/pango/pango.def +1 -0
  7. data/ext/pango/rb-pango-attr-list.c +3 -3
  8. data/ext/pango/rb-pango-attribute.c +67 -57
  9. data/ext/pango/rb-pango-conversions.h +3 -3
  10. data/ext/pango/rb-pango-private.h +0 -1
  11. data/ext/pango/rb-pango.c +0 -1
  12. data/ext/pango/rb-pango.h +2 -1
  13. data/lib/2.2/pango.so +0 -0
  14. data/lib/2.3/pango.so +0 -0
  15. data/lib/2.4/pango.so +0 -0
  16. data/lib/2.5/pango.so +0 -0
  17. data/lib/pango/loader.rb +13 -1
  18. data/lib/pango/rectangle.rb +7 -1
  19. data/pango.gemspec +43 -0
  20. data/vendor/local/bin/derb.exe +0 -0
  21. data/vendor/local/bin/escapesrc.exe +0 -0
  22. data/vendor/local/bin/fribidi.exe +0 -0
  23. data/vendor/local/bin/genbrk.exe +0 -0
  24. data/vendor/local/bin/genccode.exe +0 -0
  25. data/vendor/local/bin/gencfu.exe +0 -0
  26. data/vendor/local/bin/gencmn.exe +0 -0
  27. data/vendor/local/bin/gencnval.exe +0 -0
  28. data/vendor/local/bin/gendict.exe +0 -0
  29. data/vendor/local/bin/gennorm2.exe +0 -0
  30. data/vendor/local/bin/genrb.exe +0 -0
  31. data/vendor/local/bin/gensprep.exe +0 -0
  32. data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
  33. data/vendor/local/bin/hb-shape.exe +0 -0
  34. data/vendor/local/bin/hb-subset.exe +0 -0
  35. data/vendor/local/bin/hb-view.exe +0 -0
  36. data/vendor/local/bin/icu-config +13 -8
  37. data/vendor/local/bin/icuinfo.exe +0 -0
  38. data/vendor/local/bin/icupkg.exe +0 -0
  39. data/vendor/local/bin/libfribidi-0.dll +0 -0
  40. data/vendor/local/bin/libgraphene-1.0-0.dll +0 -0
  41. data/vendor/local/bin/libharfbuzz-0.dll +0 -0
  42. data/vendor/local/bin/libharfbuzz-subset-0.dll +0 -0
  43. data/vendor/local/bin/libpango-1.0-0.dll +0 -0
  44. data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
  45. data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
  46. data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
  47. data/vendor/local/bin/makeconv.exe +0 -0
  48. data/vendor/local/bin/pango-view.exe +0 -0
  49. data/vendor/local/bin/pkgdata.exe +0 -0
  50. data/vendor/local/bin/uconv.exe +0 -0
  51. data/vendor/local/include/fribidi/fribidi-config.h +2 -2
  52. data/vendor/local/include/harfbuzz/hb-blob.h +2 -0
  53. data/vendor/local/include/harfbuzz/hb-common.h +24 -3
  54. data/vendor/local/include/harfbuzz/hb-face.h +4 -0
  55. data/vendor/local/include/harfbuzz/hb-map.h +104 -0
  56. data/vendor/local/include/harfbuzz/hb-ot-layout.h +1 -1
  57. data/vendor/local/include/harfbuzz/hb-set.h +0 -2
  58. data/vendor/local/include/harfbuzz/hb-subset-plan.hh +46 -25
  59. data/vendor/local/include/harfbuzz/hb-subset.h +4 -1
  60. data/vendor/local/include/harfbuzz/hb-version.h +3 -3
  61. data/vendor/local/include/harfbuzz/hb.h +1 -0
  62. data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
  63. data/vendor/local/include/unicode/alphaindex.h +2 -1
  64. data/vendor/local/include/unicode/appendable.h +25 -25
  65. data/vendor/local/include/unicode/basictz.h +1 -1
  66. data/vendor/local/include/unicode/brkiter.h +19 -24
  67. data/vendor/local/include/unicode/bytestream.h +26 -13
  68. data/vendor/local/include/unicode/bytestrie.h +2 -2
  69. data/vendor/local/include/unicode/bytestriebuilder.h +4 -5
  70. data/vendor/local/include/unicode/calendar.h +11 -11
  71. data/vendor/local/include/unicode/caniter.h +3 -3
  72. data/vendor/local/include/unicode/casemap.h +494 -0
  73. data/vendor/local/include/unicode/char16ptr.h +302 -0
  74. data/vendor/local/include/unicode/chariter.h +22 -18
  75. data/vendor/local/include/unicode/choicfmt.h +1 -1
  76. data/vendor/local/include/unicode/coleitr.h +2 -1
  77. data/vendor/local/include/unicode/coll.h +17 -17
  78. data/vendor/local/include/unicode/compactdecimalformat.h +10 -2
  79. data/vendor/local/include/unicode/curramt.h +5 -5
  80. data/vendor/local/include/unicode/currpinf.h +1 -1
  81. data/vendor/local/include/unicode/currunit.h +24 -6
  82. data/vendor/local/include/unicode/datefmt.h +3 -2
  83. data/vendor/local/include/unicode/dbbi.h +1 -1
  84. data/vendor/local/include/unicode/dcfmtsym.h +89 -13
  85. data/vendor/local/include/unicode/decimfmt.h +38 -39
  86. data/vendor/local/include/unicode/docmain.h +7 -2
  87. data/vendor/local/include/unicode/dtfmtsym.h +7 -6
  88. data/vendor/local/include/unicode/dtintrv.h +2 -2
  89. data/vendor/local/include/unicode/dtitvfmt.h +2 -2
  90. data/vendor/local/include/unicode/dtitvinf.h +1 -3
  91. data/vendor/local/include/unicode/dtptngen.h +48 -24
  92. data/vendor/local/include/unicode/dtrule.h +1 -1
  93. data/vendor/local/include/unicode/edits.h +424 -0
  94. data/vendor/local/include/unicode/enumset.h +1 -1
  95. data/vendor/local/include/unicode/errorcode.h +2 -2
  96. data/vendor/local/include/unicode/fieldpos.h +1 -1
  97. data/vendor/local/include/unicode/filteredbrk.h +35 -5
  98. data/vendor/local/include/unicode/fmtable.h +1 -1
  99. data/vendor/local/include/unicode/format.h +1 -1
  100. data/vendor/local/include/unicode/fpositer.h +11 -3
  101. data/vendor/local/include/unicode/gender.h +1 -1
  102. data/vendor/local/include/unicode/gregocal.h +1 -1
  103. data/vendor/local/include/unicode/icudataver.h +1 -1
  104. data/vendor/local/include/unicode/icuplug.h +1 -1
  105. data/vendor/local/include/unicode/idna.h +2 -2
  106. data/vendor/local/include/unicode/listformatter.h +4 -2
  107. data/vendor/local/include/unicode/localpointer.h +6 -43
  108. data/vendor/local/include/unicode/locdspnm.h +2 -1
  109. data/vendor/local/include/unicode/locid.h +7 -6
  110. data/vendor/local/include/unicode/measfmt.h +18 -7
  111. data/vendor/local/include/unicode/measunit.h +31 -60
  112. data/vendor/local/include/unicode/measure.h +1 -1
  113. data/vendor/local/include/unicode/messagepattern.h +2 -2
  114. data/vendor/local/include/unicode/msgfmt.h +2 -2
  115. data/vendor/local/include/unicode/normalizer2.h +130 -16
  116. data/vendor/local/include/unicode/normlzr.h +5 -5
  117. data/vendor/local/include/unicode/nounit.h +111 -0
  118. data/vendor/local/include/unicode/numberformatter.h +2194 -0
  119. data/vendor/local/include/unicode/numfmt.h +81 -7
  120. data/vendor/local/include/unicode/numsys.h +2 -2
  121. data/vendor/local/include/unicode/parseerr.h +3 -3
  122. data/vendor/local/include/unicode/parsepos.h +1 -1
  123. data/vendor/local/include/unicode/platform.h +66 -63
  124. data/vendor/local/include/unicode/plurfmt.h +1 -1
  125. data/vendor/local/include/unicode/plurrule.h +23 -4
  126. data/vendor/local/include/unicode/ptypes.h +1 -1
  127. data/vendor/local/include/unicode/putil.h +4 -4
  128. data/vendor/local/include/unicode/rbbi.h +105 -134
  129. data/vendor/local/include/unicode/rbnf.h +65 -3
  130. data/vendor/local/include/unicode/rbtz.h +1 -1
  131. data/vendor/local/include/unicode/regex.h +17 -17
  132. data/vendor/local/include/unicode/region.h +1 -1
  133. data/vendor/local/include/unicode/reldatefmt.h +4 -5
  134. data/vendor/local/include/unicode/rep.h +4 -4
  135. data/vendor/local/include/unicode/resbund.h +3 -3
  136. data/vendor/local/include/unicode/schriter.h +3 -3
  137. data/vendor/local/include/unicode/scientificnumberformatter.h +1 -1
  138. data/vendor/local/include/unicode/search.h +1 -1
  139. data/vendor/local/include/unicode/selfmt.h +1 -1
  140. data/vendor/local/include/unicode/simpleformatter.h +31 -25
  141. data/vendor/local/include/unicode/simpletz.h +5 -3
  142. data/vendor/local/include/unicode/smpdtfmt.h +17 -7
  143. data/vendor/local/include/unicode/sortkey.h +1 -1
  144. data/vendor/local/include/unicode/std_string.h +6 -8
  145. data/vendor/local/include/unicode/strenum.h +5 -5
  146. data/vendor/local/include/unicode/stringoptions.h +198 -0
  147. data/vendor/local/include/unicode/stringpiece.h +1 -3
  148. data/vendor/local/include/unicode/stringtriebuilder.h +19 -19
  149. data/vendor/local/include/unicode/stsearch.h +1 -1
  150. data/vendor/local/include/unicode/symtable.h +1 -1
  151. data/vendor/local/include/unicode/tblcoll.h +13 -13
  152. data/vendor/local/include/unicode/timezone.h +5 -5
  153. data/vendor/local/include/unicode/tmunit.h +1 -1
  154. data/vendor/local/include/unicode/tmutamt.h +1 -1
  155. data/vendor/local/include/unicode/tmutfmt.h +1 -1
  156. data/vendor/local/include/unicode/translit.h +2 -2
  157. data/vendor/local/include/unicode/tzfmt.h +4 -4
  158. data/vendor/local/include/unicode/tznames.h +3 -5
  159. data/vendor/local/include/unicode/tzrule.h +1 -1
  160. data/vendor/local/include/unicode/tztrans.h +1 -1
  161. data/vendor/local/include/unicode/ubidi.h +11 -8
  162. data/vendor/local/include/unicode/ubiditransform.h +16 -19
  163. data/vendor/local/include/unicode/ubrk.h +61 -4
  164. data/vendor/local/include/unicode/ucal.h +3 -3
  165. data/vendor/local/include/unicode/ucasemap.h +7 -47
  166. data/vendor/local/include/unicode/ucat.h +1 -1
  167. data/vendor/local/include/unicode/uchar.h +62 -37
  168. data/vendor/local/include/unicode/ucharstrie.h +48 -48
  169. data/vendor/local/include/unicode/ucharstriebuilder.h +12 -12
  170. data/vendor/local/include/unicode/uchriter.h +33 -29
  171. data/vendor/local/include/unicode/uclean.h +15 -13
  172. data/vendor/local/include/unicode/ucnv.h +11 -11
  173. data/vendor/local/include/unicode/ucnv_cb.h +1 -1
  174. data/vendor/local/include/unicode/ucnv_err.h +7 -7
  175. data/vendor/local/include/unicode/ucnvsel.h +1 -1
  176. data/vendor/local/include/unicode/ucol.h +6 -6
  177. data/vendor/local/include/unicode/ucoleitr.h +3 -3
  178. data/vendor/local/include/unicode/uconfig.h +8 -5
  179. data/vendor/local/include/unicode/ucsdet.h +7 -3
  180. data/vendor/local/include/unicode/ucurr.h +14 -1
  181. data/vendor/local/include/unicode/udat.h +39 -41
  182. data/vendor/local/include/unicode/udata.h +2 -2
  183. data/vendor/local/include/unicode/udateintervalformat.h +1 -1
  184. data/vendor/local/include/unicode/udatpg.h +56 -5
  185. data/vendor/local/include/unicode/udisplaycontext.h +4 -8
  186. data/vendor/local/include/unicode/uenum.h +5 -3
  187. data/vendor/local/include/unicode/ufieldpositer.h +1 -1
  188. data/vendor/local/include/unicode/uformattable.h +2 -2
  189. data/vendor/local/include/unicode/ugender.h +1 -1
  190. data/vendor/local/include/unicode/uidna.h +2 -2
  191. data/vendor/local/include/unicode/uiter.h +2 -2
  192. data/vendor/local/include/unicode/uldnames.h +1 -1
  193. data/vendor/local/include/unicode/ulistformatter.h +4 -4
  194. data/vendor/local/include/unicode/uloc.h +29 -16
  195. data/vendor/local/include/unicode/ulocdata.h +5 -5
  196. data/vendor/local/include/unicode/umachine.h +81 -38
  197. data/vendor/local/include/unicode/umisc.h +2 -2
  198. data/vendor/local/include/unicode/umsg.h +2 -2
  199. data/vendor/local/include/unicode/unifilt.h +2 -2
  200. data/vendor/local/include/unicode/unifunct.h +1 -1
  201. data/vendor/local/include/unicode/unimatch.h +1 -1
  202. data/vendor/local/include/unicode/unirepl.h +1 -1
  203. data/vendor/local/include/unicode/uniset.h +5 -4
  204. data/vendor/local/include/unicode/unistr.h +322 -208
  205. data/vendor/local/include/unicode/unorm.h +9 -9
  206. data/vendor/local/include/unicode/unorm2.h +3 -26
  207. data/vendor/local/include/unicode/unum.h +71 -11
  208. data/vendor/local/include/unicode/unumsys.h +1 -1
  209. data/vendor/local/include/unicode/uobject.h +2 -2
  210. data/vendor/local/include/unicode/upluralrules.h +51 -6
  211. data/vendor/local/include/unicode/uregex.h +2 -2
  212. data/vendor/local/include/unicode/uregion.h +2 -2
  213. data/vendor/local/include/unicode/ureldatefmt.h +33 -39
  214. data/vendor/local/include/unicode/urename.h +18 -17
  215. data/vendor/local/include/unicode/urep.h +1 -1
  216. data/vendor/local/include/unicode/ures.h +9 -9
  217. data/vendor/local/include/unicode/uscript.h +10 -3
  218. data/vendor/local/include/unicode/usearch.h +3 -3
  219. data/vendor/local/include/unicode/uset.h +2 -2
  220. data/vendor/local/include/unicode/usetiter.h +1 -1
  221. data/vendor/local/include/unicode/ushape.h +3 -3
  222. data/vendor/local/include/unicode/uspoof.h +24 -29
  223. data/vendor/local/include/unicode/usprep.h +7 -7
  224. data/vendor/local/include/unicode/ustdio.h +1 -1
  225. data/vendor/local/include/unicode/ustream.h +2 -9
  226. data/vendor/local/include/unicode/ustring.h +3 -13
  227. data/vendor/local/include/unicode/ustringtrie.h +2 -2
  228. data/vendor/local/include/unicode/utext.h +16 -16
  229. data/vendor/local/include/unicode/utf.h +19 -19
  230. data/vendor/local/include/unicode/utf16.h +128 -8
  231. data/vendor/local/include/unicode/utf32.h +2 -2
  232. data/vendor/local/include/unicode/utf8.h +177 -121
  233. data/vendor/local/include/unicode/utf_old.h +40 -7
  234. data/vendor/local/include/unicode/utmscale.h +8 -1
  235. data/vendor/local/include/unicode/utrace.h +4 -4
  236. data/vendor/local/include/unicode/utrans.h +3 -3
  237. data/vendor/local/include/unicode/utypes.h +13 -10
  238. data/vendor/local/include/unicode/uvernum.h +18 -11
  239. data/vendor/local/include/unicode/uversion.h +10 -4
  240. data/vendor/local/include/unicode/vtzone.h +1 -1
  241. data/vendor/local/lib/cmake/harfbuzz/harfbuzz-config.cmake +1 -1
  242. data/vendor/local/lib/icu/{58.2 → 61.1}/Makefile.inc +7 -7
  243. data/vendor/local/lib/icu/{58.2 → 61.1}/pkgdata.inc +2 -2
  244. data/vendor/local/lib/icu/Makefile.inc +7 -7
  245. data/vendor/local/lib/icu/pkgdata.inc +2 -2
  246. data/vendor/local/lib/icudt.dll +0 -0
  247. data/vendor/local/lib/{icudt58.dll → icudt61.dll} +0 -0
  248. data/vendor/local/lib/icuin.dll +0 -0
  249. data/vendor/local/lib/icuin61.dll +0 -0
  250. data/vendor/local/lib/icuio.dll +0 -0
  251. data/vendor/local/lib/{icuio58.dll → icuio61.dll} +0 -0
  252. data/vendor/local/lib/icutest.dll +0 -0
  253. data/vendor/local/lib/{icutest58.dll → icutest61.dll} +0 -0
  254. data/vendor/local/lib/icutu.dll +0 -0
  255. data/vendor/local/lib/icutu61.dll +0 -0
  256. data/vendor/local/lib/icuuc.dll +0 -0
  257. data/vendor/local/lib/icuuc61.dll +0 -0
  258. data/vendor/local/lib/libfribidi.dll.a +0 -0
  259. data/vendor/local/lib/libgraphene-1.0.dll.a +0 -0
  260. data/vendor/local/lib/libharfbuzz-icu.a +0 -0
  261. data/vendor/local/lib/libharfbuzz-icu.la +3 -3
  262. data/vendor/local/lib/libharfbuzz-subset.dll.a +0 -0
  263. data/vendor/local/lib/libharfbuzz-subset.la +3 -3
  264. data/vendor/local/lib/libharfbuzz.dll.a +0 -0
  265. data/vendor/local/lib/libharfbuzz.la +3 -3
  266. data/vendor/local/lib/libicudt.dll.a +0 -0
  267. data/vendor/local/lib/libicuin.dll.a +0 -0
  268. data/vendor/local/lib/libicuio.dll.a +0 -0
  269. data/vendor/local/lib/libicutest.dll.a +0 -0
  270. data/vendor/local/lib/libicutu.dll.a +0 -0
  271. data/vendor/local/lib/libicuuc.dll.a +0 -0
  272. data/vendor/local/lib/libpango-1.0.dll.a +0 -0
  273. data/vendor/local/lib/libpango-1.0.la +2 -2
  274. data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
  275. data/vendor/local/lib/libpangocairo-1.0.la +2 -2
  276. data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
  277. data/vendor/local/lib/libpangoft2-1.0.la +2 -2
  278. data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
  279. data/vendor/local/lib/libpangowin32-1.0.la +2 -2
  280. data/vendor/local/lib/pkgconfig/fribidi.pc +1 -1
  281. data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +1 -1
  282. data/vendor/local/lib/pkgconfig/harfbuzz-subset.pc +1 -1
  283. data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
  284. data/vendor/local/lib/pkgconfig/icu-i18n.pc +7 -7
  285. data/vendor/local/lib/pkgconfig/icu-io.pc +7 -7
  286. data/vendor/local/lib/pkgconfig/icu-uc.pc +7 -7
  287. data/vendor/local/lib/pkgconfig/pango.pc +2 -2
  288. data/vendor/local/lib/pkgconfig/pangocairo.pc +2 -2
  289. data/vendor/local/lib/pkgconfig/pangoft2.pc +2 -2
  290. data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
  291. data/vendor/local/libexec/installed-tests/graphene-1.0/box.exe +0 -0
  292. data/vendor/local/libexec/installed-tests/graphene-1.0/euler.exe +0 -0
  293. data/vendor/local/libexec/installed-tests/graphene-1.0/frustum.exe +0 -0
  294. data/vendor/local/libexec/installed-tests/graphene-1.0/matrix.exe +0 -0
  295. data/vendor/local/libexec/installed-tests/graphene-1.0/plane.exe +0 -0
  296. data/vendor/local/libexec/installed-tests/graphene-1.0/point.exe +0 -0
  297. data/vendor/local/libexec/installed-tests/graphene-1.0/point3d.exe +0 -0
  298. data/vendor/local/libexec/installed-tests/graphene-1.0/quad.exe +0 -0
  299. data/vendor/local/libexec/installed-tests/graphene-1.0/quaternion.exe +0 -0
  300. data/vendor/local/libexec/installed-tests/graphene-1.0/ray.exe +0 -0
  301. data/vendor/local/libexec/installed-tests/graphene-1.0/rect.exe +0 -0
  302. data/vendor/local/libexec/installed-tests/graphene-1.0/simd.exe +0 -0
  303. data/vendor/local/libexec/installed-tests/graphene-1.0/size.exe +0 -0
  304. data/vendor/local/libexec/installed-tests/graphene-1.0/sphere.exe +0 -0
  305. data/vendor/local/libexec/installed-tests/graphene-1.0/triangle.exe +0 -0
  306. data/vendor/local/libexec/installed-tests/graphene-1.0/vec2.exe +0 -0
  307. data/vendor/local/libexec/installed-tests/graphene-1.0/vec3.exe +0 -0
  308. data/vendor/local/libexec/installed-tests/graphene-1.0/vec4.exe +0 -0
  309. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Buffers.html +5 -3
  310. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +5 -0
  311. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +1 -0
  312. data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +1 -1
  313. data/vendor/local/share/gtk-doc/html/pango/index.html +1 -1
  314. data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +2 -2
  315. data/vendor/local/share/icu/{58.2 → 61.1}/LICENSE +32 -3
  316. data/vendor/local/share/icu/{58.2 → 61.1}/config/mh-mingw64 +4 -0
  317. data/vendor/local/share/icu/{58.2 → 61.1}/install-sh +0 -0
  318. data/vendor/local/share/icu/{58.2 → 61.1}/mkinstalldirs +0 -0
  319. data/vendor/local/share/man/man1/derb.1 +2 -2
  320. data/vendor/local/share/man/man1/genbrk.1 +2 -2
  321. data/vendor/local/share/man/man1/gencfu.1 +1 -1
  322. data/vendor/local/share/man/man1/gencnval.1 +3 -3
  323. data/vendor/local/share/man/man1/gendict.1 +2 -2
  324. data/vendor/local/share/man/man1/genrb.1 +3 -3
  325. data/vendor/local/share/man/man1/icu-config.1 +2 -2
  326. data/vendor/local/share/man/man1/makeconv.1 +5 -5
  327. data/vendor/local/share/man/man1/pkgdata.1 +2 -2
  328. data/vendor/local/share/man/man1/uconv.1 +9 -9
  329. data/vendor/local/share/man/man3/fribidi_charset_to_unicode.3 +98 -0
  330. data/vendor/local/share/man/man3/fribidi_debug_status.3 +44 -0
  331. data/vendor/local/share/man/man3/fribidi_get_bidi_type.3 +58 -0
  332. data/vendor/local/share/man/man3/fribidi_get_bidi_type_name.3 +56 -0
  333. data/vendor/local/share/man/man3/fribidi_get_bidi_types.3 +68 -0
  334. data/vendor/local/share/man/man3/fribidi_get_bracket.3 +59 -0
  335. data/vendor/local/share/man/man3/fribidi_get_bracket_types.3 +73 -0
  336. data/vendor/local/share/man/man3/fribidi_get_joining_type.3 +87 -0
  337. data/vendor/local/share/man/man3/fribidi_get_joining_type_name.3 +83 -0
  338. data/vendor/local/share/man/man3/fribidi_get_joining_types.3 +96 -0
  339. data/vendor/local/share/man/man3/fribidi_get_mirror_char.3 +68 -0
  340. data/vendor/local/share/man/man3/fribidi_get_par_direction.3 +100 -0
  341. data/vendor/local/share/man/man3/fribidi_get_par_embedding_levels.3 +98 -0
  342. data/vendor/local/share/man/man3/fribidi_get_par_embedding_levels_ex.3 +114 -0
  343. data/vendor/local/share/man/man3/fribidi_get_type.3 +50 -0
  344. data/vendor/local/share/man/man3/fribidi_get_type_internal.3 +50 -0
  345. data/vendor/local/share/man/man3/fribidi_join_arabic.3 +92 -0
  346. data/vendor/local/share/man/man3/fribidi_log2vis.3 +124 -0
  347. data/vendor/local/share/man/man3/fribidi_log2vis_get_embedding_levels.3 +97 -0
  348. data/vendor/local/share/man/man3/fribidi_mirroring_status.3 +44 -0
  349. data/vendor/local/share/man/man3/fribidi_parse_charset.3 +78 -0
  350. data/vendor/local/share/man/man3/fribidi_remove_bidi_marks.3 +96 -0
  351. data/vendor/local/share/man/man3/fribidi_reorder_line.3 +146 -0
  352. data/vendor/local/share/man/man3/fribidi_reorder_nsm_status.3 +44 -0
  353. data/vendor/local/share/man/man3/fribidi_set_debug.3 +48 -0
  354. data/vendor/local/share/man/man3/fribidi_set_mirroring.3 +58 -0
  355. data/vendor/local/share/man/man3/fribidi_set_reorder_nsm.3 +60 -0
  356. data/vendor/local/share/man/man3/fribidi_shape.3 +89 -0
  357. data/vendor/local/share/man/man3/fribidi_shape_arabic.3 +95 -0
  358. data/vendor/local/share/man/man3/fribidi_shape_mirroring.3 +71 -0
  359. data/vendor/local/share/man/man3/fribidi_unicode_to_charset.3 +99 -0
  360. data/vendor/local/share/man/man8/genccode.8 +2 -2
  361. data/vendor/local/share/man/man8/gencmn.8 +3 -3
  362. data/vendor/local/share/man/man8/gensprep.8 +3 -3
  363. data/vendor/local/share/man/man8/icupkg.8 +1 -1
  364. metadata +58 -59
  365. data/ext/pango/rb-pango-context.c +0 -79
  366. data/vendor/local/lib/icuin58.dll +0 -0
  367. data/vendor/local/lib/icutu58.dll +0 -0
  368. data/vendor/local/lib/icuuc58.dll +0 -0
@@ -1,4 +1,4 @@
1
- // Copyright (C) 2016 and later: Unicode, Inc. and others.
1
+ // © 2016 and later: Unicode, Inc. and others.
2
2
  // License & terms of use: http://www.unicode.org/copyright.html
3
3
  /*
4
4
  ********************************************************************************
@@ -647,7 +647,8 @@ public:
647
647
  * Sets the amount of time in ms that the clock is advanced during DST.
648
648
  * @param millisSavedDuringDST the number of milliseconds the time is
649
649
  * advanced with respect to standard time when the daylight savings rules
650
- * are in effect. A positive number, typically one hour (3600000).
650
+ * are in effect. Typically one hour (+3600000). The amount could be negative,
651
+ * but not 0.
651
652
  * @param status An UErrorCode to receive the status.
652
653
  * @stable ICU 2.0
653
654
  */
@@ -657,7 +658,8 @@ public:
657
658
  * Returns the amount of time in ms that the clock is advanced during DST.
658
659
  * @return the number of milliseconds the time is
659
660
  * advanced with respect to standard time when the daylight savings rules
660
- * are in effect. A positive number, typically one hour (3600000).
661
+ * are in effect. Typically one hour (+3600000). The amount could be negative,
662
+ * but not 0.
661
663
  * @stable ICU 2.0
662
664
  */
663
665
  virtual int32_t getDSTSavings(void) const;
@@ -1,4 +1,4 @@
1
- // Copyright (C) 2016 and later: Unicode, Inc. and others.
1
+ // © 2016 and later: Unicode, Inc. and others.
2
2
  // License & terms of use: http://www.unicode.org/copyright.html
3
3
  /*
4
4
  * Copyright (C) 1997-2016, International Business Machines Corporation and
@@ -1170,7 +1170,7 @@ public:
1170
1170
  * @param field The UDateFormatField to get
1171
1171
  * @stable ICU 54
1172
1172
  */
1173
- const NumberFormat * getNumberFormatForField(UChar field) const;
1173
+ const NumberFormat * getNumberFormatForField(char16_t field) const;
1174
1174
 
1175
1175
  #ifndef U_HIDE_INTERNAL_API
1176
1176
  /**
@@ -1262,7 +1262,7 @@ private:
1262
1262
  * succeeds.
1263
1263
  */
1264
1264
  void subFormat(UnicodeString &appendTo,
1265
- UChar ch,
1265
+ char16_t ch,
1266
1266
  int32_t count,
1267
1267
  UDisplayContext capitalizationContext,
1268
1268
  int32_t fieldNum,
@@ -1294,7 +1294,7 @@ private:
1294
1294
  * Return true if the given format character, occuring count
1295
1295
  * times, represents a numeric field.
1296
1296
  */
1297
- static UBool isNumeric(UChar formatChar, int32_t count);
1297
+ static UBool isNumeric(char16_t formatChar, int32_t count);
1298
1298
 
1299
1299
  /**
1300
1300
  * Returns TRUE if the patternOffset is at the start of a numeric field.
@@ -1412,7 +1412,7 @@ private:
1412
1412
  * @return the new start position if matching succeeded; a negative number
1413
1413
  * indicating matching failure, otherwise.
1414
1414
  */
1415
- int32_t subParse(const UnicodeString& text, int32_t& start, UChar ch, int32_t count,
1415
+ int32_t subParse(const UnicodeString& text, int32_t& start, char16_t ch, int32_t count,
1416
1416
  UBool obeyCount, UBool allowNegative, UBool ambiguousYear[], int32_t& saveHebrewMonth, Calendar& cal,
1417
1417
  int32_t patLoc, MessageFormat * numericLeapMonthFormatter, UTimeZoneFormatTimeType *tzTimeType, SimpleDateFormatMutableNFs &mutableNFs,
1418
1418
  int32_t *dayPeriod=NULL) const;
@@ -1433,6 +1433,16 @@ private:
1433
1433
  int32_t checkIntSuffix(const UnicodeString& text, int32_t start,
1434
1434
  int32_t patLoc, UBool isNegative) const;
1435
1435
 
1436
+ /**
1437
+ * Counts number of digit code points in the specified text.
1438
+ *
1439
+ * @param text input text
1440
+ * @param start start index, inclusive
1441
+ * @param end end index, exclusive
1442
+ * @return number of digits found in the text in the specified range.
1443
+ */
1444
+ int32_t countDigits(const UnicodeString& text, int32_t start, int32_t end) const;
1445
+
1436
1446
  /**
1437
1447
  * Translate a pattern, mapping each character in the from string to the
1438
1448
  * corresponding character in the to string. Return an error if the original
@@ -1523,12 +1533,12 @@ private:
1523
1533
  /**
1524
1534
  * Map calendar field letter into calendar field level.
1525
1535
  */
1526
- static int32_t getLevelFromChar(UChar ch);
1536
+ static int32_t getLevelFromChar(char16_t ch);
1527
1537
 
1528
1538
  /**
1529
1539
  * Tell if a character can be used to define a field in a format string.
1530
1540
  */
1531
- static UBool isSyntaxChar(UChar ch);
1541
+ static UBool isSyntaxChar(char16_t ch);
1532
1542
 
1533
1543
  /**
1534
1544
  * The formatting pattern for this formatter.
@@ -1,4 +1,4 @@
1
- // Copyright (C) 2016 and later: Unicode, Inc. and others.
1
+ // © 2016 and later: Unicode, Inc. and others.
2
2
  // License & terms of use: http://www.unicode.org/copyright.html
3
3
  /*
4
4
  *****************************************************************************
@@ -1,4 +1,4 @@
1
- // Copyright (C) 2016 and later: Unicode, Inc. and others.
1
+ // © 2016 and later: Unicode, Inc. and others.
2
2
  // License & terms of use: http://www.unicode.org/copyright.html
3
3
  /*
4
4
  *******************************************************************************
@@ -8,7 +8,7 @@
8
8
  *
9
9
  *******************************************************************************
10
10
  * file name: std_string.h
11
- * encoding: US-ASCII
11
+ * encoding: UTF-8
12
12
  * tab size: 8 (not used)
13
13
  * indentation:4
14
14
  *
@@ -27,13 +27,11 @@
27
27
 
28
28
  #include "unicode/utypes.h"
29
29
 
30
- #if U_HAVE_STD_STRING
31
-
32
- #if !defined(_MSC_VER)
33
- namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
30
+ // Workaround for a libstdc++ bug before libstdc++4.6 (2011).
31
+ // https://bugs.llvm.org/show_bug.cgi?id=13364
32
+ #if defined(__GLIBCXX__)
33
+ namespace std { class type_info; }
34
34
  #endif
35
35
  #include <string>
36
36
 
37
- #endif // U_HAVE_STD_STRING
38
-
39
37
  #endif // __STD_STRING_H__
@@ -1,4 +1,4 @@
1
- // Copyright (C) 2016 and later: Unicode, Inc. and others.
1
+ // © 2016 and later: Unicode, Inc. and others.
2
2
  // License & terms of use: http://www.unicode.org/copyright.html
3
3
  /*
4
4
  *******************************************************************************
@@ -35,7 +35,7 @@ U_NAMESPACE_BEGIN
35
35
  * call, so the returned string still might not be 'valid' on
36
36
  * subsequent use.</p>
37
37
  *
38
- * <p>Strings may take the form of const char*, const UChar*, or const
38
+ * <p>Strings may take the form of const char*, const char16_t*, or const
39
39
  * UnicodeString*. The type you get is determine by the variant of
40
40
  * 'next' that you call. In general the StringEnumeration is
41
41
  * optimized for one of these types, but all StringEnumerations can
@@ -112,7 +112,7 @@ public:
112
112
  * <p>If the iterator is out of sync with its service, status is set
113
113
  * to U_ENUM_OUT_OF_SYNC_ERROR and NULL is returned.</p>
114
114
  *
115
- * <p>If the native service string is a UChar* string, it is
115
+ * <p>If the native service string is a char16_t* string, it is
116
116
  * converted to char* with the invariant converter. If the
117
117
  * conversion fails (because a character cannot be converted) then
118
118
  * status is set to U_INVARIANT_CONVERSION_ERROR and the return
@@ -131,7 +131,7 @@ public:
131
131
  virtual const char* next(int32_t *resultLength, UErrorCode& status);
132
132
 
133
133
  /**
134
- * <p>Returns the next element as a NUL-terminated UChar*. If there
134
+ * <p>Returns the next element as a NUL-terminated char16_t*. If there
135
135
  * are no more elements, returns NULL. If the resultLength pointer
136
136
  * is not NULL, the length of the string (not counting the
137
137
  * terminating NUL) is returned at that address. If an error
@@ -153,7 +153,7 @@ public:
153
153
  *
154
154
  * @stable ICU 2.4
155
155
  */
156
- virtual const UChar* unext(int32_t *resultLength, UErrorCode& status);
156
+ virtual const char16_t* unext(int32_t *resultLength, UErrorCode& status);
157
157
 
158
158
  /**
159
159
  * <p>Returns the next element a UnicodeString*. If there are no
@@ -0,0 +1,198 @@
1
+ // © 2017 and later: Unicode, Inc. and others.
2
+ // License & terms of use: http://www.unicode.org/copyright.html
3
+
4
+ // stringoptions.h
5
+ // created: 2017jun08 Markus W. Scherer
6
+
7
+ #ifndef __STRINGOPTIONS_H__
8
+ #define __STRINGOPTIONS_H__
9
+
10
+ #include "unicode/utypes.h"
11
+
12
+ /**
13
+ * \file
14
+ * \brief C API: Bit set option bit constants for various string and character processing functions.
15
+ */
16
+
17
+ /**
18
+ * Option value for case folding: Use default mappings defined in CaseFolding.txt.
19
+ *
20
+ * @stable ICU 2.0
21
+ */
22
+ #define U_FOLD_CASE_DEFAULT 0
23
+
24
+ /**
25
+ * Option value for case folding:
26
+ *
27
+ * Use the modified set of mappings provided in CaseFolding.txt to handle dotted I
28
+ * and dotless i appropriately for Turkic languages (tr, az).
29
+ *
30
+ * Before Unicode 3.2, CaseFolding.txt contains mappings marked with 'I' that
31
+ * are to be included for default mappings and
32
+ * excluded for the Turkic-specific mappings.
33
+ *
34
+ * Unicode 3.2 CaseFolding.txt instead contains mappings marked with 'T' that
35
+ * are to be excluded for default mappings and
36
+ * included for the Turkic-specific mappings.
37
+ *
38
+ * @stable ICU 2.0
39
+ */
40
+ #define U_FOLD_CASE_EXCLUDE_SPECIAL_I 1
41
+
42
+ #ifndef U_HIDE_DRAFT_API
43
+
44
+ /**
45
+ * Titlecase the string as a whole rather than each word.
46
+ * (Titlecase only the character at index 0, possibly adjusted.)
47
+ * Option bits value for titlecasing APIs that take an options bit set.
48
+ *
49
+ * It is an error to specify multiple titlecasing iterator options together,
50
+ * including both an options bit and an explicit BreakIterator.
51
+ *
52
+ * @see U_TITLECASE_ADJUST_TO_CASED
53
+ * @draft ICU 60
54
+ */
55
+ #define U_TITLECASE_WHOLE_STRING 0x20
56
+
57
+ /**
58
+ * Titlecase sentences rather than words.
59
+ * (Titlecase only the first character of each sentence, possibly adjusted.)
60
+ * Option bits value for titlecasing APIs that take an options bit set.
61
+ *
62
+ * It is an error to specify multiple titlecasing iterator options together,
63
+ * including both an options bit and an explicit BreakIterator.
64
+ *
65
+ * @see U_TITLECASE_ADJUST_TO_CASED
66
+ * @draft ICU 60
67
+ */
68
+ #define U_TITLECASE_SENTENCES 0x40
69
+
70
+ #endif // U_HIDE_DRAFT_API
71
+
72
+ /**
73
+ * Do not lowercase non-initial parts of words when titlecasing.
74
+ * Option bit for titlecasing APIs that take an options bit set.
75
+ *
76
+ * By default, titlecasing will titlecase the character at each
77
+ * (possibly adjusted) BreakIterator index and
78
+ * lowercase all other characters up to the next iterator index.
79
+ * With this option, the other characters will not be modified.
80
+ *
81
+ * @see U_TITLECASE_ADJUST_TO_CASED
82
+ * @see UnicodeString::toTitle
83
+ * @see CaseMap::toTitle
84
+ * @see ucasemap_setOptions
85
+ * @see ucasemap_toTitle
86
+ * @see ucasemap_utf8ToTitle
87
+ * @stable ICU 3.8
88
+ */
89
+ #define U_TITLECASE_NO_LOWERCASE 0x100
90
+
91
+ /**
92
+ * Do not adjust the titlecasing BreakIterator indexes;
93
+ * titlecase exactly the characters at breaks from the iterator.
94
+ * Option bit for titlecasing APIs that take an options bit set.
95
+ *
96
+ * By default, titlecasing will take each break iterator index,
97
+ * adjust it to the next relevant character (see U_TITLECASE_ADJUST_TO_CASED),
98
+ * and titlecase that one.
99
+ *
100
+ * Other characters are lowercased.
101
+ *
102
+ * It is an error to specify multiple titlecasing adjustment options together.
103
+ *
104
+ * @see U_TITLECASE_ADJUST_TO_CASED
105
+ * @see U_TITLECASE_NO_LOWERCASE
106
+ * @see UnicodeString::toTitle
107
+ * @see CaseMap::toTitle
108
+ * @see ucasemap_setOptions
109
+ * @see ucasemap_toTitle
110
+ * @see ucasemap_utf8ToTitle
111
+ * @stable ICU 3.8
112
+ */
113
+ #define U_TITLECASE_NO_BREAK_ADJUSTMENT 0x200
114
+
115
+ #ifndef U_HIDE_DRAFT_API
116
+
117
+ /**
118
+ * Adjust each titlecasing BreakIterator index to the next cased character.
119
+ * (See the Unicode Standard, chapter 3, Default Case Conversion, R3 toTitlecase(X).)
120
+ * Option bit for titlecasing APIs that take an options bit set.
121
+ *
122
+ * This used to be the default index adjustment in ICU.
123
+ * Since ICU 60, the default index adjustment is to the next character that is
124
+ * a letter, number, symbol, or private use code point.
125
+ * (Uncased modifier letters are skipped.)
126
+ * The difference in behavior is small for word titlecasing,
127
+ * but the new adjustment is much better for whole-string and sentence titlecasing:
128
+ * It yields "49ers" and "«丰(abc)»" instead of "49Ers" and "«丰(Abc)»".
129
+ *
130
+ * It is an error to specify multiple titlecasing adjustment options together.
131
+ *
132
+ * @see U_TITLECASE_NO_BREAK_ADJUSTMENT
133
+ * @draft ICU 60
134
+ */
135
+ #define U_TITLECASE_ADJUST_TO_CASED 0x400
136
+
137
+ /**
138
+ * Option for string transformation functions to not first reset the Edits object.
139
+ * Used for example in some case-mapping and normalization functions.
140
+ *
141
+ * @see CaseMap
142
+ * @see Edits
143
+ * @see Normalizer2
144
+ * @draft ICU 60
145
+ */
146
+ #define U_EDITS_NO_RESET 0x2000
147
+
148
+ /**
149
+ * Omit unchanged text when recording how source substrings
150
+ * relate to changed and unchanged result substrings.
151
+ * Used for example in some case-mapping and normalization functions.
152
+ *
153
+ * @see CaseMap
154
+ * @see Edits
155
+ * @see Normalizer2
156
+ * @draft ICU 60
157
+ */
158
+ #define U_OMIT_UNCHANGED_TEXT 0x4000
159
+
160
+ #endif // U_HIDE_DRAFT_API
161
+
162
+ /**
163
+ * Option bit for u_strCaseCompare, u_strcasecmp, unorm_compare, etc:
164
+ * Compare strings in code point order instead of code unit order.
165
+ * @stable ICU 2.2
166
+ */
167
+ #define U_COMPARE_CODE_POINT_ORDER 0x8000
168
+
169
+ /**
170
+ * Option bit for unorm_compare:
171
+ * Perform case-insensitive comparison.
172
+ * @stable ICU 2.2
173
+ */
174
+ #define U_COMPARE_IGNORE_CASE 0x10000
175
+
176
+ /**
177
+ * Option bit for unorm_compare:
178
+ * Both input strings are assumed to fulfill FCD conditions.
179
+ * @stable ICU 2.2
180
+ */
181
+ #define UNORM_INPUT_IS_FCD 0x20000
182
+
183
+ // Related definitions elsewhere.
184
+ // Options that are not meaningful in the same functions
185
+ // can share the same bits.
186
+ //
187
+ // Public:
188
+ // unicode/unorm.h #define UNORM_COMPARE_NORM_OPTIONS_SHIFT 20
189
+ //
190
+ // Internal: (may change or be removed)
191
+ // ucase.h #define _STRCASECMP_OPTIONS_MASK 0xffff
192
+ // ucase.h #define _FOLD_CASE_OPTIONS_MASK 7
193
+ // ucasemap_imp.h #define U_TITLECASE_ITERATOR_MASK 0xe0
194
+ // ucasemap_imp.h #define U_TITLECASE_ADJUSTMENT_MASK 0x600
195
+ // ustr_imp.h #define _STRNCMP_STYLE 0x1000
196
+ // unormcmp.cpp #define _COMPARE_EQUIV 0x80000
197
+
198
+ #endif // __STRINGOPTIONS_H__
@@ -1,4 +1,4 @@
1
- // Copyright (C) 2016 and later: Unicode, Inc. and others.
1
+ // © 2016 and later: Unicode, Inc. and others.
2
2
  // License & terms of use: http://www.unicode.org/copyright.html
3
3
  // Copyright (C) 2009-2013, International Business Machines
4
4
  // Corporation and others. All Rights Reserved.
@@ -68,14 +68,12 @@ class U_COMMON_API StringPiece : public UMemory {
68
68
  * @stable ICU 4.2
69
69
  */
70
70
  StringPiece(const char* str);
71
- #if U_HAVE_STD_STRING
72
71
  /**
73
72
  * Constructs from a std::string.
74
73
  * @stable ICU 4.2
75
74
  */
76
75
  StringPiece(const std::string& str)
77
76
  : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { }
78
- #endif
79
77
  /**
80
78
  * Constructs from a const char * pointer and a specified length.
81
79
  * @param offset a const char * pointer (need not be terminated)
@@ -1,4 +1,4 @@
1
- // Copyright (C) 2016 and later: Unicode, Inc. and others.
1
+ // © 2016 and later: Unicode, Inc. and others.
2
2
  // License & terms of use: http://www.unicode.org/copyright.html
3
3
  /*
4
4
  *******************************************************************************
@@ -6,7 +6,7 @@
6
6
  * Corporation and others. All Rights Reserved.
7
7
  *******************************************************************************
8
8
  * file name: stringtriebuilder.h
9
- * encoding: US-ASCII
9
+ * encoding: UTF-8
10
10
  * tab size: 8 (not used)
11
11
  * indentation:4
12
12
  *
@@ -105,7 +105,7 @@ protected:
105
105
  /** @internal */
106
106
  virtual int32_t getElementStringLength(int32_t i) const = 0;
107
107
  /** @internal */
108
- virtual UChar getElementUnit(int32_t i, int32_t unitIndex) const = 0;
108
+ virtual char16_t getElementUnit(int32_t i, int32_t unitIndex) const = 0;
109
109
  /** @internal */
110
110
  virtual int32_t getElementValue(int32_t i) const = 0;
111
111
 
@@ -120,7 +120,7 @@ protected:
120
120
  /** @internal */
121
121
  virtual int32_t skipElementsBySomeUnits(int32_t i, int32_t unitIndex, int32_t count) const = 0;
122
122
  /** @internal */
123
- virtual int32_t indexOfElementWithNextUnit(int32_t i, int32_t unitIndex, UChar unit) const = 0;
123
+ virtual int32_t indexOfElementWithNextUnit(int32_t i, int32_t unitIndex, char16_t unit) const = 0;
124
124
 
125
125
  /** @internal */
126
126
  virtual UBool matchNodesCanHaveValues() const = 0;
@@ -137,7 +137,7 @@ protected:
137
137
  /** @internal */
138
138
  static const int32_t kMaxBranchLinearSubNodeLength=5;
139
139
 
140
- // Maximum number of nested split-branch levels for a branch on all 2^16 possible UChar units.
140
+ // Maximum number of nested split-branch levels for a branch on all 2^16 possible char16_t units.
141
141
  // log2(2^16/kMaxBranchLinearSubNodeLength) rounded up.
142
142
  /** @internal */
143
143
  static const int32_t kMaxSplitBranchLevels=14;
@@ -256,7 +256,7 @@ protected:
256
256
  /** @internal */
257
257
  class FinalValueNode : public Node {
258
258
  public:
259
- FinalValueNode(int32_t v) : Node(0x111111*37+v), value(v) {}
259
+ FinalValueNode(int32_t v) : Node(0x111111u*37u+v), value(v) {}
260
260
  virtual UBool operator==(const Node &other) const;
261
261
  virtual void write(StringTrieBuilder &builder);
262
262
  protected:
@@ -276,7 +276,7 @@ protected:
276
276
  void setValue(int32_t v) {
277
277
  hasValue=TRUE;
278
278
  value=v;
279
- hash=hash*37+v;
279
+ hash=hash*37u+v;
280
280
  }
281
281
  protected:
282
282
  UBool hasValue;
@@ -290,7 +290,7 @@ protected:
290
290
  class IntermediateValueNode : public ValueNode {
291
291
  public:
292
292
  IntermediateValueNode(int32_t v, Node *nextNode)
293
- : ValueNode(0x222222*37+hashCode(nextNode)), next(nextNode) { setValue(v); }
293
+ : ValueNode(0x222222u*37u+hashCode(nextNode)), next(nextNode) { setValue(v); }
294
294
  virtual UBool operator==(const Node &other) const;
295
295
  virtual int32_t markRightEdgesFirst(int32_t edgeNumber);
296
296
  virtual void write(StringTrieBuilder &builder);
@@ -307,7 +307,7 @@ protected:
307
307
  class LinearMatchNode : public ValueNode {
308
308
  public:
309
309
  LinearMatchNode(int32_t len, Node *nextNode)
310
- : ValueNode((0x333333*37+len)*37+hashCode(nextNode)),
310
+ : ValueNode((0x333333u*37u+len)*37u+hashCode(nextNode)),
311
311
  length(len), next(nextNode) {}
312
312
  virtual UBool operator==(const Node &other) const;
313
313
  virtual int32_t markRightEdgesFirst(int32_t edgeNumber);
@@ -338,25 +338,25 @@ protected:
338
338
  virtual void write(StringTrieBuilder &builder);
339
339
  // Adds a unit with a final value.
340
340
  void add(int32_t c, int32_t value) {
341
- units[length]=(UChar)c;
341
+ units[length]=(char16_t)c;
342
342
  equal[length]=NULL;
343
343
  values[length]=value;
344
344
  ++length;
345
- hash=(hash*37+c)*37+value;
345
+ hash=(hash*37u+c)*37u+value;
346
346
  }
347
347
  // Adds a unit which leads to another match node.
348
348
  void add(int32_t c, Node *node) {
349
- units[length]=(UChar)c;
349
+ units[length]=(char16_t)c;
350
350
  equal[length]=node;
351
351
  values[length]=0;
352
352
  ++length;
353
- hash=(hash*37+c)*37+hashCode(node);
353
+ hash=(hash*37u+c)*37u+hashCode(node);
354
354
  }
355
355
  protected:
356
356
  Node *equal[kMaxBranchLinearSubNodeLength]; // NULL means "has final value".
357
357
  int32_t length;
358
358
  int32_t values[kMaxBranchLinearSubNodeLength];
359
- UChar units[kMaxBranchLinearSubNodeLength];
359
+ char16_t units[kMaxBranchLinearSubNodeLength];
360
360
  };
361
361
 
362
362
  /**
@@ -364,15 +364,15 @@ protected:
364
364
  */
365
365
  class SplitBranchNode : public BranchNode {
366
366
  public:
367
- SplitBranchNode(UChar middleUnit, Node *lessThanNode, Node *greaterOrEqualNode)
368
- : BranchNode(((0x555555*37+middleUnit)*37+
369
- hashCode(lessThanNode))*37+hashCode(greaterOrEqualNode)),
367
+ SplitBranchNode(char16_t middleUnit, Node *lessThanNode, Node *greaterOrEqualNode)
368
+ : BranchNode(((0x555555u*37u+middleUnit)*37u+
369
+ hashCode(lessThanNode))*37u+hashCode(greaterOrEqualNode)),
370
370
  unit(middleUnit), lessThan(lessThanNode), greaterOrEqual(greaterOrEqualNode) {}
371
371
  virtual UBool operator==(const Node &other) const;
372
372
  virtual int32_t markRightEdgesFirst(int32_t edgeNumber);
373
373
  virtual void write(StringTrieBuilder &builder);
374
374
  protected:
375
- UChar unit;
375
+ char16_t unit;
376
376
  Node *lessThan;
377
377
  Node *greaterOrEqual;
378
378
  };
@@ -382,7 +382,7 @@ protected:
382
382
  class BranchHeadNode : public ValueNode {
383
383
  public:
384
384
  BranchHeadNode(int32_t len, Node *subNode)
385
- : ValueNode((0x666666*37+len)*37+hashCode(subNode)),
385
+ : ValueNode((0x666666u*37u+len)*37u+hashCode(subNode)),
386
386
  length(len), next(subNode) {}
387
387
  virtual UBool operator==(const Node &other) const;
388
388
  virtual int32_t markRightEdgesFirst(int32_t edgeNumber);