gtksourceview3 2.0.2-x86-mingw32 → 2.0.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (399) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +15 -2
  3. data/ext/gtksourceview3/extconf.rb +7 -2
  4. data/lib/1.9/gtksourceview3.so +0 -0
  5. data/lib/2.0/gtksourceview3.so +0 -0
  6. data/vendor/local/bin/libgtksourceview-3.0-1.dll +0 -0
  7. data/vendor/local/include/gtksourceview-3.0/gtksourceview/completion-providers/words/gtksourcecompletionwords.h +4 -4
  8. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksource.h +4 -0
  9. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcebuffer.h +80 -90
  10. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletioninfo.h +4 -0
  11. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletionitem.h +2 -2
  12. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutterrenderer.h +9 -0
  13. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutterrendererpixbuf.h +2 -0
  14. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcemarkattributes.h +3 -0
  15. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcesearchcontext.h +133 -0
  16. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcesearchsettings.h +85 -0
  17. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyle.h +8 -4
  18. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestylescheme.h +52 -35
  19. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyleschememanager.h +2 -6
  20. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcetypes.h +2 -0
  21. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceutils.h +34 -0
  22. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview-typebuiltins.h +6 -6
  23. data/vendor/local/lib/girepository-1.0/GtkSource-3.0.typelib +0 -0
  24. data/vendor/local/lib/libgtksourceview-3.0.dll.a +0 -0
  25. data/vendor/local/lib/libgtksourceview-3.0.la +5 -5
  26. data/vendor/local/lib/locale/as/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  27. data/vendor/local/lib/locale/be/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  28. data/vendor/local/lib/locale/ca/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  29. data/vendor/local/lib/locale/ca@valencia/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  30. data/vendor/local/lib/locale/cs/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  31. data/vendor/local/lib/locale/da/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  32. data/vendor/local/lib/locale/de/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  33. data/vendor/local/lib/locale/es/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  34. data/vendor/local/lib/locale/fi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  35. data/vendor/local/lib/locale/fr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  36. data/vendor/local/lib/locale/ga/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  37. data/vendor/local/lib/locale/gl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  38. data/vendor/local/lib/locale/he/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  39. data/vendor/local/lib/locale/hu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  40. data/vendor/local/lib/locale/id/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  41. data/vendor/local/lib/locale/it/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  42. data/vendor/local/lib/locale/ja/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  43. data/vendor/local/lib/locale/ko/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  44. data/vendor/local/lib/locale/lt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  45. data/vendor/local/lib/locale/lv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  46. data/vendor/local/lib/locale/nb/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  47. data/vendor/local/lib/locale/pa/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  48. data/vendor/local/lib/locale/pl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  49. data/vendor/local/lib/locale/pt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  50. data/vendor/local/lib/locale/pt_BR/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  51. data/vendor/local/lib/locale/ru/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  52. data/vendor/local/lib/locale/sl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  53. data/vendor/local/lib/locale/sr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  54. data/vendor/local/lib/locale/sr@latin/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  55. data/vendor/local/lib/locale/zh_HK/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  56. data/vendor/local/lib/locale/zh_TW/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  57. data/vendor/local/lib/pkgconfig/gtksourceview-3.0.pc +2 -2
  58. data/vendor/local/share/gir-1.0/GtkSource-3.0.gir +9479 -0
  59. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceBuffer.html +311 -252
  60. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletion.html +13 -16
  61. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionContext.html +26 -15
  62. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionInfo.html +24 -22
  63. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionItem.html +16 -15
  64. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProposal.html +12 -15
  65. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProvider.html +22 -20
  66. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionWords.html +24 -16
  67. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutter.html +14 -17
  68. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRenderer.html +25 -21
  69. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererPixbuf.html +118 -18
  70. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererText.html +14 -17
  71. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguage.html +13 -16
  72. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguageManager.html +14 -17
  73. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMark.html +19 -23
  74. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMarkAttributes.html +27 -18
  75. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourcePrintCompositor.html +22 -25
  76. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchContext.html +895 -0
  77. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchSettings.html +465 -0
  78. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyle.html +13 -16
  79. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleScheme.html +16 -19
  80. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeManager.html +15 -15
  81. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceUndoManager.html +13 -16
  82. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceView.html +15 -18
  83. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/annotation-glossary.html +43 -40
  84. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-0.html +11 -14
  85. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-10.html +195 -0
  86. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-4.html +35 -0
  87. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-deprecated.html +42 -13
  88. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-full.html +182 -13
  89. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch01.html +26 -17
  90. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch02.html +10 -10
  91. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0-GtkSourceUtils.html +140 -0
  92. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0.devhelp2 +155 -105
  93. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/home.png +0 -0
  94. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.html +23 -12
  95. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.sgml +213 -150
  96. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-reference.html +18 -10
  97. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-tutorial.html +202 -196
  98. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/left-insensitive.png +0 -0
  99. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/left.png +0 -0
  100. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/object-tree.html +11 -9
  101. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/right-insensitive.png +0 -0
  102. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/right.png +0 -0
  103. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style-reference.html +11 -11
  104. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style.css +71 -16
  105. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/up-insensitive.png +0 -0
  106. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/up.png +0 -0
  107. data/vendor/local/share/gtksourceview-3.0/language-specs/changelog.lang +1 -0
  108. data/vendor/local/share/gtksourceview-3.0/language-specs/cpp.lang +6 -0
  109. data/vendor/local/share/gtksourceview-3.0/language-specs/javascript.lang +1 -0
  110. data/vendor/local/share/gtksourceview-3.0/language-specs/julia.lang +378 -0
  111. data/vendor/local/share/gtksourceview-3.0/language-specs/mediawiki.lang +323 -0
  112. data/vendor/local/share/gtksourceview-3.0/language-specs/perl.lang +1 -1
  113. data/vendor/local/share/gtksourceview-3.0/language-specs/scala.lang +384 -0
  114. data/vendor/local/share/gtksourceview-3.0/language-specs/xml.lang +2 -2
  115. data/vendor/local/share/gtksourceview-3.0/styles/classic.xml +1 -1
  116. data/vendor/local/share/gtksourceview-3.0/styles/cobalt.xml +2 -1
  117. data/vendor/local/share/gtksourceview-3.0/styles/kate.xml +1 -1
  118. data/vendor/local/share/gtksourceview-3.0/styles/oblivion.xml +2 -2
  119. data/vendor/local/share/gtksourceview-3.0/styles/tango.xml +2 -2
  120. metadata +26 -293
  121. data/README +0 -29
  122. data/vendor/local/bin/libgtksourceview-3.0-0.dll +0 -0
  123. data/vendor/local/bin/libxml2-2.dll +0 -0
  124. data/vendor/local/bin/xmlcatalog.exe +0 -0
  125. data/vendor/local/bin/xmllint.exe +0 -0
  126. data/vendor/local/include/libxml2/libxml/DOCBparser.h +0 -96
  127. data/vendor/local/include/libxml2/libxml/HTMLparser.h +0 -306
  128. data/vendor/local/include/libxml2/libxml/HTMLtree.h +0 -147
  129. data/vendor/local/include/libxml2/libxml/SAX.h +0 -173
  130. data/vendor/local/include/libxml2/libxml/SAX2.h +0 -176
  131. data/vendor/local/include/libxml2/libxml/c14n.h +0 -126
  132. data/vendor/local/include/libxml2/libxml/catalog.h +0 -182
  133. data/vendor/local/include/libxml2/libxml/chvalid.h +0 -230
  134. data/vendor/local/include/libxml2/libxml/debugXML.h +0 -217
  135. data/vendor/local/include/libxml2/libxml/dict.h +0 -80
  136. data/vendor/local/include/libxml2/libxml/encoding.h +0 -240
  137. data/vendor/local/include/libxml2/libxml/entities.h +0 -150
  138. data/vendor/local/include/libxml2/libxml/globals.h +0 -502
  139. data/vendor/local/include/libxml2/libxml/hash.h +0 -233
  140. data/vendor/local/include/libxml2/libxml/list.h +0 -137
  141. data/vendor/local/include/libxml2/libxml/nanoftp.h +0 -163
  142. data/vendor/local/include/libxml2/libxml/nanohttp.h +0 -81
  143. data/vendor/local/include/libxml2/libxml/parser.h +0 -1240
  144. data/vendor/local/include/libxml2/libxml/parserInternals.h +0 -644
  145. data/vendor/local/include/libxml2/libxml/pattern.h +0 -100
  146. data/vendor/local/include/libxml2/libxml/relaxng.h +0 -213
  147. data/vendor/local/include/libxml2/libxml/schemasInternals.h +0 -958
  148. data/vendor/local/include/libxml2/libxml/schematron.h +0 -142
  149. data/vendor/local/include/libxml2/libxml/threads.h +0 -84
  150. data/vendor/local/include/libxml2/libxml/tree.h +0 -1303
  151. data/vendor/local/include/libxml2/libxml/uri.h +0 -94
  152. data/vendor/local/include/libxml2/libxml/valid.h +0 -458
  153. data/vendor/local/include/libxml2/libxml/xinclude.h +0 -129
  154. data/vendor/local/include/libxml2/libxml/xlink.h +0 -189
  155. data/vendor/local/include/libxml2/libxml/xmlIO.h +0 -366
  156. data/vendor/local/include/libxml2/libxml/xmlautomata.h +0 -146
  157. data/vendor/local/include/libxml2/libxml/xmlerror.h +0 -944
  158. data/vendor/local/include/libxml2/libxml/xmlexports.h +0 -162
  159. data/vendor/local/include/libxml2/libxml/xmlmemory.h +0 -224
  160. data/vendor/local/include/libxml2/libxml/xmlmodule.h +0 -57
  161. data/vendor/local/include/libxml2/libxml/xmlreader.h +0 -428
  162. data/vendor/local/include/libxml2/libxml/xmlregexp.h +0 -222
  163. data/vendor/local/include/libxml2/libxml/xmlsave.h +0 -88
  164. data/vendor/local/include/libxml2/libxml/xmlschemas.h +0 -246
  165. data/vendor/local/include/libxml2/libxml/xmlschemastypes.h +0 -151
  166. data/vendor/local/include/libxml2/libxml/xmlstring.h +0 -140
  167. data/vendor/local/include/libxml2/libxml/xmlunicode.h +0 -202
  168. data/vendor/local/include/libxml2/libxml/xmlversion.h +0 -480
  169. data/vendor/local/include/libxml2/libxml/xmlwriter.h +0 -488
  170. data/vendor/local/include/libxml2/libxml/xpath.h +0 -550
  171. data/vendor/local/include/libxml2/libxml/xpathInternals.h +0 -632
  172. data/vendor/local/include/libxml2/libxml/xpointer.h +0 -114
  173. data/vendor/local/lib/libxml2.def +0 -1659
  174. data/vendor/local/lib/libxml2.dll.a +0 -0
  175. data/vendor/local/lib/libxml2.lib +0 -0
  176. data/vendor/local/lib/pkgconfig/libxml-2.0.pc +0 -13
  177. data/vendor/local/manifest/libxml2-dev_2.9.0-1_win32.mft +0 -268
  178. data/vendor/local/manifest/libxml2_2.9.0-1_win32.mft +0 -2
  179. data/vendor/local/share/aclocal/libxml.m4 +0 -188
  180. data/vendor/local/share/doc/libxml2-2.9.0/Copyright +0 -27
  181. data/vendor/local/share/doc/libxml2-2.9.0/examples/testHTML.c +0 -880
  182. data/vendor/local/share/doc/libxml2-2.9.0/examples/testSAX.c +0 -1198
  183. data/vendor/local/share/doc/libxml2-2.9.0/examples/testXPath.c +0 -229
  184. data/vendor/local/share/doc/libxml2-2.9.0/examples/xmllint.c +0 -3770
  185. data/vendor/local/share/doc/libxml2-2.9.0/html/DOM.gif +0 -0
  186. data/vendor/local/share/doc/libxml2-2.9.0/html/FAQ.html +0 -282
  187. data/vendor/local/share/doc/libxml2-2.9.0/html/Libxml2-Logo-180x168.gif +0 -0
  188. data/vendor/local/share/doc/libxml2-2.9.0/html/Libxml2-Logo-90x34.gif +0 -0
  189. data/vendor/local/share/doc/libxml2-2.9.0/html/encoding.html +0 -207
  190. data/vendor/local/share/doc/libxml2-2.9.0/html/examples.xml +0 -751
  191. data/vendor/local/share/doc/libxml2-2.9.0/html/examples.xsl +0 -174
  192. data/vendor/local/share/doc/libxml2-2.9.0/html/html/book1.html +0 -13
  193. data/vendor/local/share/doc/libxml2-2.9.0/html/html/home.png +0 -0
  194. data/vendor/local/share/doc/libxml2-2.9.0/html/html/index.html +0 -13
  195. data/vendor/local/share/doc/libxml2-2.9.0/html/html/left.png +0 -0
  196. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-DOCBparser.html +0 -51
  197. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-HTMLparser.html +0 -184
  198. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-HTMLtree.html +0 -73
  199. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-SAX.html +0 -125
  200. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-SAX2.html +0 -128
  201. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-c14n.html +0 -38
  202. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-catalog.html +0 -142
  203. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-chvalid.html +0 -72
  204. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-debugXML.html +0 -120
  205. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-dict.html +0 -58
  206. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-encoding.html +0 -124
  207. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-entities.html +0 -79
  208. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-globals.html +0 -152
  209. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-hash.html +0 -116
  210. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-lib.html +0 -13
  211. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-list.html +0 -120
  212. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-nanoftp.html +0 -94
  213. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-nanohttp.html +0 -65
  214. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-parser.html +0 -559
  215. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-parserInternals.html +0 -322
  216. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-pattern.html +0 -76
  217. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-relaxng.html +0 -162
  218. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-schemasInternals.html +0 -373
  219. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-schematron.html +0 -81
  220. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-threads.html +0 -72
  221. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-tree.html +0 -989
  222. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-uri.html +0 -73
  223. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-valid.html +0 -289
  224. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xinclude.html +0 -59
  225. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xlink.html +0 -82
  226. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlIO.html +0 -212
  227. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlautomata.html +0 -85
  228. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlerror.html +0 -864
  229. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlexports.html +0 -20
  230. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlmemory.html +0 -107
  231. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlmodule.html +0 -38
  232. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlreader.html +0 -330
  233. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlregexp.html +0 -143
  234. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlsave.html +0 -60
  235. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlschemas.html +0 -185
  236. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlschemastypes.html +0 -123
  237. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlstring.html +0 -108
  238. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlunicode.html +0 -512
  239. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlversion.html +0 -62
  240. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlwriter.html +0 -261
  241. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xpath.html +0 -310
  242. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xpathInternals.html +0 -394
  243. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xpointer.html +0 -83
  244. data/vendor/local/share/doc/libxml2-2.9.0/html/html/right.png +0 -0
  245. data/vendor/local/share/doc/libxml2-2.9.0/html/html/up.png +0 -0
  246. data/vendor/local/share/doc/libxml2-2.9.0/html/index.html +0 -14
  247. data/vendor/local/share/doc/libxml2-2.9.0/html/io1.c +0 -166
  248. data/vendor/local/share/doc/libxml2-2.9.0/html/io1.res +0 -5
  249. data/vendor/local/share/doc/libxml2-2.9.0/html/io2.c +0 -58
  250. data/vendor/local/share/doc/libxml2-2.9.0/html/io2.res +0 -2
  251. data/vendor/local/share/doc/libxml2-2.9.0/html/libxml.gif +0 -0
  252. data/vendor/local/share/doc/libxml2-2.9.0/html/parse1.c +0 -56
  253. data/vendor/local/share/doc/libxml2-2.9.0/html/parse2.c +0 -72
  254. data/vendor/local/share/doc/libxml2-2.9.0/html/parse3.c +0 -60
  255. data/vendor/local/share/doc/libxml2-2.9.0/html/parse4.c +0 -143
  256. data/vendor/local/share/doc/libxml2-2.9.0/html/reader1.c +0 -107
  257. data/vendor/local/share/doc/libxml2-2.9.0/html/reader1.res +0 -14
  258. data/vendor/local/share/doc/libxml2-2.9.0/html/reader2.c +0 -122
  259. data/vendor/local/share/doc/libxml2-2.9.0/html/reader3.c +0 -120
  260. data/vendor/local/share/doc/libxml2-2.9.0/html/reader3.res +0 -13
  261. data/vendor/local/share/doc/libxml2-2.9.0/html/reader4.c +0 -122
  262. data/vendor/local/share/doc/libxml2-2.9.0/html/reader4.res +0 -3
  263. data/vendor/local/share/doc/libxml2-2.9.0/html/redhat.gif +0 -0
  264. data/vendor/local/share/doc/libxml2-2.9.0/html/smallfootonly.gif +0 -0
  265. data/vendor/local/share/doc/libxml2-2.9.0/html/structure.gif +0 -0
  266. data/vendor/local/share/doc/libxml2-2.9.0/html/test1.xml +0 -1
  267. data/vendor/local/share/doc/libxml2-2.9.0/html/test2.xml +0 -13
  268. data/vendor/local/share/doc/libxml2-2.9.0/html/test3.xml +0 -39
  269. data/vendor/local/share/doc/libxml2-2.9.0/html/testWriter.c +0 -1198
  270. data/vendor/local/share/doc/libxml2-2.9.0/html/tree1.c +0 -94
  271. data/vendor/local/share/doc/libxml2-2.9.0/html/tree1.res +0 -4
  272. data/vendor/local/share/doc/libxml2-2.9.0/html/tree2.c +0 -118
  273. data/vendor/local/share/doc/libxml2-2.9.0/html/tree2.res +0 -18
  274. data/vendor/local/share/doc/libxml2-2.9.0/html/tst.xml +0 -7
  275. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/apa.html +0 -8
  276. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/apb.html +0 -14
  277. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/apc.html +0 -82
  278. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/apd.html +0 -76
  279. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ape.html +0 -78
  280. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/apf.html +0 -67
  281. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/apg.html +0 -75
  282. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/aph.html +0 -76
  283. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/api.html +0 -4
  284. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s02.html +0 -14
  285. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s03.html +0 -47
  286. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s04.html +0 -54
  287. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s05.html +0 -55
  288. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s06.html +0 -35
  289. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s07.html +0 -30
  290. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s08.html +0 -38
  291. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s09.html +0 -63
  292. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/blank.png +0 -0
  293. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/1.png +0 -0
  294. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/10.png +0 -0
  295. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/2.png +0 -0
  296. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/3.png +0 -0
  297. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/4.png +0 -0
  298. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/5.png +0 -0
  299. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/6.png +0 -0
  300. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/7.png +0 -0
  301. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/8.png +0 -0
  302. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/9.png +0 -0
  303. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/caution.png +0 -0
  304. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/draft.png +0 -0
  305. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/home.png +0 -0
  306. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/important.png +0 -0
  307. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/next.png +0 -0
  308. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/note.png +0 -0
  309. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/prev.png +0 -0
  310. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/tip.png +0 -0
  311. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/toc-blank.png +0 -0
  312. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/toc-minus.png +0 -0
  313. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/toc-plus.png +0 -0
  314. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/up.png +0 -0
  315. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/warning.png +0 -0
  316. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/includeaddattribute.c +0 -64
  317. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/includeaddkeyword.c +0 -75
  318. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/includeconvert.c +0 -73
  319. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/includegetattribute.c +0 -72
  320. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/includekeyword.c +0 -79
  321. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/includexpath.c +0 -74
  322. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/index.html +0 -14
  323. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ix01.html +0 -1
  324. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/xmltutorial.pdf +0 -1336
  325. data/vendor/local/share/doc/libxml2-2.9.0/html/w3c.png +0 -0
  326. data/vendor/local/share/doc/libxml2-2.9.0/html/writer.xml +0 -2
  327. data/vendor/local/share/doc/libxml2-2.9.0/html/xml.html +0 -5715
  328. data/vendor/local/share/doc/libxml2-2.9.0/html/xpath1.c +0 -250
  329. data/vendor/local/share/doc/libxml2-2.9.0/html/xpath1.res +0 -5
  330. data/vendor/local/share/doc/libxml2-2.9.0/html/xpath2.c +0 -190
  331. data/vendor/local/share/doc/libxml2-2.9.0/html/xpath2.res +0 -30
  332. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0-GtkSourceGutterRenderer.html +0 -956
  333. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0-GtkSourceGutterRendererPixbuf.html +0 -199
  334. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0-GtkSourceGutterRendererText.html +0 -137
  335. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/rn01.html +0 -101
  336. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/rn02.html +0 -53
  337. data/vendor/local/share/gtk-doc/html/libxml2/general.html +0 -38
  338. data/vendor/local/share/gtk-doc/html/libxml2/home.png +0 -0
  339. data/vendor/local/share/gtk-doc/html/libxml2/index.html +0 -67
  340. data/vendor/local/share/gtk-doc/html/libxml2/left.png +0 -0
  341. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-DOCBparser.html +0 -138
  342. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLparser.html +0 -373
  343. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLtree.html +0 -172
  344. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-SAX.html +0 -243
  345. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-SAX2.html +0 -247
  346. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-c14n.html +0 -91
  347. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-catalog.html +0 -278
  348. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-chvalid.html +0 -241
  349. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-debugXML.html +0 -225
  350. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-dict.html +0 -134
  351. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-encoding.html +0 -218
  352. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-entities.html +0 -166
  353. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-globals.html +0 -383
  354. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-hash.html +0 -214
  355. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-list.html +0 -226
  356. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanoftp.html +0 -187
  357. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanohttp.html +0 -142
  358. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parser.html +0 -766
  359. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parserInternals.html +0 -688
  360. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-pattern.html +0 -166
  361. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-relaxng.html +0 -278
  362. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-schemasInternals.html +0 -860
  363. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-schematron.html +0 -166
  364. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-threads.html +0 -161
  365. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-tree.html +0 -1596
  366. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-uri.html +0 -154
  367. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-valid.html +0 -528
  368. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xinclude.html +0 -169
  369. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xlink.html +0 -160
  370. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlIO.html +0 -347
  371. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlautomata.html +0 -176
  372. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html +0 -952
  373. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlexports.html +0 -87
  374. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmemory.html +0 -186
  375. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmodule.html +0 -97
  376. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlreader.html +0 -565
  377. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlregexp.html +0 -280
  378. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlsave.html +0 -133
  379. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemas.html +0 -314
  380. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemastypes.html +0 -237
  381. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlstring.html +0 -217
  382. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlunicode.html +0 -887
  383. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlversion.html +0 -287
  384. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlwriter.html +0 -479
  385. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpath.html +0 -532
  386. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpathInternals.html +0 -787
  387. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpointer.html +0 -171
  388. data/vendor/local/share/gtk-doc/html/libxml2/libxml2.devhelp +0 -3569
  389. data/vendor/local/share/gtk-doc/html/libxml2/right.png +0 -0
  390. data/vendor/local/share/gtk-doc/html/libxml2/style.css +0 -66
  391. data/vendor/local/share/gtk-doc/html/libxml2/up.png +0 -0
  392. data/vendor/local/share/gtksourceview-3.0/language-specs/check-language.sh +0 -32
  393. data/vendor/local/share/gtksourceview-3.0/styles/check-style.sh +0 -20
  394. data/vendor/local/share/man/man1/xml2-config.1 +0 -30
  395. data/vendor/local/share/man/man1/xmlcatalog.1 +0 -340
  396. data/vendor/local/share/man/man1/xmllint.1 +0 -427
  397. data/vendor/local/share/man/man3/libxml.3 +0 -71
  398. data/vendor/local/src/dieterv/packaging/libxml2_2.9.0-1_win32.log +0 -867
  399. data/vendor/local/src/dieterv/packaging/libxml2_2.9.0-1_win32.sh +0 -68
