You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

347 lines
19 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.9.1"/>
  7. <title>Xerces-C++: TranscodeToStr Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <div id="titlearea">
  16. <table cellspacing="0" cellpadding="0">
  17. <tbody>
  18. <tr style="height: 56px;">
  19. <td style="padding-left: 0.5em;">
  20. <div id="projectname">Xerces-C++
  21. &#160;<span id="projectnumber">3.1.2</span>
  22. </div>
  23. </td>
  24. </tr>
  25. </tbody>
  26. </table>
  27. </div>
  28. <!-- end header part -->
  29. <!-- Generated by Doxygen 1.8.9.1 -->
  30. <div id="navrow1" class="tabs">
  31. <ul class="tablist">
  32. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  33. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  34. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  35. <li><a href="files.html"><span>Files</span></a></li>
  36. </ul>
  37. </div>
  38. <div id="navrow2" class="tabs2">
  39. <ul class="tablist">
  40. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  41. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  42. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  43. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  44. </ul>
  45. </div>
  46. </div><!-- top -->
  47. <div class="header">
  48. <div class="summary">
  49. <a href="#pub-methods">Public Member Functions</a> &#124;
  50. <a href="classTranscodeToStr-members.html">List of all members</a> </div>
  51. <div class="headertitle">
  52. <div class="title">TranscodeToStr Class Reference</div> </div>
  53. </div><!--header-->
  54. <div class="contents">
  55. <table class="memberdecls">
  56. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  57. Public Member Functions</h2></td></tr>
  58. <tr class="memitem:aa00e7a5816900e3b5f943d9fec339507"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeToStr.html#aa00e7a5816900e3b5f943d9fec339507">TranscodeToStr</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *in, const char *encoding, <a class="el" href="classMemoryManager.html">MemoryManager</a> *manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
  59. <tr class="memdesc:aa00e7a5816900e3b5f943d9fec339507"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts from the internal XMLCh* encoding to the specified encoding. <a href="#aa00e7a5816900e3b5f943d9fec339507">More...</a><br /></td></tr>
  60. <tr class="separator:aa00e7a5816900e3b5f943d9fec339507"><td class="memSeparator" colspan="2">&#160;</td></tr>
  61. <tr class="memitem:abd3959393c6b4de14d4878241c960319"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeToStr.html#abd3959393c6b4de14d4878241c960319">TranscodeToStr</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *in, <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> <a class="el" href="classTranscodeToStr.html#a23c2fc62aa22d773c7d5f16ca42d5370">length</a>, const char *encoding, <a class="el" href="classMemoryManager.html">MemoryManager</a> *manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
  62. <tr class="memdesc:abd3959393c6b4de14d4878241c960319"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts from the internal XMLCh* encoding to the specified encoding. <a href="#abd3959393c6b4de14d4878241c960319">More...</a><br /></td></tr>
  63. <tr class="separator:abd3959393c6b4de14d4878241c960319"><td class="memSeparator" colspan="2">&#160;</td></tr>
  64. <tr class="memitem:a936f5e6a894606dcc47ce167f4ebefe6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeToStr.html#a936f5e6a894606dcc47ce167f4ebefe6">TranscodeToStr</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *in, <a class="el" href="classXMLTranscoder.html">XMLTranscoder</a> *trans, <a class="el" href="classMemoryManager.html">MemoryManager</a> *manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
  65. <tr class="memdesc:a936f5e6a894606dcc47ce167f4ebefe6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts from the internal XMLCh* encoding to the specified encoding. <a href="#a936f5e6a894606dcc47ce167f4ebefe6">More...</a><br /></td></tr>
  66. <tr class="separator:a936f5e6a894606dcc47ce167f4ebefe6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  67. <tr class="memitem:af4a9c3a1d6282c135cabed5b1a060fde"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeToStr.html#af4a9c3a1d6282c135cabed5b1a060fde">TranscodeToStr</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *in, <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> <a class="el" href="classTranscodeToStr.html#a23c2fc62aa22d773c7d5f16ca42d5370">length</a>, <a class="el" href="classXMLTranscoder.html">XMLTranscoder</a> *trans, <a class="el" href="classMemoryManager.html">MemoryManager</a> *manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
  68. <tr class="memdesc:af4a9c3a1d6282c135cabed5b1a060fde"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts from the internal XMLCh* encoding to the specified encoding. <a href="#af4a9c3a1d6282c135cabed5b1a060fde">More...</a><br /></td></tr>
  69. <tr class="separator:af4a9c3a1d6282c135cabed5b1a060fde"><td class="memSeparator" colspan="2">&#160;</td></tr>
  70. <tr class="memitem:a5227b85920f66868f613148f8445a422"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeToStr.html#a5227b85920f66868f613148f8445a422">~TranscodeToStr</a> ()</td></tr>
  71. <tr class="separator:a5227b85920f66868f613148f8445a422"><td class="memSeparator" colspan="2">&#160;</td></tr>
  72. <tr><td colspan="2"><div class="groupHeader">Getter methods</div></td></tr>
  73. <tr class="memitem:a9bd4b0444193bc0e82329ec359d25b66"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeToStr.html#a9bd4b0444193bc0e82329ec359d25b66">str</a> () const </td></tr>
  74. <tr class="memdesc:a9bd4b0444193bc0e82329ec359d25b66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the transcoded, null terminated string. <a href="#a9bd4b0444193bc0e82329ec359d25b66">More...</a><br /></td></tr>
  75. <tr class="separator:a9bd4b0444193bc0e82329ec359d25b66"><td class="memSeparator" colspan="2">&#160;</td></tr>
  76. <tr class="memitem:a163e9159b1f5a0131aee5c08e1a7f16c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeToStr.html#a163e9159b1f5a0131aee5c08e1a7f16c">adopt</a> ()</td></tr>
  77. <tr class="memdesc:a163e9159b1f5a0131aee5c08e1a7f16c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the transcoded, null terminated string - adopting the memory allocated to it from the <a class="el" href="classTranscodeToStr.html">TranscodeToStr</a> object. <a href="#a163e9159b1f5a0131aee5c08e1a7f16c">More...</a><br /></td></tr>
  78. <tr class="separator:a163e9159b1f5a0131aee5c08e1a7f16c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  79. <tr class="memitem:a23c2fc62aa22d773c7d5f16ca42d5370"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeToStr.html#a23c2fc62aa22d773c7d5f16ca42d5370">length</a> () const </td></tr>
  80. <tr class="memdesc:a23c2fc62aa22d773c7d5f16ca42d5370"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the length of the transcoded string in bytes. <a href="#a23c2fc62aa22d773c7d5f16ca42d5370">More...</a><br /></td></tr>
  81. <tr class="separator:a23c2fc62aa22d773c7d5f16ca42d5370"><td class="memSeparator" colspan="2">&#160;</td></tr>
  82. </table>
  83. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  84. <a class="anchor" id="aa00e7a5816900e3b5f943d9fec339507"></a>
  85. <div class="memitem">
  86. <div class="memproto">
  87. <table class="memname">
  88. <tr>
  89. <td class="memname">TranscodeToStr::TranscodeToStr </td>
  90. <td>(</td>
  91. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td>
  92. <td class="paramname"><em>in</em>, </td>
  93. </tr>
  94. <tr>
  95. <td class="paramkey"></td>
  96. <td></td>
  97. <td class="paramtype">const char *&#160;</td>
  98. <td class="paramname"><em>encoding</em>, </td>
  99. </tr>
  100. <tr>
  101. <td class="paramkey"></td>
  102. <td></td>
  103. <td class="paramtype"><a class="el" href="classMemoryManager.html">MemoryManager</a> *&#160;</td>
  104. <td class="paramname"><em>manager</em> = <code><a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a></code>&#160;</td>
  105. </tr>
  106. <tr>
  107. <td></td>
  108. <td>)</td>
  109. <td></td><td></td>
  110. </tr>
  111. </table>
  112. </div><div class="memdoc">
  113. <p>Converts from the internal XMLCh* encoding to the specified encoding. </p>
  114. <dl class="params"><dt>Parameters</dt><dd>
  115. <table class="params">
  116. <tr><td class="paramname">in</td><td>the null terminated source buffer to be transcoded </td></tr>
  117. <tr><td class="paramname">encoding</td><td>the name of the encoding to transcode to </td></tr>
  118. <tr><td class="paramname">manager</td><td>the memory manager to use </td></tr>
  119. </table>
  120. </dd>
  121. </dl>
  122. </div>
  123. </div>
  124. <a class="anchor" id="abd3959393c6b4de14d4878241c960319"></a>
  125. <div class="memitem">
  126. <div class="memproto">
  127. <table class="memname">
  128. <tr>
  129. <td class="memname">TranscodeToStr::TranscodeToStr </td>
  130. <td>(</td>
  131. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td>
  132. <td class="paramname"><em>in</em>, </td>
  133. </tr>
  134. <tr>
  135. <td class="paramkey"></td>
  136. <td></td>
  137. <td class="paramtype"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
  138. <td class="paramname"><em>length</em>, </td>
  139. </tr>
  140. <tr>
  141. <td class="paramkey"></td>
  142. <td></td>
  143. <td class="paramtype">const char *&#160;</td>
  144. <td class="paramname"><em>encoding</em>, </td>
  145. </tr>
  146. <tr>
  147. <td class="paramkey"></td>
  148. <td></td>
  149. <td class="paramtype"><a class="el" href="classMemoryManager.html">MemoryManager</a> *&#160;</td>
  150. <td class="paramname"><em>manager</em> = <code><a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a></code>&#160;</td>
  151. </tr>
  152. <tr>
  153. <td></td>
  154. <td>)</td>
  155. <td></td><td></td>
  156. </tr>
  157. </table>
  158. </div><div class="memdoc">
  159. <p>Converts from the internal XMLCh* encoding to the specified encoding. </p>
  160. <dl class="params"><dt>Parameters</dt><dd>
  161. <table class="params">
  162. <tr><td class="paramname">in</td><td>the source buffer to be transcoded </td></tr>
  163. <tr><td class="paramname">length</td><td>the length of the source buffer </td></tr>
  164. <tr><td class="paramname">encoding</td><td>the name of the encoding to transcode to </td></tr>
  165. <tr><td class="paramname">manager</td><td>the memory manager to use </td></tr>
  166. </table>
  167. </dd>
  168. </dl>
  169. </div>
  170. </div>
  171. <a class="anchor" id="a936f5e6a894606dcc47ce167f4ebefe6"></a>
  172. <div class="memitem">
  173. <div class="memproto">
  174. <table class="memname">
  175. <tr>
  176. <td class="memname">TranscodeToStr::TranscodeToStr </td>
  177. <td>(</td>
  178. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td>
  179. <td class="paramname"><em>in</em>, </td>
  180. </tr>
  181. <tr>
  182. <td class="paramkey"></td>
  183. <td></td>
  184. <td class="paramtype"><a class="el" href="classXMLTranscoder.html">XMLTranscoder</a> *&#160;</td>
  185. <td class="paramname"><em>trans</em>, </td>
  186. </tr>
  187. <tr>
  188. <td class="paramkey"></td>
  189. <td></td>
  190. <td class="paramtype"><a class="el" href="classMemoryManager.html">MemoryManager</a> *&#160;</td>
  191. <td class="paramname"><em>manager</em> = <code><a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a></code>&#160;</td>
  192. </tr>
  193. <tr>
  194. <td></td>
  195. <td>)</td>
  196. <td></td><td></td>
  197. </tr>
  198. </table>
  199. </div><div class="memdoc">
  200. <p>Converts from the internal XMLCh* encoding to the specified encoding. </p>
  201. <dl class="params"><dt>Parameters</dt><dd>
  202. <table class="params">
  203. <tr><td class="paramname">in</td><td>the null terminated source buffer to be transcoded </td></tr>
  204. <tr><td class="paramname">trans</td><td>the transcoder to use </td></tr>
  205. <tr><td class="paramname">manager</td><td>the memory manager to use </td></tr>
  206. </table>
  207. </dd>
  208. </dl>
  209. </div>
  210. </div>
  211. <a class="anchor" id="af4a9c3a1d6282c135cabed5b1a060fde"></a>
  212. <div class="memitem">
  213. <div class="memproto">
  214. <table class="memname">
  215. <tr>
  216. <td class="memname">TranscodeToStr::TranscodeToStr </td>
  217. <td>(</td>
  218. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td>
  219. <td class="paramname"><em>in</em>, </td>
  220. </tr>
  221. <tr>
  222. <td class="paramkey"></td>
  223. <td></td>
  224. <td class="paramtype"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
  225. <td class="paramname"><em>length</em>, </td>
  226. </tr>
  227. <tr>
  228. <td class="paramkey"></td>
  229. <td></td>
  230. <td class="paramtype"><a class="el" href="classXMLTranscoder.html">XMLTranscoder</a> *&#160;</td>
  231. <td class="paramname"><em>trans</em>, </td>
  232. </tr>
  233. <tr>
  234. <td class="paramkey"></td>
  235. <td></td>
  236. <td class="paramtype"><a class="el" href="classMemoryManager.html">MemoryManager</a> *&#160;</td>
  237. <td class="paramname"><em>manager</em> = <code><a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a></code>&#160;</td>
  238. </tr>
  239. <tr>
  240. <td></td>
  241. <td>)</td>
  242. <td></td><td></td>
  243. </tr>
  244. </table>
  245. </div><div class="memdoc">
  246. <p>Converts from the internal XMLCh* encoding to the specified encoding. </p>
  247. <dl class="params"><dt>Parameters</dt><dd>
  248. <table class="params">
  249. <tr><td class="paramname">in</td><td>the source buffer to be transcoded </td></tr>
  250. <tr><td class="paramname">length</td><td>the length of the source buffer </td></tr>
  251. <tr><td class="paramname">trans</td><td>the transcoder to use </td></tr>
  252. <tr><td class="paramname">manager</td><td>the memory manager to use </td></tr>
  253. </table>
  254. </dd>
  255. </dl>
  256. </div>
  257. </div>
  258. <a class="anchor" id="a5227b85920f66868f613148f8445a422"></a>
  259. <div class="memitem">
  260. <div class="memproto">
  261. <table class="memname">
  262. <tr>
  263. <td class="memname">TranscodeToStr::~TranscodeToStr </td>
  264. <td>(</td>
  265. <td class="paramname"></td><td>)</td>
  266. <td></td>
  267. </tr>
  268. </table>
  269. </div><div class="memdoc">
  270. </div>
  271. </div>
  272. <h2 class="groupheader">Member Function Documentation</h2>
  273. <a class="anchor" id="a163e9159b1f5a0131aee5c08e1a7f16c"></a>
  274. <div class="memitem">
  275. <div class="memproto">
  276. <table class="memname">
  277. <tr>
  278. <td class="memname"><a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> * TranscodeToStr::adopt </td>
  279. <td>(</td>
  280. <td class="paramname"></td><td>)</td>
  281. <td></td>
  282. </tr>
  283. </table>
  284. </div><div class="memdoc">
  285. <p>Returns the transcoded, null terminated string - adopting the memory allocated to it from the <a class="el" href="classTranscodeToStr.html">TranscodeToStr</a> object. </p>
  286. <dl class="section return"><dt>Returns</dt><dd>the transcoded string </dd></dl>
  287. </div>
  288. </div>
  289. <a class="anchor" id="a23c2fc62aa22d773c7d5f16ca42d5370"></a>
  290. <div class="memitem">
  291. <div class="memproto">
  292. <table class="memname">
  293. <tr>
  294. <td class="memname"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> TranscodeToStr::length </td>
  295. <td>(</td>
  296. <td class="paramname"></td><td>)</td>
  297. <td> const</td>
  298. </tr>
  299. </table>
  300. </div><div class="memdoc">
  301. <p>Returns the length of the transcoded string in bytes. </p>
  302. <p>The length does not include the null terminator. </p><dl class="section return"><dt>Returns</dt><dd>the length of the transcoded string in bytes </dd></dl>
  303. </div>
  304. </div>
  305. <a class="anchor" id="a9bd4b0444193bc0e82329ec359d25b66"></a>
  306. <div class="memitem">
  307. <div class="memproto">
  308. <table class="memname">
  309. <tr>
  310. <td class="memname">const <a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> * TranscodeToStr::str </td>
  311. <td>(</td>
  312. <td class="paramname"></td><td>)</td>
  313. <td> const</td>
  314. </tr>
  315. </table>
  316. </div><div class="memdoc">
  317. <p>Returns the transcoded, null terminated string. </p>
  318. <dl class="section return"><dt>Returns</dt><dd>the transcoded string </dd></dl>
  319. </div>
  320. </div>
  321. <hr/>The documentation for this class was generated from the following file:<ul>
  322. <li><a class="el" href="TransService_8hpp_source.html">TransService.hpp</a></li>
  323. </ul>
  324. </div><!-- contents -->
  325. <!-- start footer part -->
  326. <hr class="footer"/><address class="footer"><small>
  327. Generated on Wed Mar 18 2015 10:43:38 for Xerces-C++ by &#160;<a href="http://www.doxygen.org/index.html">
  328. <img class="footer" src="doxygen.png" alt="doxygen"/>
  329. </a> 1.8.9.1
  330. </small></address>
  331. </body>
  332. </html>