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.

257 lines
14 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++: TranscodeFromStr 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="classTranscodeFromStr-members.html">List of all members</a> </div>
  51. <div class="headertitle">
  52. <div class="title">TranscodeFromStr 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:af32eda8fd2a468a9b8be645cd239247f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeFromStr.html#af32eda8fd2a468a9b8be645cd239247f">TranscodeFromStr</a> (const <a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> *data, <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> <a class="el" href="classTranscodeFromStr.html#a2b70e681ce817ad7bf05a3f0007a955f">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>
  59. <tr class="memdesc:af32eda8fd2a468a9b8be645cd239247f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts from the specified encoding to the internal XMLCh* encoding. <a href="#af32eda8fd2a468a9b8be645cd239247f">More...</a><br /></td></tr>
  60. <tr class="separator:af32eda8fd2a468a9b8be645cd239247f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  61. <tr class="memitem:a91658e2b2a71aa75900ec8b2f1d3798c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeFromStr.html#a91658e2b2a71aa75900ec8b2f1d3798c">TranscodeFromStr</a> (const <a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> *data, <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> <a class="el" href="classTranscodeFromStr.html#a2b70e681ce817ad7bf05a3f0007a955f">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>
  62. <tr class="memdesc:a91658e2b2a71aa75900ec8b2f1d3798c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts from the specified encoding to the internal XMLCh* encoding. <a href="#a91658e2b2a71aa75900ec8b2f1d3798c">More...</a><br /></td></tr>
  63. <tr class="separator:a91658e2b2a71aa75900ec8b2f1d3798c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  64. <tr class="memitem:a798acc4a2edf576ff16406361beecfe0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeFromStr.html#a798acc4a2edf576ff16406361beecfe0">~TranscodeFromStr</a> ()</td></tr>
  65. <tr class="separator:a798acc4a2edf576ff16406361beecfe0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  66. <tr><td colspan="2"><div class="groupHeader">Getter methods</div></td></tr>
  67. <tr class="memitem:a2326c1a76998edfd42a6d2afdbea58fa"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeFromStr.html#a2326c1a76998edfd42a6d2afdbea58fa">str</a> () const </td></tr>
  68. <tr class="memdesc:a2326c1a76998edfd42a6d2afdbea58fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the transcoded, null terminated string. <a href="#a2326c1a76998edfd42a6d2afdbea58fa">More...</a><br /></td></tr>
  69. <tr class="separator:a2326c1a76998edfd42a6d2afdbea58fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  70. <tr class="memitem:a7124c41c32ef7b5ae9504ae26afe8b26"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTranscodeFromStr.html#a7124c41c32ef7b5ae9504ae26afe8b26">adopt</a> ()</td></tr>
  71. <tr class="memdesc:a7124c41c32ef7b5ae9504ae26afe8b26"><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="classTranscodeFromStr.html">TranscodeFromStr</a> object. <a href="#a7124c41c32ef7b5ae9504ae26afe8b26">More...</a><br /></td></tr>
  72. <tr class="separator:a7124c41c32ef7b5ae9504ae26afe8b26"><td class="memSeparator" colspan="2">&#160;</td></tr>
  73. <tr class="memitem:a2b70e681ce817ad7bf05a3f0007a955f"><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="classTranscodeFromStr.html#a2b70e681ce817ad7bf05a3f0007a955f">length</a> () const </td></tr>
  74. <tr class="memdesc:a2b70e681ce817ad7bf05a3f0007a955f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the length of the transcoded string in characters. <a href="#a2b70e681ce817ad7bf05a3f0007a955f">More...</a><br /></td></tr>
  75. <tr class="separator:a2b70e681ce817ad7bf05a3f0007a955f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  76. </table>
  77. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  78. <a class="anchor" id="af32eda8fd2a468a9b8be645cd239247f"></a>
  79. <div class="memitem">
  80. <div class="memproto">
  81. <table class="memname">
  82. <tr>
  83. <td class="memname">TranscodeFromStr::TranscodeFromStr </td>
  84. <td>(</td>
  85. <td class="paramtype">const <a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> *&#160;</td>
  86. <td class="paramname"><em>data</em>, </td>
  87. </tr>
  88. <tr>
  89. <td class="paramkey"></td>
  90. <td></td>
  91. <td class="paramtype"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
  92. <td class="paramname"><em>length</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 specified encoding to the internal XMLCh* encoding. </p>
  114. <dl class="params"><dt>Parameters</dt><dd>
  115. <table class="params">
  116. <tr><td class="paramname">data</td><td>the source buffer to be transcoded </td></tr>
  117. <tr><td class="paramname">length</td><td>the length of the source buffer </td></tr>
  118. <tr><td class="paramname">encoding</td><td>the name of the encoding to transcode to </td></tr>
  119. <tr><td class="paramname">manager</td><td>the memory manager to use </td></tr>
  120. </table>
  121. </dd>
  122. </dl>
  123. </div>
  124. </div>
  125. <a class="anchor" id="a91658e2b2a71aa75900ec8b2f1d3798c"></a>
  126. <div class="memitem">
  127. <div class="memproto">
  128. <table class="memname">
  129. <tr>
  130. <td class="memname">TranscodeFromStr::TranscodeFromStr </td>
  131. <td>(</td>
  132. <td class="paramtype">const <a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> *&#160;</td>
  133. <td class="paramname"><em>data</em>, </td>
  134. </tr>
  135. <tr>
  136. <td class="paramkey"></td>
  137. <td></td>
  138. <td class="paramtype"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
  139. <td class="paramname"><em>length</em>, </td>
  140. </tr>
  141. <tr>
  142. <td class="paramkey"></td>
  143. <td></td>
  144. <td class="paramtype"><a class="el" href="classXMLTranscoder.html">XMLTranscoder</a> *&#160;</td>
  145. <td class="paramname"><em>trans</em>, </td>
  146. </tr>
  147. <tr>
  148. <td class="paramkey"></td>
  149. <td></td>
  150. <td class="paramtype"><a class="el" href="classMemoryManager.html">MemoryManager</a> *&#160;</td>
  151. <td class="paramname"><em>manager</em> = <code><a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a></code>&#160;</td>
  152. </tr>
  153. <tr>
  154. <td></td>
  155. <td>)</td>
  156. <td></td><td></td>
  157. </tr>
  158. </table>
  159. </div><div class="memdoc">
  160. <p>Converts from the specified encoding to the internal XMLCh* encoding. </p>
  161. <dl class="params"><dt>Parameters</dt><dd>
  162. <table class="params">
  163. <tr><td class="paramname">data</td><td>the source buffer to be transcoded </td></tr>
  164. <tr><td class="paramname">length</td><td>the length of the source buffer </td></tr>
  165. <tr><td class="paramname">trans</td><td>the transcoder to use </td></tr>
  166. <tr><td class="paramname">manager</td><td>the memory manager to use </td></tr>
  167. </table>
  168. </dd>
  169. </dl>
  170. </div>
  171. </div>
  172. <a class="anchor" id="a798acc4a2edf576ff16406361beecfe0"></a>
  173. <div class="memitem">
  174. <div class="memproto">
  175. <table class="memname">
  176. <tr>
  177. <td class="memname">TranscodeFromStr::~TranscodeFromStr </td>
  178. <td>(</td>
  179. <td class="paramname"></td><td>)</td>
  180. <td></td>
  181. </tr>
  182. </table>
  183. </div><div class="memdoc">
  184. </div>
  185. </div>
  186. <h2 class="groupheader">Member Function Documentation</h2>
  187. <a class="anchor" id="a7124c41c32ef7b5ae9504ae26afe8b26"></a>
  188. <div class="memitem">
  189. <div class="memproto">
  190. <table class="memname">
  191. <tr>
  192. <td class="memname"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * TranscodeFromStr::adopt </td>
  193. <td>(</td>
  194. <td class="paramname"></td><td>)</td>
  195. <td></td>
  196. </tr>
  197. </table>
  198. </div><div class="memdoc">
  199. <p>Returns the transcoded, null terminated string - adopting the memory allocated to it from the <a class="el" href="classTranscodeFromStr.html">TranscodeFromStr</a> object. </p>
  200. <dl class="section return"><dt>Returns</dt><dd>the transcoded string </dd></dl>
  201. </div>
  202. </div>
  203. <a class="anchor" id="a2b70e681ce817ad7bf05a3f0007a955f"></a>
  204. <div class="memitem">
  205. <div class="memproto">
  206. <table class="memname">
  207. <tr>
  208. <td class="memname"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> TranscodeFromStr::length </td>
  209. <td>(</td>
  210. <td class="paramname"></td><td>)</td>
  211. <td> const</td>
  212. </tr>
  213. </table>
  214. </div><div class="memdoc">
  215. <p>Returns the length of the transcoded string in characters. </p>
  216. <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 characters </dd></dl>
  217. </div>
  218. </div>
  219. <a class="anchor" id="a2326c1a76998edfd42a6d2afdbea58fa"></a>
  220. <div class="memitem">
  221. <div class="memproto">
  222. <table class="memname">
  223. <tr>
  224. <td class="memname">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * TranscodeFromStr::str </td>
  225. <td>(</td>
  226. <td class="paramname"></td><td>)</td>
  227. <td> const</td>
  228. </tr>
  229. </table>
  230. </div><div class="memdoc">
  231. <p>Returns the transcoded, null terminated string. </p>
  232. <dl class="section return"><dt>Returns</dt><dd>the transcoded string </dd></dl>
  233. </div>
  234. </div>
  235. <hr/>The documentation for this class was generated from the following file:<ul>
  236. <li><a class="el" href="TransService_8hpp_source.html">TransService.hpp</a></li>
  237. </ul>
  238. </div><!-- contents -->
  239. <!-- start footer part -->
  240. <hr class="footer"/><address class="footer"><small>
  241. Generated on Wed Mar 18 2015 10:43:38 for Xerces-C++ by &#160;<a href="http://www.doxygen.org/index.html">
  242. <img class="footer" src="doxygen.png" alt="doxygen"/>
  243. </a> 1.8.9.1
  244. </small></address>
  245. </body>
  246. </html>