@@ -1,225 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
5
- <title>debugXML: Tree debugging APIs</title>
6
- <meta name="generator" content="Libxml2 devhelp stylesheet"/>
7
- <link rel="start" href="index.html" title="libxml2 Reference Manual"/>
8
- <link rel="up" href="general.html" title="API"/>
9
- <link rel="stylesheet" href="style.css" type="text/css"/>
10
- <link rel="chapter" href="general.html" title="API"/>
11
- </head>
12
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13
- <table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
14
- <tr valign="middle">
15
- <td>
16
- <a accesskey="p" href="libxml2-chvalid.html">
17
- <img src="left.png" width="24" height="24" border="0" alt="Prev"/>
18
- </a>
19
- </td>
20
- <td>
21
- <a accesskey="u" href="general.html">
22
- <img src="up.png" width="24" height="24" border="0" alt="Up"/>
23
- </a>
24
- </td>
25
- <td>
26
- <a accesskey="h" href="index.html">
27
- <img src="home.png" width="24" height="24" border="0" alt="Home"/>
28
- </a>
29
- </td>
30
- <td>
31
- <a accesskey="n" href="libxml2-dict.html">
32
- <img src="right.png" width="24" height="24" border="0" alt="Next"/>
33
- </a>
34
- </td>
35
- <th width="100%" align="center">libxml2 Reference Manual</th>
36
- </tr>
37
- </table>
38
- <h2>
39
- <span class="refentrytitle">debugXML</span>
40
- </h2>
41
- <p>debugXML - Tree debugging APIs</p>
42
- <p>Interfaces to a set of routines used for debugging the tree produced by the XML parser. </p>
43
- <p>Author(s): Daniel Veillard </p>
44
- <div class="refsynopsisdiv">
45
- <h2>Synopsis</h2>
46
- <pre class="synopsis">typedef struct _xmlShellCtxt <a href="#xmlShellCtxt">xmlShellCtxt</a>;
47
- typedef <a href="libxml2-debugXML.html#xmlShellCtxt">xmlShellCtxt</a> * <a href="#xmlShellCtxtPtr">xmlShellCtxtPtr</a>;
48
- void <a href="#xmlDebugDumpAttrList">xmlDebugDumpAttrList</a> (FILE * output, <br/> <a href="libxml2-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr, <br/> int depth);
49
- void <a href="#xmlLsOneNode">xmlLsOneNode</a> (FILE * output, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node);
50
- typedef char * <a href="#xmlShellReadlineFunc">xmlShellReadlineFunc</a> (char * prompt);
51
- int <a href="#xmlShellSave">xmlShellSave</a> (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * filename, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
52
- const char * <a href="#xmlBoolToText">xmlBoolToText</a> (int boolval);
53
- int <a href="#xmlShellWrite">xmlShellWrite</a> (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * filename, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
54
- int <a href="#xmlShellDu">xmlShellDu</a> (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * arg, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> tree, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
55
- int <a href="#xmlShellValidate">xmlShellValidate</a> (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * dtd, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
56
- int <a href="#xmlDebugCheckDocument">xmlDebugCheckDocument</a> (FILE * output, <br/> <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc);
57
- void <a href="#xmlShellPrintXPathResult">xmlShellPrintXPathResult</a> (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> list);
58
- typedef int <a href="#xmlShellCmd">xmlShellCmd</a> (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * arg, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
59
- int <a href="#xmlShellLoad">xmlShellLoad</a> (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * filename, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
60
- void <a href="#xmlDebugDumpString">xmlDebugDumpString</a> (FILE * output, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str);
61
- int <a href="#xmlShellBase">xmlShellBase</a> (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * arg, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
62
- int <a href="#xmlShellCat">xmlShellCat</a> (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * arg, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
63
- void <a href="#xmlDebugDumpDTD">xmlDebugDumpDTD</a> (FILE * output, <br/> <a href="libxml2-tree.html#xmlDtdPtr">xmlDtdPtr</a> dtd);
64
- void <a href="#xmlDebugDumpNode">xmlDebugDumpNode</a> (FILE * output, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> int depth);
65
- void <a href="#xmlDebugDumpEntities">xmlDebugDumpEntities</a> (FILE * output, <br/> <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc);
66
- void <a href="#xmlShellPrintNode">xmlShellPrintNode</a> (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node);
67
- int <a href="#xmlShellPwd">xmlShellPwd</a> (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * buffer, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
68
- void <a href="#xmlDebugDumpNodeList">xmlDebugDumpNodeList</a> (FILE * output, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> int depth);
69
- void <a href="#xmlDebugDumpAttr">xmlDebugDumpAttr</a> (FILE * output, <br/> <a href="libxml2-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr, <br/> int depth);
70
- void <a href="#xmlDebugDumpDocument">xmlDebugDumpDocument</a> (FILE * output, <br/> <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc);
71
- int <a href="#xmlLsCountNode">xmlLsCountNode</a> (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node);
72
- void <a href="#xmlShellPrintXPathError">xmlShellPrintXPathError</a> (int errorType, <br/> const char * arg);
73
- int <a href="#xmlShellDir">xmlShellDir</a> (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * arg, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
74
- void <a href="#xmlDebugDumpOneNode">xmlDebugDumpOneNode</a> (FILE * output, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> int depth);
75
- int <a href="#xmlShellList">xmlShellList</a> (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * arg, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
76
- void <a href="#xmlDebugDumpDocumentHead">xmlDebugDumpDocumentHead</a> (FILE * output, <br/> <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc);
77
- void <a href="#xmlShell">xmlShell</a> (<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/> char * filename, <br/> <a href="libxml2-debugXML.html#xmlShellReadlineFunc">xmlShellReadlineFunc</a> input, <br/> FILE * output);
78
- </pre>
79
- </div>
80
- <div class="refsect1" lang="en">
81
- <h2>Description</h2>
82
- </div>
83
- <div class="refsect1" lang="en">
84
- <h2>Details</h2>
85
- <div class="refsect2" lang="en">
86
- <div class="refsect2" lang="en"><h3><a name="xmlShellCtxt">Structure </a>xmlShellCtxt</h3><pre class="programlisting">struct _xmlShellCtxt {
87
- char * filename
88
- <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc
89
- <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node
90
- <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> pctxt
91
- int loaded
92
- FILE * output
93
- <a href="libxml2-debugXML.html#xmlShellReadlineFunc">xmlShellReadlineFunc</a> input
94
- } xmlShellCtxt;
95
- </pre><p/>
96
- </div>
97
- <hr/>
98
- <div class="refsect2" lang="en"><h3><a name="xmlShellCtxtPtr">Typedef </a>xmlShellCtxtPtr</h3><pre class="programlisting"><a href="libxml2-debugXML.html#xmlShellCtxt">xmlShellCtxt</a> * xmlShellCtxtPtr;
99
- </pre><p/>
100
- </div>
101
- <hr/>
102
- <div class="refsect2" lang="en"><h3><a name="xmlShellCmd"/>Function type xmlShellCmd</h3><pre class="programlisting">int xmlShellCmd (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * arg, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2)<br/>
103
- </pre><p>This is a generic signature for the XML shell functions.</p>
104
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>a shell context</td></tr><tr><td><span class="term"><i><tt>arg</tt></i>:</span></td><td>a string argument</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>a first node</td></tr><tr><td><span class="term"><i><tt>node2</tt></i>:</span></td><td>a second node</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>an int, negative returns indicating errors.</td></tr></tbody></table></div></div>
105
- <hr/>
106
- <div class="refsect2" lang="en"><h3><a name="xmlShellReadlineFunc"/>Function type xmlShellReadlineFunc</h3><pre class="programlisting">char * xmlShellReadlineFunc (char * prompt)<br/>
107
- </pre><p>This is a generic signature for the XML shell input function.</p>
108
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>prompt</tt></i>:</span></td><td>a string prompt</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>a string which will be freed by the Shell.</td></tr></tbody></table></div></div>
109
- <hr/>
110
- <div class="refsect2" lang="en"><h3><a name="xmlBoolToText"/>xmlBoolToText ()</h3><pre class="programlisting">const char * xmlBoolToText (int boolval)<br/>
111
- </pre><p>Convenient way to turn bool into text</p>
112
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>boolval</tt></i>:</span></td><td>a bool to turn into text</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>a pointer to either "True" or "False"</td></tr></tbody></table></div></div>
113
- <hr/>
114
- <div class="refsect2" lang="en"><h3><a name="xmlDebugCheckDocument"/>xmlDebugCheckDocument ()</h3><pre class="programlisting">int xmlDebugCheckDocument (FILE * output, <br/> <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br/>
115
- </pre><p>Check the document for potential content problems, and output the errors to @output</p>
116
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the FILE * for the output</td></tr><tr><td><span class="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of errors found</td></tr></tbody></table></div></div>
117
- <hr/>
118
- <div class="refsect2" lang="en"><h3><a name="xmlDebugDumpAttr"/>xmlDebugDumpAttr ()</h3><pre class="programlisting">void xmlDebugDumpAttr (FILE * output, <br/> <a href="libxml2-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr, <br/> int depth)<br/>
119
- </pre><p>Dumps debug information for the <a href="libxml2-SAX.html#attribute">attribute</a></p>
120
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the FILE * for the output</td></tr><tr><td><span class="term"><i><tt>attr</tt></i>:</span></td><td>the <a href="libxml2-SAX.html#attribute">attribute</a></td></tr><tr><td><span class="term"><i><tt>depth</tt></i>:</span></td><td>the indentation level.</td></tr></tbody></table></div></div>
121
- <hr/>
122
- <div class="refsect2" lang="en"><h3><a name="xmlDebugDumpAttrList"/>xmlDebugDumpAttrList ()</h3><pre class="programlisting">void xmlDebugDumpAttrList (FILE * output, <br/> <a href="libxml2-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr, <br/> int depth)<br/>
123
- </pre><p>Dumps debug information for the <a href="libxml2-SAX.html#attribute">attribute</a> list</p>
124
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the FILE * for the output</td></tr><tr><td><span class="term"><i><tt>attr</tt></i>:</span></td><td>the <a href="libxml2-SAX.html#attribute">attribute</a> list</td></tr><tr><td><span class="term"><i><tt>depth</tt></i>:</span></td><td>the indentation level.</td></tr></tbody></table></div></div>
125
- <hr/>
126
- <div class="refsect2" lang="en"><h3><a name="xmlDebugDumpDTD"/>xmlDebugDumpDTD ()</h3><pre class="programlisting">void xmlDebugDumpDTD (FILE * output, <br/> <a href="libxml2-tree.html#xmlDtdPtr">xmlDtdPtr</a> dtd)<br/>
127
- </pre><p>Dumps debug information for the DTD</p>
128
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the FILE * for the output</td></tr><tr><td><span class="term"><i><tt>dtd</tt></i>:</span></td><td>the DTD</td></tr></tbody></table></div></div>
129
- <hr/>
130
- <div class="refsect2" lang="en"><h3><a name="xmlDebugDumpDocument"/>xmlDebugDumpDocument ()</h3><pre class="programlisting">void xmlDebugDumpDocument (FILE * output, <br/> <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br/>
131
- </pre><p>Dumps debug information for the document, it's recursive</p>
132
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the FILE * for the output</td></tr><tr><td><span class="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr></tbody></table></div></div>
133
- <hr/>
134
- <div class="refsect2" lang="en"><h3><a name="xmlDebugDumpDocumentHead"/>xmlDebugDumpDocumentHead ()</h3><pre class="programlisting">void xmlDebugDumpDocumentHead (FILE * output, <br/> <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br/>
135
- </pre><p>Dumps debug information cncerning the document, not recursive</p>
136
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the FILE * for the output</td></tr><tr><td><span class="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr></tbody></table></div></div>
137
- <hr/>
138
- <div class="refsect2" lang="en"><h3><a name="xmlDebugDumpEntities"/>xmlDebugDumpEntities ()</h3><pre class="programlisting">void xmlDebugDumpEntities (FILE * output, <br/> <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br/>
139
- </pre><p>Dumps debug information for all the entities in use by the document</p>
140
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the FILE * for the output</td></tr><tr><td><span class="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr></tbody></table></div></div>
141
- <hr/>
142
- <div class="refsect2" lang="en"><h3><a name="xmlDebugDumpNode"/>xmlDebugDumpNode ()</h3><pre class="programlisting">void xmlDebugDumpNode (FILE * output, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> int depth)<br/>
143
- </pre><p>Dumps debug information for the element node, it is recursive</p>
144
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the FILE * for the output</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>the node</td></tr><tr><td><span class="term"><i><tt>depth</tt></i>:</span></td><td>the indentation level.</td></tr></tbody></table></div></div>
145
- <hr/>
146
- <div class="refsect2" lang="en"><h3><a name="xmlDebugDumpNodeList"/>xmlDebugDumpNodeList ()</h3><pre class="programlisting">void xmlDebugDumpNodeList (FILE * output, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> int depth)<br/>
147
- </pre><p>Dumps debug information for the list of element node, it is recursive</p>
148
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the FILE * for the output</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>the node list</td></tr><tr><td><span class="term"><i><tt>depth</tt></i>:</span></td><td>the indentation level.</td></tr></tbody></table></div></div>
149
- <hr/>
150
- <div class="refsect2" lang="en"><h3><a name="xmlDebugDumpOneNode"/>xmlDebugDumpOneNode ()</h3><pre class="programlisting">void xmlDebugDumpOneNode (FILE * output, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> int depth)<br/>
151
- </pre><p>Dumps debug information for the element node, it is not recursive</p>
152
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the FILE * for the output</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>the node</td></tr><tr><td><span class="term"><i><tt>depth</tt></i>:</span></td><td>the indentation level.</td></tr></tbody></table></div></div>
153
- <hr/>
154
- <div class="refsect2" lang="en"><h3><a name="xmlDebugDumpString"/>xmlDebugDumpString ()</h3><pre class="programlisting">void xmlDebugDumpString (FILE * output, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str)<br/>
155
- </pre><p>Dumps informations about the string, shorten it if necessary</p>
156
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the FILE * for the output</td></tr><tr><td><span class="term"><i><tt>str</tt></i>:</span></td><td>the string</td></tr></tbody></table></div></div>
157
- <hr/>
158
- <div class="refsect2" lang="en"><h3><a name="xmlLsCountNode"/>xmlLsCountNode ()</h3><pre class="programlisting">int xmlLsCountNode (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node)<br/>
159
- </pre><p>Count the children of @node.</p>
160
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>the node to count</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of children of @node.</td></tr></tbody></table></div></div>
161
- <hr/>
162
- <div class="refsect2" lang="en"><h3><a name="xmlLsOneNode"/>xmlLsOneNode ()</h3><pre class="programlisting">void xmlLsOneNode (FILE * output, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node)<br/>
163
- </pre><p>Dump to @output the type and name of @node.</p>
164
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the FILE * for the output</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>the node to dump</td></tr></tbody></table></div></div>
165
- <hr/>
166
- <div class="refsect2" lang="en"><h3><a name="xmlShell"/>xmlShell ()</h3><pre class="programlisting">void xmlShell (<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/> char * filename, <br/> <a href="libxml2-debugXML.html#xmlShellReadlineFunc">xmlShellReadlineFunc</a> input, <br/> FILE * output)<br/>
167
- </pre><p>Implements the XML shell This allow to load, validate, view, modify and save a document using a environment similar to a UNIX commandline.</p>
168
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>doc</tt></i>:</span></td><td>the initial document</td></tr><tr><td><span class="term"><i><tt>filename</tt></i>:</span></td><td>the output buffer</td></tr><tr><td><span class="term"><i><tt>input</tt></i>:</span></td><td>the line reading function</td></tr><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the output FILE*, defaults to stdout if NULL</td></tr></tbody></table></div></div>
169
- <hr/>
170
- <div class="refsect2" lang="en"><h3><a name="xmlShellBase"/>xmlShellBase ()</h3><pre class="programlisting">int xmlShellBase (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * arg, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2)<br/>
171
- </pre><p>Implements the XML shell function "base" dumps the current XML base of the node</p>
172
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the shell context</td></tr><tr><td><span class="term"><i><tt>arg</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>a node</td></tr><tr><td><span class="term"><i><tt>node2</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0</td></tr></tbody></table></div></div>
173
- <hr/>
174
- <div class="refsect2" lang="en"><h3><a name="xmlShellCat"/>xmlShellCat ()</h3><pre class="programlisting">int xmlShellCat (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * arg, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2)<br/>
175
- </pre><p>Implements the XML shell function "cat" dumps the serialization node content (XML or HTML).</p>
176
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the shell context</td></tr><tr><td><span class="term"><i><tt>arg</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>a node</td></tr><tr><td><span class="term"><i><tt>node2</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0</td></tr></tbody></table></div></div>
177
- <hr/>
178
- <div class="refsect2" lang="en"><h3><a name="xmlShellDir"/>xmlShellDir ()</h3><pre class="programlisting">int xmlShellDir (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * arg, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2)<br/>
179
- </pre><p>Implements the XML shell function "dir" dumps informations about the node (namespace, attributes, content).</p>
180
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the shell context</td></tr><tr><td><span class="term"><i><tt>arg</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>a node</td></tr><tr><td><span class="term"><i><tt>node2</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0</td></tr></tbody></table></div></div>
181
- <hr/>
182
- <div class="refsect2" lang="en"><h3><a name="xmlShellDu"/>xmlShellDu ()</h3><pre class="programlisting">int xmlShellDu (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * arg, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> tree, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2)<br/>
183
- </pre><p>Implements the XML shell function "du" show the structure of the subtree under node @tree If @tree is null, the command works on the current node.</p>
184
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the shell context</td></tr><tr><td><span class="term"><i><tt>arg</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>tree</tt></i>:</span></td><td>a node defining a subtree</td></tr><tr><td><span class="term"><i><tt>node2</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 or -1 in case of error</td></tr></tbody></table></div></div>
185
- <hr/>
186
- <div class="refsect2" lang="en"><h3><a name="xmlShellList"/>xmlShellList ()</h3><pre class="programlisting">int xmlShellList (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * arg, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2)<br/>
187
- </pre><p>Implements the XML shell function "ls" Does an Unix like listing of the given node (like a directory)</p>
188
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the shell context</td></tr><tr><td><span class="term"><i><tt>arg</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>a node</td></tr><tr><td><span class="term"><i><tt>node2</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0</td></tr></tbody></table></div></div>
189
- <hr/>
190
- <div class="refsect2" lang="en"><h3><a name="xmlShellLoad"/>xmlShellLoad ()</h3><pre class="programlisting">int xmlShellLoad (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * filename, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2)<br/>
191
- </pre><p>Implements the XML shell function "load" loads a new document specified by the filename</p>
192
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the shell context</td></tr><tr><td><span class="term"><i><tt>filename</tt></i>:</span></td><td>the file name</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>node2</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 or -1 if loading failed</td></tr></tbody></table></div></div>
193
- <hr/>
194
- <div class="refsect2" lang="en"><h3><a name="xmlShellPrintNode"/>xmlShellPrintNode ()</h3><pre class="programlisting">void xmlShellPrintNode (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node)<br/>
195
- </pre><p>Print node to the output FILE</p>
196
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>a non-null node to print to the output FILE</td></tr></tbody></table></div></div>
197
- <hr/>
198
- <div class="refsect2" lang="en"><h3><a name="xmlShellPrintXPathError"/>xmlShellPrintXPathError ()</h3><pre class="programlisting">void xmlShellPrintXPathError (int errorType, <br/> const char * arg)<br/>
199
- </pre><p>Print the xpath error to libxml default error channel</p>
200
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>errorType</tt></i>:</span></td><td>valid xpath error id</td></tr><tr><td><span class="term"><i><tt>arg</tt></i>:</span></td><td>the argument that cause xpath to fail</td></tr></tbody></table></div></div>
201
- <hr/>
202
- <div class="refsect2" lang="en"><h3><a name="xmlShellPrintXPathResult"/>xmlShellPrintXPathResult ()</h3><pre class="programlisting">void xmlShellPrintXPathResult (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> list)<br/>
203
- </pre><p>Prints result to the output FILE</p>
204
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>list</tt></i>:</span></td><td>a valid result generated by an xpath evaluation</td></tr></tbody></table></div></div>
205
- <hr/>
206
- <div class="refsect2" lang="en"><h3><a name="xmlShellPwd"/>xmlShellPwd ()</h3><pre class="programlisting">int xmlShellPwd (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * buffer, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2)<br/>
207
- </pre><p>Implements the XML shell function "pwd" Show the full path from the root to the node, if needed building thumblers when similar elements exists at a given ancestor level. The output is compatible with XPath commands.</p>
208
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the shell context</td></tr><tr><td><span class="term"><i><tt>buffer</tt></i>:</span></td><td>the output buffer</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>a node</td></tr><tr><td><span class="term"><i><tt>node2</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 or -1 in case of error</td></tr></tbody></table></div></div>
209
- <hr/>
210
- <div class="refsect2" lang="en"><h3><a name="xmlShellSave"/>xmlShellSave ()</h3><pre class="programlisting">int xmlShellSave (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * filename, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2)<br/>
211
- </pre><p>Implements the XML shell function "save" Write the current document to the filename, or it's original name</p>
212
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the shell context</td></tr><tr><td><span class="term"><i><tt>filename</tt></i>:</span></td><td>the file name (optional)</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>node2</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 or -1 in case of error</td></tr></tbody></table></div></div>
213
- <hr/>
214
- <div class="refsect2" lang="en"><h3><a name="xmlShellValidate"/>xmlShellValidate ()</h3><pre class="programlisting">int xmlShellValidate (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * dtd, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2)<br/>
215
- </pre><p>Implements the XML shell function "validate" Validate the document, if a DTD path is provided, then the validation is done against the given DTD.</p>
216
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the shell context</td></tr><tr><td><span class="term"><i><tt>dtd</tt></i>:</span></td><td>the DTD URI (optional)</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>node2</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 or -1 in case of error</td></tr></tbody></table></div></div>
217
- <hr/>
218
- <div class="refsect2" lang="en"><h3><a name="xmlShellWrite"/>xmlShellWrite ()</h3><pre class="programlisting">int xmlShellWrite (<a href="libxml2-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, <br/> char * filename, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br/> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2)<br/>
219
- </pre><p>Implements the XML shell function "write" Write the current node to the filename, it saves the serialization of the subtree under the @node specified</p>
220
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the shell context</td></tr><tr><td><span class="term"><i><tt>filename</tt></i>:</span></td><td>the file name</td></tr><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>a node in the tree</td></tr><tr><td><span class="term"><i><tt>node2</tt></i>:</span></td><td>unused</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 or -1 in case of error</td></tr></tbody></table></div></div>
221
- <hr/>
222
- </div>
223
- </div>
224
- </body>
225
- </html>
@@ -1,134 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
5
- <title>dict: string dictionnary</title>
6
- <meta name="generator" content="Libxml2 devhelp stylesheet"/>
7
- <link rel="start" href="index.html" title="libxml2 Reference Manual"/>
8
- <link rel="up" href="general.html" title="API"/>
9
- <link rel="stylesheet" href="style.css" type="text/css"/>
10
- <link rel="chapter" href="general.html" title="API"/>
11
- </head>
12
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13
- <table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
14
- <tr valign="middle">
15
- <td>
16
- <a accesskey="p" href="libxml2-debugXML.html">
17
- <img src="left.png" width="24" height="24" border="0" alt="Prev"/>
18
- </a>
19
- </td>
20
- <td>
21
- <a accesskey="u" href="general.html">
22
- <img src="up.png" width="24" height="24" border="0" alt="Up"/>
23
- </a>
24
- </td>
25
- <td>
26
- <a accesskey="h" href="index.html">
27
- <img src="home.png" width="24" height="24" border="0" alt="Home"/>
28
- </a>
29
- </td>
30
- <td>
31
- <a accesskey="n" href="libxml2-encoding.html">
32
- <img src="right.png" width="24" height="24" border="0" alt="Next"/>
33
- </a>
34
- </td>
35
- <th width="100%" align="center">libxml2 Reference Manual</th>
36
- </tr>
37
- </table>
38
- <h2>
39
- <span class="refentrytitle">dict</span>
40
- </h2>
41
- <p>dict - string dictionnary</p>
42
- <p>dictionary of reusable strings, just used to avoid allocation and freeing operations. </p>
43
- <p>Author(s): Daniel Veillard </p>
44
- <div class="refsynopsisdiv">
45
- <h2>Synopsis</h2>
46
- <pre class="synopsis">typedef struct _xmlDict <a href="#xmlDict">xmlDict</a>;
47
- typedef <a href="libxml2-dict.html#xmlDict">xmlDict</a> * <a href="#xmlDictPtr">xmlDictPtr</a>;
48
- size_t <a href="#xmlDictGetUsage">xmlDictGetUsage</a> (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict);
49
- int <a href="#xmlDictReference">xmlDictReference</a> (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict);
50
- void <a href="#xmlDictCleanup">xmlDictCleanup</a> (void);
51
- int <a href="#xmlDictSize">xmlDictSize</a> (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict);
52
- const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlDictExists">xmlDictExists</a> (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br/> int len);
53
- size_t <a href="#xmlDictSetLimit">xmlDictSetLimit</a> (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> size_t limit);
54
- int <a href="#xmlDictOwns">xmlDictOwns</a> (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str);
55
- const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlDictQLookup">xmlDictQLookup</a> (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * prefix, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name);
56
- int <a href="#xmlInitializeDict">xmlInitializeDict</a> (void);
57
- <a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> <a href="#xmlDictCreateSub">xmlDictCreateSub</a> (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> sub);
58
- void <a href="#xmlDictFree">xmlDictFree</a> (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict);
59
- const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlDictLookup">xmlDictLookup</a> (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br/> int len);
60
- <a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> <a href="#xmlDictCreate">xmlDictCreate</a> (void);
61
- </pre>
62
- </div>
63
- <div class="refsect1" lang="en">
64
- <h2>Description</h2>
65
- </div>
66
- <div class="refsect1" lang="en">
67
- <h2>Details</h2>
68
- <div class="refsect2" lang="en">
69
- <div class="refsect2" lang="en"><h3><a name="xmlDict">Structure </a>xmlDict</h3><pre class="programlisting">struct _xmlDict {
70
- The content of this structure is not made public by the API.
71
- } xmlDict;
72
- </pre><p/>
73
- </div>
74
- <hr/>
75
- <div class="refsect2" lang="en"><h3><a name="xmlDictPtr">Typedef </a>xmlDictPtr</h3><pre class="programlisting"><a href="libxml2-dict.html#xmlDict">xmlDict</a> * xmlDictPtr;
76
- </pre><p/>
77
- </div>
78
- <hr/>
79
- <div class="refsect2" lang="en"><h3><a name="xmlDictCleanup"/>xmlDictCleanup ()</h3><pre class="programlisting">void xmlDictCleanup (void)<br/>
80
- </pre><p>Free the dictionary mutex. Do not call unless sure the library is not in use anymore !</p>
81
- </div>
82
- <hr/>
83
- <div class="refsect2" lang="en"><h3><a name="xmlDictCreate"/>xmlDictCreate ()</h3><pre class="programlisting"><a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> xmlDictCreate (void)<br/>
84
- </pre><p>Create a new dictionary</p>
85
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the newly created dictionnary, or NULL if an error occured.</td></tr></tbody></table></div></div>
86
- <hr/>
87
- <div class="refsect2" lang="en"><h3><a name="xmlDictCreateSub"/>xmlDictCreateSub ()</h3><pre class="programlisting"><a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> xmlDictCreateSub (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> sub)<br/>
88
- </pre><p>Create a new dictionary, inheriting strings from the read-only dictionnary @sub. On lookup, strings are first searched in the new dictionnary, then in @sub, and if not found are created in the new dictionnary.</p>
89
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>sub</tt></i>:</span></td><td>an existing dictionnary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the newly created dictionnary, or NULL if an error occured.</td></tr></tbody></table></div></div>
90
- <hr/>
91
- <div class="refsect2" lang="en"><h3><a name="xmlDictExists"/>xmlDictExists ()</h3><pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlDictExists (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br/> int len)<br/>
92
- </pre><p>Check if the @name exists in the dictionnary @dict.</p>
93
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name of the userdata</td></tr><tr><td><span class="term"><i><tt>len</tt></i>:</span></td><td>the length of the name, if -1 it is recomputed</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the name or NULL if not found.</td></tr></tbody></table></div></div>
94
- <hr/>
95
- <div class="refsect2" lang="en"><h3><a name="xmlDictFree"/>xmlDictFree ()</h3><pre class="programlisting">void xmlDictFree (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br/>
96
- </pre><p>Free the hash @dict and its contents. The userdata is deallocated with @f if provided.</p>
97
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr></tbody></table></div></div>
98
- <hr/>
99
- <div class="refsect2" lang="en"><h3><a name="xmlDictGetUsage"/>xmlDictGetUsage ()</h3><pre class="programlisting">size_t xmlDictGetUsage (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br/>
100
- </pre><p>Get how much memory is used by a dictionary for strings Added in 2.9.0</p>
101
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the amount of strings allocated</td></tr></tbody></table></div></div>
102
- <hr/>
103
- <div class="refsect2" lang="en"><h3><a name="xmlDictLookup"/>xmlDictLookup ()</h3><pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlDictLookup (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br/> int len)<br/>
104
- </pre><p>Add the @name to the dictionnary @dict if not present.</p>
105
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name of the userdata</td></tr><tr><td><span class="term"><i><tt>len</tt></i>:</span></td><td>the length of the name, if -1 it is recomputed</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the name or NULL in case of internal error</td></tr></tbody></table></div></div>
106
- <hr/>
107
- <div class="refsect2" lang="en"><h3><a name="xmlDictOwns"/>xmlDictOwns ()</h3><pre class="programlisting">int xmlDictOwns (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str)<br/>
108
- </pre><p>check if a string is owned by the disctionary</p>
109
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>str</tt></i>:</span></td><td>the string</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>1 if true, 0 if false and -1 in case of error -1 in case of error</td></tr></tbody></table></div></div>
110
- <hr/>
111
- <div class="refsect2" lang="en"><h3><a name="xmlDictQLookup"/>xmlDictQLookup ()</h3><pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlDictQLookup (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * prefix, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name)<br/>
112
- </pre><p>Add the QName @prefix:@name to the hash @dict if not present.</p>
113
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>prefix</tt></i>:</span></td><td>the prefix</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the QName or NULL in case of internal error</td></tr></tbody></table></div></div>
114
- <hr/>
115
- <div class="refsect2" lang="en"><h3><a name="xmlDictReference"/>xmlDictReference ()</h3><pre class="programlisting">int xmlDictReference (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br/>
116
- </pre><p>Increment the <a href="libxml2-SAX.html#reference">reference</a> counter of a dictionary</p>
117
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 in case of success and -1 in case of error</td></tr></tbody></table></div></div>
118
- <hr/>
119
- <div class="refsect2" lang="en"><h3><a name="xmlDictSetLimit"/>xmlDictSetLimit ()</h3><pre class="programlisting">size_t xmlDictSetLimit (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> size_t limit)<br/>
120
- </pre><p>Set a size limit for the dictionary Added in 2.9.0</p>
121
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>limit</tt></i>:</span></td><td>the limit in bytes</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the previous limit of the dictionary or 0</td></tr></tbody></table></div></div>
122
- <hr/>
123
- <div class="refsect2" lang="en"><h3><a name="xmlDictSize"/>xmlDictSize ()</h3><pre class="programlisting">int xmlDictSize (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br/>
124
- </pre><p>Query the number of elements installed in the hash @dict.</p>
125
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of elements in the dictionnary or -1 in case of error</td></tr></tbody></table></div></div>
126
- <hr/>
127
- <div class="refsect2" lang="en"><h3><a name="xmlInitializeDict"/>xmlInitializeDict ()</h3><pre class="programlisting">int xmlInitializeDict (void)<br/>
128
- </pre><p>Do the dictionary mutex initialization. this function is not thread safe, initialization should preferably be done once at startup</p>
129
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 if initialization was already done, and 1 if that call led to the initialization</td></tr></tbody></table></div></div>
130
- <hr/>
131
- </div>
132
- </div>
133
- </body>
134
- </html>
@@ -1,218 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
5
- <title>encoding: interface for the encoding conversion functions</title>
6
- <meta name="generator" content="Libxml2 devhelp stylesheet"/>
7
- <link rel="start" href="index.html" title="libxml2 Reference Manual"/>
8
- <link rel="up" href="general.html" title="API"/>
9
- <link rel="stylesheet" href="style.css" type="text/css"/>
10
- <link rel="chapter" href="general.html" title="API"/>
11
- </head>
12
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13
- <table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
14
- <tr valign="middle">
15
- <td>
16
- <a accesskey="p" href="libxml2-dict.html">
17
- <img src="left.png" width="24" height="24" border="0" alt="Prev"/>
18
- </a>
19
- </td>
20
- <td>
21
- <a accesskey="u" href="general.html">
22
- <img src="up.png" width="24" height="24" border="0" alt="Up"/>
23
- </a>
24
- </td>
25
- <td>
26
- <a accesskey="h" href="index.html">
27
- <img src="home.png" width="24" height="24" border="0" alt="Home"/>
28
- </a>
29
- </td>
30
- <td>
31
- <a accesskey="n" href="libxml2-entities.html">
32
- <img src="right.png" width="24" height="24" border="0" alt="Next"/>
33
- </a>
34
- </td>
35
- <th width="100%" align="center">libxml2 Reference Manual</th>
36
- </tr>
37
- </table>
38
- <h2>
39
- <span class="refentrytitle">encoding</span>
40
- </h2>
41
- <p>encoding - interface for the encoding conversion functions</p>
42
- <p>interface for the encoding conversion functions needed for XML basic encoding and iconv() support. Related specs are rfc2044 (UTF-8 and UTF-16) F. Yergeau Alis Technologies [ISO-10646] UTF-8 and UTF-16 in Annexes [ISO-8859-1] ISO Latin-1 characters codes. [UNICODE] The Unicode Consortium, "The Unicode Standard -- Worldwide Character Encoding -- Version 1.0", Addison- Wesley, Volume 1, 1991, Volume 2, 1992. UTF-8 is described in Unicode Technical Report #4. [US-ASCII] Coded Character Set--7-bit American Standard Code for Information Interchange, ANSI X3.4-1986. </p>
43
- <p>Author(s): Daniel Veillard </p>
44
- <div class="refsynopsisdiv">
45
- <h2>Synopsis</h2>
46
- <pre class="synopsis">typedef struct _uconv_t <a href="#uconv_t">uconv_t</a>;
47
- typedef enum <a href="#xmlCharEncoding">xmlCharEncoding</a>;
48
- typedef struct _xmlCharEncodingHandler <a href="#xmlCharEncodingHandler">xmlCharEncodingHandler</a>;
49
- typedef <a href="libxml2-encoding.html#xmlCharEncodingHandler">xmlCharEncodingHandler</a> * <a href="#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a>;
50
- int <a href="#xmlDelEncodingAlias">xmlDelEncodingAlias</a> (const char * alias);
51
- const char * <a href="#xmlGetEncodingAlias">xmlGetEncodingAlias</a> (const char * alias);
52
- void <a href="#xmlRegisterCharEncodingHandler">xmlRegisterCharEncodingHandler</a> (<a href="libxml2-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> handler);
53
- int <a href="#UTF8Toisolat1">UTF8Toisolat1</a> (unsigned char * out, <br/> int * outlen, <br/> const unsigned char * in, <br/> int * inlen);
54
- void <a href="#xmlInitCharEncodingHandlers">xmlInitCharEncodingHandlers</a> (void);
55
- int <a href="#xmlAddEncodingAlias">xmlAddEncodingAlias</a> (const char * name, <br/> const char * alias);
56
- void <a href="#xmlCleanupEncodingAliases">xmlCleanupEncodingAliases</a> (void);
57
- int <a href="#xmlCharEncOutFunc">xmlCharEncOutFunc</a> (<a href="libxml2-encoding.html#xmlCharEncodingHandler">xmlCharEncodingHandler</a> * handler, <br/> <a href="libxml2-tree.html#xmlBufferPtr">xmlBufferPtr</a> out, <br/> <a href="libxml2-tree.html#xmlBufferPtr">xmlBufferPtr</a> in);
58
- <a href="libxml2-encoding.html#xmlCharEncoding">xmlCharEncoding</a> <a href="#xmlParseCharEncoding">xmlParseCharEncoding</a> (const char * name);
59
- typedef int <a href="#xmlCharEncodingInputFunc">xmlCharEncodingInputFunc</a> (unsigned char * out, <br/> int * outlen, <br/> const unsigned char * in, <br/> int * inlen);
60
- void <a href="#xmlCleanupCharEncodingHandlers">xmlCleanupCharEncodingHandlers</a> (void);
61
- <a href="libxml2-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> <a href="#xmlNewCharEncodingHandler">xmlNewCharEncodingHandler</a> (const char * name, <br/> <a href="libxml2-encoding.html#xmlCharEncodingInputFunc">xmlCharEncodingInputFunc</a> input, <br/> <a href="libxml2-encoding.html#xmlCharEncodingOutputFunc">xmlCharEncodingOutputFunc</a> output);
62
- typedef int <a href="#xmlCharEncodingOutputFunc">xmlCharEncodingOutputFunc</a> (unsigned char * out, <br/> int * outlen, <br/> const unsigned char * in, <br/> int * inlen);
63
- int <a href="#isolat1ToUTF8">isolat1ToUTF8</a> (unsigned char * out, <br/> int * outlen, <br/> const unsigned char * in, <br/> int * inlen);
64
- <a href="libxml2-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> <a href="#xmlFindCharEncodingHandler">xmlFindCharEncodingHandler</a> (const char * name);
65
- int <a href="#xmlCharEncInFunc">xmlCharEncInFunc</a> (<a href="libxml2-encoding.html#xmlCharEncodingHandler">xmlCharEncodingHandler</a> * handler, <br/> <a href="libxml2-tree.html#xmlBufferPtr">xmlBufferPtr</a> out, <br/> <a href="libxml2-tree.html#xmlBufferPtr">xmlBufferPtr</a> in);
66
- <a href="libxml2-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> <a href="#xmlGetCharEncodingHandler">xmlGetCharEncodingHandler</a> (<a href="libxml2-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);
67
- int <a href="#xmlCharEncFirstLine">xmlCharEncFirstLine</a> (<a href="libxml2-encoding.html#xmlCharEncodingHandler">xmlCharEncodingHandler</a> * handler, <br/> <a href="libxml2-tree.html#xmlBufferPtr">xmlBufferPtr</a> out, <br/> <a href="libxml2-tree.html#xmlBufferPtr">xmlBufferPtr</a> in);
68
- <a href="libxml2-encoding.html#xmlCharEncoding">xmlCharEncoding</a> <a href="#xmlDetectCharEncoding">xmlDetectCharEncoding</a> (const unsigned char * in, <br/> int len);
69
- int <a href="#xmlCharEncCloseFunc">xmlCharEncCloseFunc</a> (<a href="libxml2-encoding.html#xmlCharEncodingHandler">xmlCharEncodingHandler</a> * handler);
70
- const char * <a href="#xmlGetCharEncodingName">xmlGetCharEncodingName</a> (<a href="libxml2-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);
71
- </pre>
72
- </div>
73
- <div class="refsect1" lang="en">
74
- <h2>Description</h2>
75
- </div>
76
- <div class="refsect1" lang="en">
77
- <h2>Details</h2>
78
- <div class="refsect2" lang="en">
79
- <div class="refsect2" lang="en"><h3><a name="uconv_t">Structure </a>uconv_t</h3><pre class="programlisting">struct _uconv_t {
80
- UConverter * uconv : for conversion between an encoding and UTF-16
81
- UConverter * utf8 : for conversion between UTF-8 and UTF-16
82
- } uconv_t;
83
- </pre><p/>
84
- </div>
85
- <hr/>
86
- <div class="refsect2" lang="en"><h3><a name="xmlCharEncoding">Enum </a>xmlCharEncoding</h3><pre class="programlisting">enum <a href="#xmlCharEncoding">xmlCharEncoding</a> {
87
- <a name="XML_CHAR_ENCODING_ERROR">XML_CHAR_ENCODING_ERROR</a> = -1 /* No char encoding detected */
88
- <a name="XML_CHAR_ENCODING_NONE">XML_CHAR_ENCODING_NONE</a> = 0 /* No char encoding detected */
89
- <a name="XML_CHAR_ENCODING_UTF8">XML_CHAR_ENCODING_UTF8</a> = 1 /* UTF-8 */
90
- <a name="XML_CHAR_ENCODING_UTF16LE">XML_CHAR_ENCODING_UTF16LE</a> = 2 /* UTF-16 little endian */
91
- <a name="XML_CHAR_ENCODING_UTF16BE">XML_CHAR_ENCODING_UTF16BE</a> = 3 /* UTF-16 big endian */
92
- <a name="XML_CHAR_ENCODING_UCS4LE">XML_CHAR_ENCODING_UCS4LE</a> = 4 /* UCS-4 little endian */
93
- <a name="XML_CHAR_ENCODING_UCS4BE">XML_CHAR_ENCODING_UCS4BE</a> = 5 /* UCS-4 big endian */
94
- <a name="XML_CHAR_ENCODING_EBCDIC">XML_CHAR_ENCODING_EBCDIC</a> = 6 /* EBCDIC uh! */
95
- <a name="XML_CHAR_ENCODING_UCS4_2143">XML_CHAR_ENCODING_UCS4_2143</a> = 7 /* UCS-4 unusual ordering */
96
- <a name="XML_CHAR_ENCODING_UCS4_3412">XML_CHAR_ENCODING_UCS4_3412</a> = 8 /* UCS-4 unusual ordering */
97
- <a name="XML_CHAR_ENCODING_UCS2">XML_CHAR_ENCODING_UCS2</a> = 9 /* UCS-2 */
98
- <a name="XML_CHAR_ENCODING_8859_1">XML_CHAR_ENCODING_8859_1</a> = 10 /* ISO-8859-1 ISO Latin 1 */
99
- <a name="XML_CHAR_ENCODING_8859_2">XML_CHAR_ENCODING_8859_2</a> = 11 /* ISO-8859-2 ISO Latin 2 */
100
- <a name="XML_CHAR_ENCODING_8859_3">XML_CHAR_ENCODING_8859_3</a> = 12 /* ISO-8859-3 */
101
- <a name="XML_CHAR_ENCODING_8859_4">XML_CHAR_ENCODING_8859_4</a> = 13 /* ISO-8859-4 */
102
- <a name="XML_CHAR_ENCODING_8859_5">XML_CHAR_ENCODING_8859_5</a> = 14 /* ISO-8859-5 */
103
- <a name="XML_CHAR_ENCODING_8859_6">XML_CHAR_ENCODING_8859_6</a> = 15 /* ISO-8859-6 */
104
- <a name="XML_CHAR_ENCODING_8859_7">XML_CHAR_ENCODING_8859_7</a> = 16 /* ISO-8859-7 */
105
- <a name="XML_CHAR_ENCODING_8859_8">XML_CHAR_ENCODING_8859_8</a> = 17 /* ISO-8859-8 */
106
- <a name="XML_CHAR_ENCODING_8859_9">XML_CHAR_ENCODING_8859_9</a> = 18 /* ISO-8859-9 */
107
- <a name="XML_CHAR_ENCODING_2022_JP">XML_CHAR_ENCODING_2022_JP</a> = 19 /* ISO-2022-JP */
108
- <a name="XML_CHAR_ENCODING_SHIFT_JIS">XML_CHAR_ENCODING_SHIFT_JIS</a> = 20 /* Shift_JIS */
109
- <a name="XML_CHAR_ENCODING_EUC_JP">XML_CHAR_ENCODING_EUC_JP</a> = 21 /* EUC-JP */
110
- <a name="XML_CHAR_ENCODING_ASCII">XML_CHAR_ENCODING_ASCII</a> = 22 /* pure ASCII */
111
- };
112
- </pre><p/>
113
- </div>
114
- <hr/>
115
- <div class="refsect2" lang="en"><h3><a name="xmlCharEncodingHandler">Structure </a>xmlCharEncodingHandler</h3><pre class="programlisting">struct _xmlCharEncodingHandler {
116
- char * name
117
- <a href="libxml2-encoding.html#xmlCharEncodingInputFunc">xmlCharEncodingInputFunc</a> input
118
- <a href="libxml2-encoding.html#xmlCharEncodingOutputFunc">xmlCharEncodingOutputFunc</a> output
119
- iconv_t iconv_in
120
- iconv_t iconv_out
121
- <a href="libxml2-encoding.html#uconv_t">uconv_t</a> * uconv_in
122
- <a href="libxml2-encoding.html#uconv_t">uconv_t</a> * uconv_out
123
- } xmlCharEncodingHandler;
124
- </pre><p/>
125
- </div>
126
- <hr/>
127
- <div class="refsect2" lang="en"><h3><a name="xmlCharEncodingHandlerPtr">Typedef </a>xmlCharEncodingHandlerPtr</h3><pre class="programlisting"><a href="libxml2-encoding.html#xmlCharEncodingHandler">xmlCharEncodingHandler</a> * xmlCharEncodingHandlerPtr;
128
- </pre><p/>
129
- </div>
130
- <hr/>
131
- <div class="refsect2" lang="en"><h3><a name="xmlCharEncodingInputFunc"/>Function type xmlCharEncodingInputFunc</h3><pre class="programlisting">int xmlCharEncodingInputFunc (unsigned char * out, <br/> int * outlen, <br/> const unsigned char * in, <br/> int * inlen)<br/>
132
- </pre><p>Take a block of chars in the original encoding and try to convert it to an UTF-8 block of chars out.</p>
133
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>out</tt></i>:</span></td><td>a pointer to an array of bytes to store the UTF-8 result</td></tr><tr><td><span class="term"><i><tt>outlen</tt></i>:</span></td><td>the length of @out</td></tr><tr><td><span class="term"><i><tt>in</tt></i>:</span></td><td>a pointer to an array of chars in the original encoding</td></tr><tr><td><span class="term"><i><tt>inlen</tt></i>:</span></td><td>the length of @in</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of bytes written, -1 if lack of space, or -2 if the transcoding failed. The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictiable. The value of @outlen after return is the number of octets consumed.</td></tr></tbody></table></div></div>
134
- <hr/>
135
- <div class="refsect2" lang="en"><h3><a name="xmlCharEncodingOutputFunc"/>Function type xmlCharEncodingOutputFunc</h3><pre class="programlisting">int xmlCharEncodingOutputFunc (unsigned char * out, <br/> int * outlen, <br/> const unsigned char * in, <br/> int * inlen)<br/>
136
- </pre><p>Take a block of UTF-8 chars in and try to convert it to another encoding. Note: a first call designed to produce heading info is called with in = NULL. If stateful this should also initialize the encoder state.</p>
137
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>out</tt></i>:</span></td><td>a pointer to an array of bytes to store the result</td></tr><tr><td><span class="term"><i><tt>outlen</tt></i>:</span></td><td>the length of @out</td></tr><tr><td><span class="term"><i><tt>in</tt></i>:</span></td><td>a pointer to an array of UTF-8 chars</td></tr><tr><td><span class="term"><i><tt>inlen</tt></i>:</span></td><td>the length of @in</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of bytes written, -1 if lack of space, or -2 if the transcoding failed. The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictiable. The value of @outlen after return is the number of octets produced.</td></tr></tbody></table></div></div>
138
- <hr/>
139
- <div class="refsect2" lang="en"><h3><a name="UTF8Toisolat1"/>UTF8Toisolat1 ()</h3><pre class="programlisting">int UTF8Toisolat1 (unsigned char * out, <br/> int * outlen, <br/> const unsigned char * in, <br/> int * inlen)<br/>
140
- </pre><p>Take a block of UTF-8 chars in and try to convert it to an ISO Latin 1 block of chars out.</p>
141
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>out</tt></i>:</span></td><td>a pointer to an array of bytes to store the result</td></tr><tr><td><span class="term"><i><tt>outlen</tt></i>:</span></td><td>the length of @out</td></tr><tr><td><span class="term"><i><tt>in</tt></i>:</span></td><td>a pointer to an array of UTF-8 chars</td></tr><tr><td><span class="term"><i><tt>inlen</tt></i>:</span></td><td>the length of @in</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of bytes written if success, -2 if the transcoding fails, or -1 otherwise The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictable. The value of @outlen after return is the number of octets consumed.</td></tr></tbody></table></div></div>
142
- <hr/>
143
- <div class="refsect2" lang="en"><h3><a name="isolat1ToUTF8"/>isolat1ToUTF8 ()</h3><pre class="programlisting">int isolat1ToUTF8 (unsigned char * out, <br/> int * outlen, <br/> const unsigned char * in, <br/> int * inlen)<br/>
144
- </pre><p>Take a block of ISO Latin 1 chars in and try to convert it to an UTF-8 block of chars out.</p>
145
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>out</tt></i>:</span></td><td>a pointer to an array of bytes to store the result</td></tr><tr><td><span class="term"><i><tt>outlen</tt></i>:</span></td><td>the length of @out</td></tr><tr><td><span class="term"><i><tt>in</tt></i>:</span></td><td>a pointer to an array of ISO Latin 1 chars</td></tr><tr><td><span class="term"><i><tt>inlen</tt></i>:</span></td><td>the length of @in</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of bytes written if success, or -1 otherwise The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictable. The value of @outlen after return is the number of octets consumed.</td></tr></tbody></table></div></div>
146
- <hr/>
147
- <div class="refsect2" lang="en"><h3><a name="xmlAddEncodingAlias"/>xmlAddEncodingAlias ()</h3><pre class="programlisting">int xmlAddEncodingAlias (const char * name, <br/> const char * alias)<br/>
148
- </pre><p>Registers an alias @alias for an encoding named @name. Existing alias will be overwritten.</p>
149
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the encoding name as parsed, in UTF-8 format (ASCII actually)</td></tr><tr><td><span class="term"><i><tt>alias</tt></i>:</span></td><td>the alias name as parsed, in UTF-8 format (ASCII actually)</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 in case of success, -1 in case of error</td></tr></tbody></table></div></div>
150
- <hr/>
151
- <div class="refsect2" lang="en"><h3><a name="xmlCharEncCloseFunc"/>xmlCharEncCloseFunc ()</h3><pre class="programlisting">int xmlCharEncCloseFunc (<a href="libxml2-encoding.html#xmlCharEncodingHandler">xmlCharEncodingHandler</a> * handler)<br/>
152
- </pre><p>Generic front-end for encoding handler close function</p>
153
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>handler</tt></i>:</span></td><td>char enconding transformation data structure</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 if success, or -1 in case of error</td></tr></tbody></table></div></div>
154
- <hr/>
155
- <div class="refsect2" lang="en"><h3><a name="xmlCharEncFirstLine"/>xmlCharEncFirstLine ()</h3><pre class="programlisting">int xmlCharEncFirstLine (<a href="libxml2-encoding.html#xmlCharEncodingHandler">xmlCharEncodingHandler</a> * handler, <br/> <a href="libxml2-tree.html#xmlBufferPtr">xmlBufferPtr</a> out, <br/> <a href="libxml2-tree.html#xmlBufferPtr">xmlBufferPtr</a> in)<br/>
156
- </pre><p>Front-end for the encoding handler input function, but handle only the very first line, i.e. limit itself to 45 chars.</p>
157
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>handler</tt></i>:</span></td><td>char enconding transformation data structure</td></tr><tr><td><span class="term"><i><tt>out</tt></i>:</span></td><td>an <a href="libxml2-tree.html#xmlBuffer">xmlBuffer</a> for the output.</td></tr><tr><td><span class="term"><i><tt>in</tt></i>:</span></td><td>an <a href="libxml2-tree.html#xmlBuffer">xmlBuffer</a> for the input</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written if success, or -1 general error -2 if the transcoding fails (for *in is not valid utf8 string or the result of transformation can't fit into the encoding we want), or</td></tr></tbody></table></div></div>
158
- <hr/>
159
- <div class="refsect2" lang="en"><h3><a name="xmlCharEncInFunc"/>xmlCharEncInFunc ()</h3><pre class="programlisting">int xmlCharEncInFunc (<a href="libxml2-encoding.html#xmlCharEncodingHandler">xmlCharEncodingHandler</a> * handler, <br/> <a href="libxml2-tree.html#xmlBufferPtr">xmlBufferPtr</a> out, <br/> <a href="libxml2-tree.html#xmlBufferPtr">xmlBufferPtr</a> in)<br/>
160
- </pre><p>Generic front-end for the encoding handler input function</p>
161
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>handler</tt></i>:</span></td><td>char encoding transformation data structure</td></tr><tr><td><span class="term"><i><tt>out</tt></i>:</span></td><td>an <a href="libxml2-tree.html#xmlBuffer">xmlBuffer</a> for the output.</td></tr><tr><td><span class="term"><i><tt>in</tt></i>:</span></td><td>an <a href="libxml2-tree.html#xmlBuffer">xmlBuffer</a> for the input</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written if success, or -1 general error -2 if the transcoding fails (for *in is not valid utf8 string or the result of transformation can't fit into the encoding we want), or</td></tr></tbody></table></div></div>
162
- <hr/>
163
- <div class="refsect2" lang="en"><h3><a name="xmlCharEncOutFunc"/>xmlCharEncOutFunc ()</h3><pre class="programlisting">int xmlCharEncOutFunc (<a href="libxml2-encoding.html#xmlCharEncodingHandler">xmlCharEncodingHandler</a> * handler, <br/> <a href="libxml2-tree.html#xmlBufferPtr">xmlBufferPtr</a> out, <br/> <a href="libxml2-tree.html#xmlBufferPtr">xmlBufferPtr</a> in)<br/>
164
- </pre><p>Generic front-end for the encoding handler output function a first call with @in == NULL has to be made firs to initiate the output in case of non-stateless encoding needing to initiate their state or the output (like the BOM in UTF16). In case of UTF8 sequence conversion errors for the given encoder, the content will be automatically remapped to a CharRef sequence.</p>
165
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>handler</tt></i>:</span></td><td>char enconding transformation data structure</td></tr><tr><td><span class="term"><i><tt>out</tt></i>:</span></td><td>an <a href="libxml2-tree.html#xmlBuffer">xmlBuffer</a> for the output.</td></tr><tr><td><span class="term"><i><tt>in</tt></i>:</span></td><td>an <a href="libxml2-tree.html#xmlBuffer">xmlBuffer</a> for the input</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written if success, or -1 general error -2 if the transcoding fails (for *in is not valid utf8 string or the result of transformation can't fit into the encoding we want), or</td></tr></tbody></table></div></div>
166
- <hr/>
167
- <div class="refsect2" lang="en"><h3><a name="xmlCleanupCharEncodingHandlers"/>xmlCleanupCharEncodingHandlers ()</h3><pre class="programlisting">void xmlCleanupCharEncodingHandlers (void)<br/>
168
- </pre><p>Cleanup the memory allocated for the char encoding support, it unregisters all the encoding handlers and the aliases.</p>
169
- </div>
170
- <hr/>
171
- <div class="refsect2" lang="en"><h3><a name="xmlCleanupEncodingAliases"/>xmlCleanupEncodingAliases ()</h3><pre class="programlisting">void xmlCleanupEncodingAliases (void)<br/>
172
- </pre><p>Unregisters all aliases</p>
173
- </div>
174
- <hr/>
175
- <div class="refsect2" lang="en"><h3><a name="xmlDelEncodingAlias"/>xmlDelEncodingAlias ()</h3><pre class="programlisting">int xmlDelEncodingAlias (const char * alias)<br/>
176
- </pre><p>Unregisters an encoding alias @alias</p>
177
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>alias</tt></i>:</span></td><td>the alias name as parsed, in UTF-8 format (ASCII actually)</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 in case of success, -1 in case of error</td></tr></tbody></table></div></div>
178
- <hr/>
179
- <div class="refsect2" lang="en"><h3><a name="xmlDetectCharEncoding"/>xmlDetectCharEncoding ()</h3><pre class="programlisting"><a href="libxml2-encoding.html#xmlCharEncoding">xmlCharEncoding</a> xmlDetectCharEncoding (const unsigned char * in, <br/> int len)<br/>
180
- </pre><p>Guess the encoding of the entity using the first bytes of the entity content according to the non-normative appendix F of the XML-1.0 recommendation.</p>
181
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>in</tt></i>:</span></td><td>a pointer to the first bytes of the XML entity, must be at least 2 bytes long (at least 4 if encoding is UTF4 variant).</td></tr><tr><td><span class="term"><i><tt>len</tt></i>:</span></td><td>pointer to the length of the buffer</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>one of the XML_CHAR_ENCODING_... values.</td></tr></tbody></table></div></div>
182
- <hr/>
183
- <div class="refsect2" lang="en"><h3><a name="xmlFindCharEncodingHandler"/>xmlFindCharEncodingHandler ()</h3><pre class="programlisting"><a href="libxml2-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> xmlFindCharEncodingHandler (const char * name)<br/>
184
- </pre><p>Search in the registered set the handler able to read/write that encoding.</p>
185
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>a string describing the char encoding.</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the handler or NULL if not found</td></tr></tbody></table></div></div>
186
- <hr/>
187
- <div class="refsect2" lang="en"><h3><a name="xmlGetCharEncodingHandler"/>xmlGetCharEncodingHandler ()</h3><pre class="programlisting"><a href="libxml2-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> xmlGetCharEncodingHandler (<a href="libxml2-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc)<br/>
188
- </pre><p>Search in the registered set the handler able to read/write that encoding.</p>
189
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>enc</tt></i>:</span></td><td>an <a href="libxml2-encoding.html#xmlCharEncoding">xmlCharEncoding</a> value.</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the handler or NULL if not found</td></tr></tbody></table></div></div>
190
- <hr/>
191
- <div class="refsect2" lang="en"><h3><a name="xmlGetCharEncodingName"/>xmlGetCharEncodingName ()</h3><pre class="programlisting">const char * xmlGetCharEncodingName (<a href="libxml2-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc)<br/>
192
- </pre><p>The "canonical" name for XML encoding. C.f. http://www.w3.org/TR/REC-xml#charencoding Section 4.3.3 Character Encoding in Entities</p>
193
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>enc</tt></i>:</span></td><td>the encoding</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the canonical name for the given encoding</td></tr></tbody></table></div></div>
194
- <hr/>
195
- <div class="refsect2" lang="en"><h3><a name="xmlGetEncodingAlias"/>xmlGetEncodingAlias ()</h3><pre class="programlisting">const char * xmlGetEncodingAlias (const char * alias)<br/>
196
- </pre><p>Lookup an encoding name for the given alias.</p>
197
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>alias</tt></i>:</span></td><td>the alias name as parsed, in UTF-8 format (ASCII actually)</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>NULL if not found, otherwise the original name</td></tr></tbody></table></div></div>
198
- <hr/>
199
- <div class="refsect2" lang="en"><h3><a name="xmlInitCharEncodingHandlers"/>xmlInitCharEncodingHandlers ()</h3><pre class="programlisting">void xmlInitCharEncodingHandlers (void)<br/>
200
- </pre><p>Initialize the char encoding support, it registers the default encoding supported. NOTE: while public, this function usually doesn't need to be called in normal processing.</p>
201
- </div>
202
- <hr/>
203
- <div class="refsect2" lang="en"><h3><a name="xmlNewCharEncodingHandler"/>xmlNewCharEncodingHandler ()</h3><pre class="programlisting"><a href="libxml2-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> xmlNewCharEncodingHandler (const char * name, <br/> <a href="libxml2-encoding.html#xmlCharEncodingInputFunc">xmlCharEncodingInputFunc</a> input, <br/> <a href="libxml2-encoding.html#xmlCharEncodingOutputFunc">xmlCharEncodingOutputFunc</a> output)<br/>
204
- </pre><p>Create and registers an xmlCharEncodingHandler.</p>
205
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the encoding name, in UTF-8 format (ASCII actually)</td></tr><tr><td><span class="term"><i><tt>input</tt></i>:</span></td><td>the <a href="libxml2-encoding.html#xmlCharEncodingInputFunc">xmlCharEncodingInputFunc</a> to read that encoding</td></tr><tr><td><span class="term"><i><tt>output</tt></i>:</span></td><td>the <a href="libxml2-encoding.html#xmlCharEncodingOutputFunc">xmlCharEncodingOutputFunc</a> to write that encoding</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the <a href="libxml2-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> created (or NULL in case of error).</td></tr></tbody></table></div></div>
206
- <hr/>
207
- <div class="refsect2" lang="en"><h3><a name="xmlParseCharEncoding"/>xmlParseCharEncoding ()</h3><pre class="programlisting"><a href="libxml2-encoding.html#xmlCharEncoding">xmlCharEncoding</a> xmlParseCharEncoding (const char * name)<br/>
208
- </pre><p>Compare the string to the encoding schemes already known. Note that the comparison is case insensitive accordingly to the section [XML] 4.3.3 Character Encoding in Entities.</p>
209
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the encoding name as parsed, in UTF-8 format (ASCII actually)</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>one of the XML_CHAR_ENCODING_... values or <a href="libxml2-encoding.html#XML_CHAR_ENCODING_NONE">XML_CHAR_ENCODING_NONE</a> if not recognized.</td></tr></tbody></table></div></div>
210
- <hr/>
211
- <div class="refsect2" lang="en"><h3><a name="xmlRegisterCharEncodingHandler"/>xmlRegisterCharEncodingHandler ()</h3><pre class="programlisting">void xmlRegisterCharEncodingHandler (<a href="libxml2-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> handler)<br/>
212
- </pre><p>Register the char encoding handler, surprising, isn't it ?</p>
213
- <div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>handler</tt></i>:</span></td><td>the <a href="libxml2-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> handler block</td></tr></tbody></table></div></div>
214
- <hr/>
215
- </div>
216
- </div>
217
- </body>
218
- </html>