Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 280da2a01a3d16776505ea3f476de84f > files > 418

icu-doc-3.8.1-2mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ICU 3.8: ucnv_err.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<h1>ucnv_err.h File Reference</h1>C UConverter predefined error callbacks. <a href="#_details">More...</a>
<p>
<code>#include &quot;<a class="el" href="utypes_8h-source.html">unicode/utypes.h</a>&quot;</code><br>

<p>
<a href="ucnv__err_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structUConverterFromUnicodeArgs.html">UConverterFromUnicodeArgs</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The structure for the fromUnicode callback function parameter.  <a href="structUConverterFromUnicodeArgs.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structUConverterToUnicodeArgs.html">UConverterToUnicodeArgs</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The structure for the toUnicode callback function parameter.  <a href="structUConverterToUnicodeArgs.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#a8c288f6eb55d9ea66fea6c296b47028">UCNV_SUB_STOP_ON_ILLEGAL</a>&nbsp;&nbsp;&nbsp;&quot;i&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">FROM_U, TO_U context options for sub callback.  <a href="#a8c288f6eb55d9ea66fea6c296b47028"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#cc126b90eb4ad4c56a80a410cd2e6618">UCNV_SKIP_STOP_ON_ILLEGAL</a>&nbsp;&nbsp;&nbsp;&quot;i&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">FROM_U, TO_U context options for skip callback.  <a href="#cc126b90eb4ad4c56a80a410cd2e6618"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#c495873fd8482ea549bf3a69f05238e4">UCNV_ESCAPE_ICU</a>&nbsp;&nbsp;&nbsp;NULL</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to ICU (UXXXX).  <a href="#c495873fd8482ea549bf3a69f05238e4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#27a6288fd441632f5831059717edc8d0">UCNV_ESCAPE_JAVA</a>&nbsp;&nbsp;&nbsp;&quot;J&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to JAVA (\uXXXX).  <a href="#27a6288fd441632f5831059717edc8d0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#f009753d9ac156cc4f6d903750e19180">UCNV_ESCAPE_C</a>&nbsp;&nbsp;&nbsp;&quot;C&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to C (\uXXXX \UXXXXXXXX) TO_U_CALLBACK_ESCAPE option to escape the character value accoding to C (\xXXXX).  <a href="#f009753d9ac156cc4f6d903750e19180"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#5d8707ebd95f15f906a9cc09bc8d77f8">UCNV_ESCAPE_XML_DEC</a>&nbsp;&nbsp;&nbsp;&quot;D&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to XML Decimal escape  (&amp;#DDDD;) TO_U_CALLBACK_ESCAPE context option to escape the character value accoding to XML Decimal escape  (&amp;#DDDD;).  <a href="#5d8707ebd95f15f906a9cc09bc8d77f8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#02c50a2a3e9816a0c7a10e0255ab62af">UCNV_ESCAPE_XML_HEX</a>&nbsp;&nbsp;&nbsp;&quot;X&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to XML Hex escape  (&amp;#xXXXX;) TO_U_CALLBACK_ESCAPE context option to escape the character value accoding to XML Hex escape  (&amp;#xXXXX;).  <a href="#02c50a2a3e9816a0c7a10e0255ab62af"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#a869e106eab36abe55a280db2d8baafd">UCNV_ESCAPE_UNICODE</a>&nbsp;&nbsp;&nbsp;&quot;U&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">FROM_U_CALLBACK_ESCAPE context option to escape teh code unit according to Unicode (U+XXXXX).  <a href="#a869e106eab36abe55a280db2d8baafd"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="ucnv__err_8h.html#0c2dcfbf71ad577f5285869e1ceb26b1">UConverter</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#0c2dcfbf71ad577f5285869e1ceb26b1">UConverter</a></td></tr>

<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a> { <br>
&nbsp;&nbsp;<a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01af238357c53179269ee75cc7d34debb32">UCNV_UNASSIGNED</a> =  0, 
<a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a618bbe4096e7c602bc8479215a0887ed">UCNV_ILLEGAL</a> =  1, 
<a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a214a453e0f6abf7dbed73388ec98a0d4">UCNV_IRREGULAR</a> =  2, 
<a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a89548282ccc762b64c9ef81ee3322cc0">UCNV_RESET</a> =  3, 
<br>
&nbsp;&nbsp;<a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01ad0ea944d62e4f53f31d68c19f8afd662">UCNV_CLOSE</a> =  4, 
<a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01afaf767d3f63c2341d448b5e0315cac42">UCNV_CLONE</a> =  5
<br>
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The process condition code to be used with the callbacks.  <a href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#1e9f87a69d75288c0f93bd77a6f2c9db">UCNV_FROM_U_CALLBACK_STOP</a> (const void *<a class="el" href="ustring_8h.html#74d84f88a14c68a4e733d56943bf886a">context</a>, <a class="el" href="structUConverterFromUnicodeArgs.html">UConverterFromUnicodeArgs</a> *fromUArgs, const UChar *<a class="el" href="ucnv_8h.html#f021efe99e106506b38fce578f8a5313">codeUnits</a>, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> <a class="el" href="ucnv_8h.html#2b811fa5f6e9b580fa0122d38e9849b5">length</a>, <a class="el" href="umachine_8h.html#09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a> <a class="el" href="ucnv_8h.html#e70a5e13708a55a38c8b83046e32af6c">codePoint</a>, <a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a> <a class="el" href="ucnv_8h.html#0fa42b778680dd0d192f1a4982fd6812">reason</a>, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DO NOT CALL THIS FUNCTION DIRECTLY! This From Unicode callback STOPS at the ILLEGAL_SEQUENCE, returning the error code back to the caller immediately.  <a href="#1e9f87a69d75288c0f93bd77a6f2c9db"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#28e0f36c3873f1fc2ec17e3f62068822">UCNV_TO_U_CALLBACK_STOP</a> (const void *<a class="el" href="ustring_8h.html#74d84f88a14c68a4e733d56943bf886a">context</a>, <a class="el" href="structUConverterToUnicodeArgs.html">UConverterToUnicodeArgs</a> *toUArgs, const char *<a class="el" href="ucnv_8h.html#f021efe99e106506b38fce578f8a5313">codeUnits</a>, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> <a class="el" href="ucnv_8h.html#2b811fa5f6e9b580fa0122d38e9849b5">length</a>, <a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a> <a class="el" href="ucnv_8h.html#0fa42b778680dd0d192f1a4982fd6812">reason</a>, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DO NOT CALL THIS FUNCTION DIRECTLY! This To Unicode callback STOPS at the ILLEGAL_SEQUENCE, returning the error code back to the caller immediately.  <a href="#28e0f36c3873f1fc2ec17e3f62068822"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#04733e710f31b9a3094af40a89f131aa">UCNV_FROM_U_CALLBACK_SKIP</a> (const void *<a class="el" href="ustring_8h.html#74d84f88a14c68a4e733d56943bf886a">context</a>, <a class="el" href="structUConverterFromUnicodeArgs.html">UConverterFromUnicodeArgs</a> *fromUArgs, const UChar *<a class="el" href="ucnv_8h.html#f021efe99e106506b38fce578f8a5313">codeUnits</a>, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> <a class="el" href="ucnv_8h.html#2b811fa5f6e9b580fa0122d38e9849b5">length</a>, <a class="el" href="umachine_8h.html#09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a> <a class="el" href="ucnv_8h.html#e70a5e13708a55a38c8b83046e32af6c">codePoint</a>, <a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a> <a class="el" href="ucnv_8h.html#0fa42b778680dd0d192f1a4982fd6812">reason</a>, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DO NOT CALL THIS FUNCTION DIRECTLY! This From Unicode callback skips any ILLEGAL_SEQUENCE, or skips only UNASSINGED_SEQUENCE depending on the context parameter simply ignoring those characters.  <a href="#04733e710f31b9a3094af40a89f131aa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#beb5d13b73cfb87078e73fc328d3bedb">UCNV_FROM_U_CALLBACK_SUBSTITUTE</a> (const void *<a class="el" href="ustring_8h.html#74d84f88a14c68a4e733d56943bf886a">context</a>, <a class="el" href="structUConverterFromUnicodeArgs.html">UConverterFromUnicodeArgs</a> *fromUArgs, const UChar *<a class="el" href="ucnv_8h.html#f021efe99e106506b38fce578f8a5313">codeUnits</a>, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> <a class="el" href="ucnv_8h.html#2b811fa5f6e9b580fa0122d38e9849b5">length</a>, <a class="el" href="umachine_8h.html#09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a> <a class="el" href="ucnv_8h.html#e70a5e13708a55a38c8b83046e32af6c">codePoint</a>, <a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a> <a class="el" href="ucnv_8h.html#0fa42b778680dd0d192f1a4982fd6812">reason</a>, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DO NOT CALL THIS FUNCTION DIRECTLY! This From Unicode callback will Substitute the ILLEGAL SEQUENCE, or UNASSIGNED_SEQUENCE depending on context parameter, with the current substitution string for the converter.  <a href="#beb5d13b73cfb87078e73fc328d3bedb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#7491b95493c8cbc92030827e8fe3f118">UCNV_FROM_U_CALLBACK_ESCAPE</a> (const void *<a class="el" href="ustring_8h.html#74d84f88a14c68a4e733d56943bf886a">context</a>, <a class="el" href="structUConverterFromUnicodeArgs.html">UConverterFromUnicodeArgs</a> *fromUArgs, const UChar *<a class="el" href="ucnv_8h.html#f021efe99e106506b38fce578f8a5313">codeUnits</a>, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> <a class="el" href="ucnv_8h.html#2b811fa5f6e9b580fa0122d38e9849b5">length</a>, <a class="el" href="umachine_8h.html#09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a> <a class="el" href="ucnv_8h.html#e70a5e13708a55a38c8b83046e32af6c">codePoint</a>, <a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a> <a class="el" href="ucnv_8h.html#0fa42b778680dd0d192f1a4982fd6812">reason</a>, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DO NOT CALL THIS FUNCTION DIRECTLY! This From Unicode callback will Substitute the ILLEGAL SEQUENCE with the hexadecimal representation of the illegal codepoints.  <a href="#7491b95493c8cbc92030827e8fe3f118"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#f506570ede010370e14d0faaa2856345">UCNV_TO_U_CALLBACK_SKIP</a> (const void *<a class="el" href="ustring_8h.html#74d84f88a14c68a4e733d56943bf886a">context</a>, <a class="el" href="structUConverterToUnicodeArgs.html">UConverterToUnicodeArgs</a> *toUArgs, const char *<a class="el" href="ucnv_8h.html#f021efe99e106506b38fce578f8a5313">codeUnits</a>, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> <a class="el" href="ucnv_8h.html#2b811fa5f6e9b580fa0122d38e9849b5">length</a>, <a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a> <a class="el" href="ucnv_8h.html#0fa42b778680dd0d192f1a4982fd6812">reason</a>, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DO NOT CALL THIS FUNCTION DIRECTLY! This To Unicode callback skips any ILLEGAL_SEQUENCE, or skips only UNASSINGED_SEQUENCE depending on the context parameter simply ignoring those characters.  <a href="#f506570ede010370e14d0faaa2856345"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#d0fe791083c74b1a8d9e13c760619162">UCNV_TO_U_CALLBACK_SUBSTITUTE</a> (const void *<a class="el" href="ustring_8h.html#74d84f88a14c68a4e733d56943bf886a">context</a>, <a class="el" href="structUConverterToUnicodeArgs.html">UConverterToUnicodeArgs</a> *toUArgs, const char *<a class="el" href="ucnv_8h.html#f021efe99e106506b38fce578f8a5313">codeUnits</a>, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> <a class="el" href="ucnv_8h.html#2b811fa5f6e9b580fa0122d38e9849b5">length</a>, <a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a> <a class="el" href="ucnv_8h.html#0fa42b778680dd0d192f1a4982fd6812">reason</a>, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DO NOT CALL THIS FUNCTION DIRECTLY! This To Unicode callback will Substitute the ILLEGAL SEQUENCE,or UNASSIGNED_SEQUENCE depending on context parameter, with the Unicode substitution character, U+FFFD.  <a href="#d0fe791083c74b1a8d9e13c760619162"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ucnv__err_8h.html#63a4c59d5fb9d40b4f5e705b7800791c">UCNV_TO_U_CALLBACK_ESCAPE</a> (const void *<a class="el" href="ustring_8h.html#74d84f88a14c68a4e733d56943bf886a">context</a>, <a class="el" href="structUConverterToUnicodeArgs.html">UConverterToUnicodeArgs</a> *toUArgs, const char *<a class="el" href="ucnv_8h.html#f021efe99e106506b38fce578f8a5313">codeUnits</a>, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> <a class="el" href="ucnv_8h.html#2b811fa5f6e9b580fa0122d38e9849b5">length</a>, <a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a> <a class="el" href="ucnv_8h.html#0fa42b778680dd0d192f1a4982fd6812">reason</a>, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DO NOT CALL THIS FUNCTION DIRECTLY! This To Unicode callback will Substitute the ILLEGAL SEQUENCE with the hexadecimal representation of the illegal bytes (in the format XNN, e.g.  <a href="#63a4c59d5fb9d40b4f5e705b7800791c"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
C UConverter predefined error callbacks. 
<p>
<h2>Error Behaviour Functions</h2>
<p>
Defines some error behaviour functions called by ucnv_{from,to}Unicode These are provided as part of ICU and many are stable, but they can also be considered only as an example of what can be done with callbacks. You may of course write your own.<p>
If you want to write your own, you may also find the functions from <a class="el" href="ucnv__cb_8h.html">ucnv_cb.h</a> useful when writing your own callbacks.<p>
These functions, although public, should NEVER be called directly. They should be used as parameters to the ucnv_setFromUCallback and ucnv_setToUCallback functions, to set the behaviour of a converter when it encounters ILLEGAL/UNMAPPED/INVALID sequences.<p>
usage example: 'STOP' doesn't need any context, but newContext could be set to something other than 'NULL' if needed. The available contexts in this header can modify the default behavior of the callback.<p>
<div class="fragment"><pre class="fragment">  <a class="code" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> err = <a class="code" href="utypes_8h.html#3343c1c8a8377277046774691c98d78ca43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a>;
  <a class="code" href="ucnv__err_8h.html#0c2dcfbf71ad577f5285869e1ceb26b1">UConverter</a> *myConverter = <a class="code" href="ucnv_8h.html#485c78d4149165f504effa2287717e41">ucnv_open</a>(<span class="stringliteral">"ibm-949"</span>, &amp;err);
  <span class="keyword">const</span> <span class="keywordtype">void</span> *oldContext;
  UConverterFromUCallback oldAction;


  <span class="keywordflow">if</span> (<a class="code" href="utypes_8h.html#527f2c69e6b2e3b2c53ad8a99fb36711">U_SUCCESS</a>(err))
  {
      <a class="code" href="ucnv_8h.html#59fdaf2cf5dc57d738ed7a7657f6b03a">ucnv_setFromUCallBack</a>(myConverter,
                       <a class="code" href="ucnv__err_8h.html#1e9f87a69d75288c0f93bd77a6f2c9db">UCNV_FROM_U_CALLBACK_STOP</a>,
                       <a class="code" href="utypes_8h.html#070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>,
                       &amp;oldAction,
                       &amp;oldContext,
                       &amp;status);
  }
</pre></div><p>
The code above tells "myConverter" to stop when it encounters an ILLEGAL/TRUNCATED/INVALID sequences when it is used to convert from Unicode -&gt; Codepage. The behavior from Codepage to Unicode is not changed, and ucnv_setToUCallBack would need to be called in order to change that behavior too.<p>
Here is an example with a context:<p>
<div class="fragment"><pre class="fragment">  <a class="code" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> err = <a class="code" href="utypes_8h.html#3343c1c8a8377277046774691c98d78ca43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a>;
  <a class="code" href="ucnv__err_8h.html#0c2dcfbf71ad577f5285869e1ceb26b1">UConverter</a> *myConverter = <a class="code" href="ucnv_8h.html#485c78d4149165f504effa2287717e41">ucnv_open</a>(<span class="stringliteral">"ibm-949"</span>, &amp;err);
  <span class="keyword">const</span> <span class="keywordtype">void</span> *oldContext;
  UConverterFromUCallback oldAction;


  <span class="keywordflow">if</span> (<a class="code" href="utypes_8h.html#527f2c69e6b2e3b2c53ad8a99fb36711">U_SUCCESS</a>(err))
  {
      <a class="code" href="ucnv_8h.html#b1f96fe9de8e2ee39159f748a8d33a4b">ucnv_setToUCallBack</a>(myConverter,
                       <a class="code" href="ucnv__err_8h.html#d0fe791083c74b1a8d9e13c760619162">UCNV_TO_U_CALLBACK_SUBSTITUTE</a>,
                       <a class="code" href="ucnv__err_8h.html#a8c288f6eb55d9ea66fea6c296b47028">UCNV_SUB_STOP_ON_ILLEGAL</a>,
                       &amp;oldAction,
                       &amp;oldContext,
                       &amp;status);
  }
</pre></div><p>
The code above tells "myConverter" to stop when it encounters an ILLEGAL/TRUNCATED/INVALID sequences when it is used to convert from Codepage -&gt; Unicode. Any unmapped and legal characters will be substituted to be the default substitution character. 
<p>
Definition in file <a class="el" href="ucnv__err_8h-source.html">ucnv_err.h</a>.<hr><h2>Define Documentation</h2>
<a class="anchor" name="f009753d9ac156cc4f6d903750e19180"></a><!-- doxytag: member="ucnv_err.h::UCNV_ESCAPE_C" ref="f009753d9ac156cc4f6d903750e19180" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define UCNV_ESCAPE_C&nbsp;&nbsp;&nbsp;&quot;C&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to C (\uXXXX \UXXXXXXXX) TO_U_CALLBACK_ESCAPE option to escape the character value accoding to C (\xXXXX). 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001027">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="ucnv__err_8h-source.html#l00123">123</a> of file <a class="el" href="ucnv__err_8h-source.html">ucnv_err.h</a>.
</div>
</div><p>
<a class="anchor" name="c495873fd8482ea549bf3a69f05238e4"></a><!-- doxytag: member="ucnv_err.h::UCNV_ESCAPE_ICU" ref="c495873fd8482ea549bf3a69f05238e4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define UCNV_ESCAPE_ICU&nbsp;&nbsp;&nbsp;NULL          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to ICU (UXXXX). 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001025">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="ucnv__err_8h-source.html#l00112">112</a> of file <a class="el" href="ucnv__err_8h-source.html">ucnv_err.h</a>.
</div>
</div><p>
<a class="anchor" name="27a6288fd441632f5831059717edc8d0"></a><!-- doxytag: member="ucnv_err.h::UCNV_ESCAPE_JAVA" ref="27a6288fd441632f5831059717edc8d0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define UCNV_ESCAPE_JAVA&nbsp;&nbsp;&nbsp;&quot;J&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to JAVA (\uXXXX). 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001026">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="ucnv__err_8h-source.html#l00117">117</a> of file <a class="el" href="ucnv__err_8h-source.html">ucnv_err.h</a>.
</div>
</div><p>
<a class="anchor" name="a869e106eab36abe55a280db2d8baafd"></a><!-- doxytag: member="ucnv_err.h::UCNV_ESCAPE_UNICODE" ref="a869e106eab36abe55a280db2d8baafd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define UCNV_ESCAPE_UNICODE&nbsp;&nbsp;&nbsp;&quot;U&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
FROM_U_CALLBACK_ESCAPE context option to escape teh code unit according to Unicode (U+XXXXX). 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001030">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="ucnv__err_8h-source.html#l00140">140</a> of file <a class="el" href="ucnv__err_8h-source.html">ucnv_err.h</a>.
</div>
</div><p>
<a class="anchor" name="5d8707ebd95f15f906a9cc09bc8d77f8"></a><!-- doxytag: member="ucnv_err.h::UCNV_ESCAPE_XML_DEC" ref="5d8707ebd95f15f906a9cc09bc8d77f8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define UCNV_ESCAPE_XML_DEC&nbsp;&nbsp;&nbsp;&quot;D&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to XML Decimal escape  (&amp;#DDDD;) TO_U_CALLBACK_ESCAPE context option to escape the character value accoding to XML Decimal escape  (&amp;#DDDD;). 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001028">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="ucnv__err_8h-source.html#l00129">129</a> of file <a class="el" href="ucnv__err_8h-source.html">ucnv_err.h</a>.
</div>
</div><p>
<a class="anchor" name="02c50a2a3e9816a0c7a10e0255ab62af"></a><!-- doxytag: member="ucnv_err.h::UCNV_ESCAPE_XML_HEX" ref="02c50a2a3e9816a0c7a10e0255ab62af" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define UCNV_ESCAPE_XML_HEX&nbsp;&nbsp;&nbsp;&quot;X&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to XML Hex escape  (&amp;#xXXXX;) TO_U_CALLBACK_ESCAPE context option to escape the character value accoding to XML Hex escape  (&amp;#xXXXX;). 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001029">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="ucnv__err_8h-source.html#l00135">135</a> of file <a class="el" href="ucnv__err_8h-source.html">ucnv_err.h</a>.
</div>
</div><p>
<a class="anchor" name="cc126b90eb4ad4c56a80a410cd2e6618"></a><!-- doxytag: member="ucnv_err.h::UCNV_SKIP_STOP_ON_ILLEGAL" ref="cc126b90eb4ad4c56a80a410cd2e6618" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define UCNV_SKIP_STOP_ON_ILLEGAL&nbsp;&nbsp;&nbsp;&quot;i&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
FROM_U, TO_U context options for skip callback. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001024">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="ucnv__err_8h-source.html#l00106">106</a> of file <a class="el" href="ucnv__err_8h-source.html">ucnv_err.h</a>.
</div>
</div><p>
<a class="anchor" name="a8c288f6eb55d9ea66fea6c296b47028"></a><!-- doxytag: member="ucnv_err.h::UCNV_SUB_STOP_ON_ILLEGAL" ref="a8c288f6eb55d9ea66fea6c296b47028" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define UCNV_SUB_STOP_ON_ILLEGAL&nbsp;&nbsp;&nbsp;&quot;i&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
FROM_U, TO_U context options for sub callback. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001023">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="ucnv__err_8h-source.html#l00100">100</a> of file <a class="el" href="ucnv__err_8h-source.html">ucnv_err.h</a>.
</div>
</div><p>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="0c2dcfbf71ad577f5285869e1ceb26b1"></a><!-- doxytag: member="ucnv_err.h::UConverter" ref="0c2dcfbf71ad577f5285869e1ceb26b1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="ucnv__err_8h.html#0c2dcfbf71ad577f5285869e1ceb26b1">UConverter</a> <a class="el" href="ucnv__err_8h.html#0c2dcfbf71ad577f5285869e1ceb26b1">UConverter</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001022">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="ucnv__err_8h-source.html#l00094">94</a> of file <a class="el" href="ucnv__err_8h-source.html">ucnv_err.h</a>.
</div>
</div><p>
<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="19e1a4d55a7679634e84b241b00de01a"></a><!-- doxytag: member="ucnv_err.h::UConverterCallbackReason" ref="19e1a4d55a7679634e84b241b00de01a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The process condition code to be used with the callbacks. 
<p>
Codes which are greater than UCNV_IRREGULAR should be passed on to any chained callbacks. <dl compact><dt><b><a class="el" href="stable.html#_stable001031">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="19e1a4d55a7679634e84b241b00de01af238357c53179269ee75cc7d34debb32"></a><!-- doxytag: member="UCNV_UNASSIGNED" ref="19e1a4d55a7679634e84b241b00de01af238357c53179269ee75cc7d34debb32" args="" -->UCNV_UNASSIGNED</em>&nbsp;</td><td>
The code point is unassigned. 
<p>
The error code U_INVALID_CHAR_FOUND will be set. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19e1a4d55a7679634e84b241b00de01a618bbe4096e7c602bc8479215a0887ed"></a><!-- doxytag: member="UCNV_ILLEGAL" ref="19e1a4d55a7679634e84b241b00de01a618bbe4096e7c602bc8479215a0887ed" args="" -->UCNV_ILLEGAL</em>&nbsp;</td><td>
The code point is illegal. 
<p>
For example, \x81\x2E is illegal in SJIS because \x2E is not a valid trail byte for the \x81 lead byte. Also, starting with Unicode 3.0.1, non-shortest byte sequences in UTF-8 (like \xC1\xA1 instead of \x61 for U+0061) are also illegal, not just irregular. The error code U_ILLEGAL_CHAR_FOUND will be set. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19e1a4d55a7679634e84b241b00de01a214a453e0f6abf7dbed73388ec98a0d4"></a><!-- doxytag: member="UCNV_IRREGULAR" ref="19e1a4d55a7679634e84b241b00de01a214a453e0f6abf7dbed73388ec98a0d4" args="" -->UCNV_IRREGULAR</em>&nbsp;</td><td>
The codepoint is not a regular sequence in the encoding. 
<p>
For example, \xED\xA0\x80..\xED\xBF\xBF are irregular UTF-8 byte sequences for single surrogate code points. The error code U_INVALID_CHAR_FOUND will be set. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19e1a4d55a7679634e84b241b00de01a89548282ccc762b64c9ef81ee3322cc0"></a><!-- doxytag: member="UCNV_RESET" ref="19e1a4d55a7679634e84b241b00de01a89548282ccc762b64c9ef81ee3322cc0" args="" -->UCNV_RESET</em>&nbsp;</td><td>
The callback is called with this reason when a 'reset' has occured. 
<p>
Callback should reset all state. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19e1a4d55a7679634e84b241b00de01ad0ea944d62e4f53f31d68c19f8afd662"></a><!-- doxytag: member="UCNV_CLOSE" ref="19e1a4d55a7679634e84b241b00de01ad0ea944d62e4f53f31d68c19f8afd662" args="" -->UCNV_CLOSE</em>&nbsp;</td><td>
Called when the converter is closed. 
<p>
The callback should release any allocated memory. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19e1a4d55a7679634e84b241b00de01afaf767d3f63c2341d448b5e0315cac42"></a><!-- doxytag: member="UCNV_CLONE" ref="19e1a4d55a7679634e84b241b00de01afaf767d3f63c2341d448b5e0315cac42" args="" -->UCNV_CLONE</em>&nbsp;</td><td>
Called when <a class="el" href="ucnv_8h.html#11a66c267dce12a78dac2690d983d69e">ucnv_safeClone()</a> is called on the converter. 
<p>
the pointer available as the 'context' is an alias to the original converters' context pointer. If the context must be owned by the new converter, the callback must clone the data and call ucnv_setFromUCallback (or setToUCallback) with the correct pointer. <dl compact><dt><b><a class="el" href="stable.html#_stable001042">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="ucnv__err_8h-source.html#l00148">148</a> of file <a class="el" href="ucnv__err_8h-source.html">ucnv_err.h</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="7491b95493c8cbc92030827e8fe3f118"></a><!-- doxytag: member="ucnv_err.h::UCNV_FROM_U_CALLBACK_ESCAPE" ref="7491b95493c8cbc92030827e8fe3f118" args="(const void *context, UConverterFromUnicodeArgs *fromUArgs, const UChar *codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UCNV_FROM_U_CALLBACK_ESCAPE           </td>
          <td>(</td>
          <td class="paramtype">const void *&nbsp;</td>
          <td class="paramname"> <em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUConverterFromUnicodeArgs.html">UConverterFromUnicodeArgs</a> *&nbsp;</td>
          <td class="paramname"> <em>fromUArgs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>codeUnits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a>&nbsp;</td>
          <td class="paramname"> <em>codePoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a>&nbsp;</td>
          <td class="paramname"> <em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
DO NOT CALL THIS FUNCTION DIRECTLY! This From Unicode callback will Substitute the ILLEGAL SEQUENCE with the hexadecimal representation of the illegal codepoints. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The function currently recognizes the callback options: <ul>
<li>
UCNV_ESCAPE_ICU: Substitues the ILLEGAL SEQUENCE with the hexadecimal representation in the format UXXXX, e.g. "%uFFFE%u00AC%uC8FE"). In the Event the converter doesn't support the characters {%,U}[A-F][0-9], it will substitute the illegal sequence with the substitution characters. Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as UD84DUDC56 </li>
<li>
UCNV_ESCAPE_JAVA: Substitues the ILLEGAL SEQUENCE with the hexadecimal representation in the format \uXXXX, e.g. "\\uFFFE\\u00AC\\uC8FE"). In the Event the converter doesn't support the characters {\,u}[A-F][0-9], it will substitute the illegal sequence with the substitution characters. Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as \uD84D\uDC56 </li>
<li>
UCNV_ESCAPE_C: Substitues the ILLEGAL SEQUENCE with the hexadecimal representation in the format \uXXXX, e.g. "\\uFFFE\\u00AC\\uC8FE"). In the Event the converter doesn't support the characters {\,u,U}[A-F][0-9], it will substitute the illegal sequence with the substitution characters. Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as \U00023456 </li>
<li>
UCNV_ESCAPE_XML_DEC: Substitues the ILLEGAL SEQUENCE with the decimal representation in the format  &amp;#DDDDDDDD;, e.g. "&amp;#65534;&amp;#172;&amp;#51454;"). In the Event the converter doesn't support the characters {&amp;,#}[0-9], it will substitute the illegal sequence with the substitution characters. Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as &amp;#144470; and Zero padding is ignored. </li>
<li>
UCNV_ESCAPE_XML_HEX:Substitues the ILLEGAL SEQUENCE with the decimal representation in the format  &amp;#xXXXX; e.g. "&amp;#xFFFE;&amp;#x00AC;&amp;#xC8FE;"). In the Event the converter doesn't support the characters {&amp;,#,x}[0-9], it will substitute the illegal sequence with the substitution characters. Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as  &amp;#x23456; </li>
</ul>
</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fromUArgs</em>&nbsp;</td><td>Information about the conversion in progress </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codeUnits</em>&nbsp;</td><td>Points to 'length' UChars of the concerned Unicode sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>Size (in bytes) of the concerned codepage sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codePoint</em>&nbsp;</td><td>Single UChar32 (UTF-32) containing the concerend Unicode codepoint. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>reason</em>&nbsp;</td><td>Defines the reason the callback was invoked </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>Return value will be set to success if the callback was handled, otherwise this value will be set to a failure status. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001038">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="04733e710f31b9a3094af40a89f131aa"></a><!-- doxytag: member="ucnv_err.h::UCNV_FROM_U_CALLBACK_SKIP" ref="04733e710f31b9a3094af40a89f131aa" args="(const void *context, UConverterFromUnicodeArgs *fromUArgs, const UChar *codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UCNV_FROM_U_CALLBACK_SKIP           </td>
          <td>(</td>
          <td class="paramtype">const void *&nbsp;</td>
          <td class="paramname"> <em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUConverterFromUnicodeArgs.html">UConverterFromUnicodeArgs</a> *&nbsp;</td>
          <td class="paramname"> <em>fromUArgs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>codeUnits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a>&nbsp;</td>
          <td class="paramname"> <em>codePoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a>&nbsp;</td>
          <td class="paramname"> <em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
DO NOT CALL THIS FUNCTION DIRECTLY! This From Unicode callback skips any ILLEGAL_SEQUENCE, or skips only UNASSINGED_SEQUENCE depending on the context parameter simply ignoring those characters. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The function currently recognizes the callback options: UCNV_SKIP_STOP_ON_ILLEGAL: STOPS at the ILLEGAL_SEQUENCE, returning the error code back to the caller immediately. NULL: Skips any ILLEGAL_SEQUENCE </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fromUArgs</em>&nbsp;</td><td>Information about the conversion in progress </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codeUnits</em>&nbsp;</td><td>Points to 'length' UChars of the concerned Unicode sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>Size (in bytes) of the concerned codepage sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codePoint</em>&nbsp;</td><td>Single UChar32 (UTF-32) containing the concerend Unicode codepoint. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>reason</em>&nbsp;</td><td>Defines the reason the callback was invoked </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>Return value will be set to success if the callback was handled, otherwise this value will be set to a failure status. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001036">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="1e9f87a69d75288c0f93bd77a6f2c9db"></a><!-- doxytag: member="ucnv_err.h::UCNV_FROM_U_CALLBACK_STOP" ref="1e9f87a69d75288c0f93bd77a6f2c9db" args="(const void *context, UConverterFromUnicodeArgs *fromUArgs, const UChar *codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UCNV_FROM_U_CALLBACK_STOP           </td>
          <td>(</td>
          <td class="paramtype">const void *&nbsp;</td>
          <td class="paramname"> <em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUConverterFromUnicodeArgs.html">UConverterFromUnicodeArgs</a> *&nbsp;</td>
          <td class="paramname"> <em>fromUArgs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>codeUnits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a>&nbsp;</td>
          <td class="paramname"> <em>codePoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a>&nbsp;</td>
          <td class="paramname"> <em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
DO NOT CALL THIS FUNCTION DIRECTLY! This From Unicode callback STOPS at the ILLEGAL_SEQUENCE, returning the error code back to the caller immediately. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>Pointer to the callback's private data </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fromUArgs</em>&nbsp;</td><td>Information about the conversion in progress </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codeUnits</em>&nbsp;</td><td>Points to 'length' UChars of the concerned Unicode sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>Size (in bytes) of the concerned codepage sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codePoint</em>&nbsp;</td><td>Single UChar32 (UTF-32) containing the concerend Unicode codepoint. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>reason</em>&nbsp;</td><td>Defines the reason the callback was invoked </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>This should always be set to a failure status prior to calling. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001034">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="beb5d13b73cfb87078e73fc328d3bedb"></a><!-- doxytag: member="ucnv_err.h::UCNV_FROM_U_CALLBACK_SUBSTITUTE" ref="beb5d13b73cfb87078e73fc328d3bedb" args="(const void *context, UConverterFromUnicodeArgs *fromUArgs, const UChar *codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UCNV_FROM_U_CALLBACK_SUBSTITUTE           </td>
          <td>(</td>
          <td class="paramtype">const void *&nbsp;</td>
          <td class="paramname"> <em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUConverterFromUnicodeArgs.html">UConverterFromUnicodeArgs</a> *&nbsp;</td>
          <td class="paramname"> <em>fromUArgs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>codeUnits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a>&nbsp;</td>
          <td class="paramname"> <em>codePoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a>&nbsp;</td>
          <td class="paramname"> <em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
DO NOT CALL THIS FUNCTION DIRECTLY! This From Unicode callback will Substitute the ILLEGAL SEQUENCE, or UNASSIGNED_SEQUENCE depending on context parameter, with the current substitution string for the converter. 
<p>
This is the default callback.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The function currently recognizes the callback options: UCNV_SUB_STOP_ON_ILLEGAL: STOPS at the ILLEGAL_SEQUENCE, returning the error code back to the caller immediately. NULL: Substitutes any ILLEGAL_SEQUENCE </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fromUArgs</em>&nbsp;</td><td>Information about the conversion in progress </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codeUnits</em>&nbsp;</td><td>Points to 'length' UChars of the concerned Unicode sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>Size (in bytes) of the concerned codepage sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codePoint</em>&nbsp;</td><td>Single UChar32 (UTF-32) containing the concerend Unicode codepoint. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>reason</em>&nbsp;</td><td>Defines the reason the callback was invoked </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>Return value will be set to success if the callback was handled, otherwise this value will be set to a failure status. </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="ucnv_8h.html#c160b1b44ac9b5124ec083810709603a">ucnv_setSubstChars</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001037">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="63a4c59d5fb9d40b4f5e705b7800791c"></a><!-- doxytag: member="ucnv_err.h::UCNV_TO_U_CALLBACK_ESCAPE" ref="63a4c59d5fb9d40b4f5e705b7800791c" args="(const void *context, UConverterToUnicodeArgs *toUArgs, const char *codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UCNV_TO_U_CALLBACK_ESCAPE           </td>
          <td>(</td>
          <td class="paramtype">const void *&nbsp;</td>
          <td class="paramname"> <em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUConverterToUnicodeArgs.html">UConverterToUnicodeArgs</a> *&nbsp;</td>
          <td class="paramname"> <em>toUArgs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>codeUnits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a>&nbsp;</td>
          <td class="paramname"> <em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
DO NOT CALL THIS FUNCTION DIRECTLY! This To Unicode callback will Substitute the ILLEGAL SEQUENCE with the hexadecimal representation of the illegal bytes (in the format XNN, e.g. 
<p>
"%XFF%X0A%XC8%X03").<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>This function currently recognizes the callback options: UCNV_ESCAPE_ICU, UCNV_ESCAPE_JAVA, UCNV_ESCAPE_C, UCNV_ESCAPE_XML_DEC, UCNV_ESCAPE_XML_HEX and UCNV_ESCAPE_UNICODE. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>toUArgs</em>&nbsp;</td><td>Information about the conversion in progress </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codeUnits</em>&nbsp;</td><td>Points to 'length' bytes of the concerned codepage sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>Size (in bytes) of the concerned codepage sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>reason</em>&nbsp;</td><td>Defines the reason the callback was invoked </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>Return value will be set to success if the callback was handled, otherwise this value will be set to a failure status. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001041">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="f506570ede010370e14d0faaa2856345"></a><!-- doxytag: member="ucnv_err.h::UCNV_TO_U_CALLBACK_SKIP" ref="f506570ede010370e14d0faaa2856345" args="(const void *context, UConverterToUnicodeArgs *toUArgs, const char *codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UCNV_TO_U_CALLBACK_SKIP           </td>
          <td>(</td>
          <td class="paramtype">const void *&nbsp;</td>
          <td class="paramname"> <em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUConverterToUnicodeArgs.html">UConverterToUnicodeArgs</a> *&nbsp;</td>
          <td class="paramname"> <em>toUArgs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>codeUnits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a>&nbsp;</td>
          <td class="paramname"> <em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
DO NOT CALL THIS FUNCTION DIRECTLY! This To Unicode callback skips any ILLEGAL_SEQUENCE, or skips only UNASSINGED_SEQUENCE depending on the context parameter simply ignoring those characters. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The function currently recognizes the callback options: UCNV_SKIP_STOP_ON_ILLEGAL: STOPS at the ILLEGAL_SEQUENCE, returning the error code back to the caller immediately. NULL: Skips any ILLEGAL_SEQUENCE </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>toUArgs</em>&nbsp;</td><td>Information about the conversion in progress </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codeUnits</em>&nbsp;</td><td>Points to 'length' bytes of the concerned codepage sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>Size (in bytes) of the concerned codepage sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>reason</em>&nbsp;</td><td>Defines the reason the callback was invoked </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>Return value will be set to success if the callback was handled, otherwise this value will be set to a failure status. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001039">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="28e0f36c3873f1fc2ec17e3f62068822"></a><!-- doxytag: member="ucnv_err.h::UCNV_TO_U_CALLBACK_STOP" ref="28e0f36c3873f1fc2ec17e3f62068822" args="(const void *context, UConverterToUnicodeArgs *toUArgs, const char *codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UCNV_TO_U_CALLBACK_STOP           </td>
          <td>(</td>
          <td class="paramtype">const void *&nbsp;</td>
          <td class="paramname"> <em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUConverterToUnicodeArgs.html">UConverterToUnicodeArgs</a> *&nbsp;</td>
          <td class="paramname"> <em>toUArgs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>codeUnits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a>&nbsp;</td>
          <td class="paramname"> <em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
DO NOT CALL THIS FUNCTION DIRECTLY! This To Unicode callback STOPS at the ILLEGAL_SEQUENCE, returning the error code back to the caller immediately. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>Pointer to the callback's private data </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>toUArgs</em>&nbsp;</td><td>Information about the conversion in progress </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codeUnits</em>&nbsp;</td><td>Points to 'length' bytes of the concerned codepage sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>Size (in bytes) of the concerned codepage sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>reason</em>&nbsp;</td><td>Defines the reason the callback was invoked </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>This should always be set to a failure status prior to calling. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001035">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="d0fe791083c74b1a8d9e13c760619162"></a><!-- doxytag: member="ucnv_err.h::UCNV_TO_U_CALLBACK_SUBSTITUTE" ref="d0fe791083c74b1a8d9e13c760619162" args="(const void *context, UConverterToUnicodeArgs *toUArgs, const char *codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UCNV_TO_U_CALLBACK_SUBSTITUTE           </td>
          <td>(</td>
          <td class="paramtype">const void *&nbsp;</td>
          <td class="paramname"> <em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUConverterToUnicodeArgs.html">UConverterToUnicodeArgs</a> *&nbsp;</td>
          <td class="paramname"> <em>toUArgs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>codeUnits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucnv__err_8h.html#19e1a4d55a7679634e84b241b00de01a">UConverterCallbackReason</a>&nbsp;</td>
          <td class="paramname"> <em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
DO NOT CALL THIS FUNCTION DIRECTLY! This To Unicode callback will Substitute the ILLEGAL SEQUENCE,or UNASSIGNED_SEQUENCE depending on context parameter, with the Unicode substitution character, U+FFFD. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The function currently recognizes the callback options: UCNV_SUB_STOP_ON_ILLEGAL: STOPS at the ILLEGAL_SEQUENCE, returning the error code back to the caller immediately. NULL: Substitutes any ILLEGAL_SEQUENCE </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>toUArgs</em>&nbsp;</td><td>Information about the conversion in progress </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codeUnits</em>&nbsp;</td><td>Points to 'length' bytes of the concerned codepage sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>Size (in bytes) of the concerned codepage sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>reason</em>&nbsp;</td><td>Defines the reason the callback was invoked </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>Return value will be set to success if the callback was handled, otherwise this value will be set to a failure status. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001040">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 14 12:59:26 2007 for ICU 3.8 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>