Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 34ae14235711d1471f043ac894a061f9 > files > 466

libicu-doc-3.6-5.16.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.6: ustring.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.4.7 -->
<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>ustring.h File Reference</h1>C API: Unicode string handling functions. <a href="#_details">More...</a>
<p>
<code>#include &quot;<a class="el" href="utypes_8h-source.html">unicode/utypes.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="putil_8h-source.html">unicode/putil.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="uiter_8h-source.html">unicode/uiter.h</a>&quot;</code><br>

<p>
<a href="ustring_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>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="ustring_8h.html#066a58dd3af8f38d0cf1235b73cda37a">U_COMPARE_CODE_POINT_ORDER</a>&nbsp;&nbsp;&nbsp;0x8000</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Option bit for u_strCaseCompare, u_strcasecmp, unorm_compare, etc: Compare strings in code point order instead of code unit order.  <a href="#066a58dd3af8f38d0cf1235b73cda37a"></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="ustring_8h.html#e902608922bcffdda870031075f242f2">U_STRING_DECL</a>(var, cs, <a class="el" href="ucnv_8h.html#885b7a4b123891f24dedd11fb6b2e641">length</a>)&nbsp;&nbsp;&nbsp;static const wchar_t var[(<a class="el" href="ucnv_8h.html#885b7a4b123891f24dedd11fb6b2e641">length</a>)+1]={ L ## cs }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unicode String literals in C.  <a href="#e902608922bcffdda870031075f242f2"></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="ustring_8h.html#d91356db1fe4754a4fbbb6178b7c2eb1">U_STRING_INIT</a>(var, cs, <a class="el" href="ucnv_8h.html#885b7a4b123891f24dedd11fb6b2e641">length</a>)</td></tr>

<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#b3f067cc3bed4e510e064dfc30e1cb73">UBreakIterator</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Simple declaration for <a class="el" href="ustring_8h.html#1364ea9b3c0557831c468421433e5434">u_strToTitle()</a> to avoid including <a class="el" href="ubrk_8h.html">unicode/ubrk.h</a>.  <a href="#b3f067cc3bed4e510e064dfc30e1cb73"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ustring__ustrlen.html#g2d13a761ef6b9d4f935044fa9b33140a">u_strlen</a> (const UChar *s)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Determine the length of an array of UChar.  <a href="group__ustring__ustrlen.html#g2d13a761ef6b9d4f935044fa9b33140a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#e2d1b702f5c16390499668941cd944a1">u_countChar32</a> (const UChar *s, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> <a class="el" href="ucnv_8h.html#885b7a4b123891f24dedd11fb6b2e641">length</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Count Unicode code points in the length UChar code units of the string.  <a href="#e2d1b702f5c16390499668941cd944a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#edec29a3e09f8c54e7b89e864ccc5088">u_strHasMoreChar32Than</a> (const UChar *s, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> <a class="el" href="ucnv_8h.html#885b7a4b123891f24dedd11fb6b2e641">length</a>, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> number)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check if the string contains more Unicode code points than a certain number.  <a href="#edec29a3e09f8c54e7b89e864ccc5088"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#ac659606d5e3286c7c4fa832247363ae">u_strcat</a> (UChar *dst, const UChar *src)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Concatenate two ustrings.  <a href="#ac659606d5e3286c7c4fa832247363ae"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#90535f84a3f7ae0f63dde9bab92052e3">u_strncat</a> (UChar *dst, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> n)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Concatenate two ustrings.  <a href="#90535f84a3f7ae0f63dde9bab92052e3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#4c8ef5a2fd14d866e533dca0eacdda41">u_strstr</a> (const UChar *s, const UChar *substring)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the first occurrence of a substring in a string.  <a href="#4c8ef5a2fd14d866e533dca0eacdda41"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#ac9432ee10198601f3c83dec45e5d512">u_strFindFirst</a> (const UChar *s, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> <a class="el" href="ucnv_8h.html#885b7a4b123891f24dedd11fb6b2e641">length</a>, const UChar *substring, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> subLength)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the first occurrence of a substring in a string.  <a href="#ac9432ee10198601f3c83dec45e5d512"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#20232aca934df5704abaf8b7afb9f050">u_strchr</a> (const UChar *s, UChar c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the first occurrence of a BMP code point in a string.  <a href="#20232aca934df5704abaf8b7afb9f050"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#0eaf4b8bd781abf3bb3df4a2dc17c8c0">u_strchr32</a> (const UChar *s, <a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the first occurrence of a code point in a string.  <a href="#0eaf4b8bd781abf3bb3df4a2dc17c8c0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#3304f89b7085464c76b0b53686b137df">u_strrstr</a> (const UChar *s, const UChar *substring)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the last occurrence of a substring in a string.  <a href="#3304f89b7085464c76b0b53686b137df"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#ffd1d54a3cb88e191271c0445557b166">u_strFindLast</a> (const UChar *s, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> <a class="el" href="ucnv_8h.html#885b7a4b123891f24dedd11fb6b2e641">length</a>, const UChar *substring, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> subLength)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the last occurrence of a substring in a string.  <a href="#ffd1d54a3cb88e191271c0445557b166"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#cbba6f9e7d997c154359764262e88e3d">u_strrchr</a> (const UChar *s, UChar c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the last occurrence of a BMP code point in a string.  <a href="#cbba6f9e7d997c154359764262e88e3d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#1cedf43709b0ff1db4aec7697838e03e">u_strrchr32</a> (const UChar *s, <a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the last occurrence of a code point in a string.  <a href="#1cedf43709b0ff1db4aec7697838e03e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#24e615dac2b12e0db25d0cbc6ce6bdc0">u_strpbrk</a> (const UChar *string, const UChar *matchSet)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Locates the first occurrence in the string <code>string</code> of any of the characters in the string <code>matchSet</code>.  <a href="#24e615dac2b12e0db25d0cbc6ce6bdc0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#31316dcbc509023351ad285d94ece43b">u_strcspn</a> (const UChar *string, const UChar *matchSet)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of consecutive characters in <code>string</code>, beginning with the first, that do not occur somewhere in <code>matchSet</code>.  <a href="#31316dcbc509023351ad285d94ece43b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#674621d9fa4c89fd53389fb0c9a43485">u_strspn</a> (const UChar *string, const UChar *matchSet)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of consecutive characters in <code>string</code>, beginning with the first, that occur somewhere in <code>matchSet</code>.  <a href="#674621d9fa4c89fd53389fb0c9a43485"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#b86ddc1986ce4f9bc777bcbcfcfb7755">u_strtok_r</a> (UChar *src, const UChar *delim, UChar **saveState)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The string tokenizer API allows an application to break a string into tokens.  <a href="#b86ddc1986ce4f9bc777bcbcfcfb7755"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#a8d03ce6588c7ec7ebefa392ec4b200d">u_strcmp</a> (const UChar *s1, const UChar *s2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two Unicode strings for bitwise equality (code unit order).  <a href="#a8d03ce6588c7ec7ebefa392ec4b200d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#b07220f988d454220ba211db858fe1dc">u_strcmpCodePointOrder</a> (const UChar *s1, const UChar *s2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two Unicode strings in code point order.  <a href="#b07220f988d454220ba211db858fe1dc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#ddf6c27792ead1cbc6e3a60a2d92dd12">u_strCompare</a> (const UChar *s1, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> length1, const UChar *s2, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> length2, <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> codePointOrder)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two Unicode strings (binary order).  <a href="#ddf6c27792ead1cbc6e3a60a2d92dd12"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#04a6bdb361ec6b8d3b8b057461c5de0b">u_strCompareIter</a> (<a class="el" href="structUCharIterator.html">UCharIterator</a> *iter1, <a class="el" href="structUCharIterator.html">UCharIterator</a> *iter2, <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> codePointOrder)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two Unicode strings (binary order) as presented by <a class="el" href="structUCharIterator.html">UCharIterator</a> objects.  <a href="#04a6bdb361ec6b8d3b8b057461c5de0b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#b481d49a95c8aab887cc09a9f59e5ae3">u_strCaseCompare</a> (const UChar *s1, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> length1, const UChar *s2, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> length2, <a class="el" href="pwin32_8h.html#6dffdaa3be697bee6b7286a8120d3638">uint32_t</a> options, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two strings case-insensitively using full case folding.  <a href="#b481d49a95c8aab887cc09a9f59e5ae3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#87d967171740d3cd59aeeff729aca1ab">u_strncmp</a> (const UChar *ucs1, const UChar *ucs2, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> n)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two ustrings for bitwise equality.  <a href="#87d967171740d3cd59aeeff729aca1ab"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#6a82d1c5ed3a2bde4b476cecf94f4d65">u_strncmpCodePointOrder</a> (const UChar *s1, const UChar *s2, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> n)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two Unicode strings in code point order.  <a href="#6a82d1c5ed3a2bde4b476cecf94f4d65"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#2a3695835faf4e7a456f97ce6a2d38ba">u_strcasecmp</a> (const UChar *s1, const UChar *s2, <a class="el" href="pwin32_8h.html#6dffdaa3be697bee6b7286a8120d3638">uint32_t</a> options)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two strings case-insensitively using full case folding.  <a href="#2a3695835faf4e7a456f97ce6a2d38ba"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#05d49ed6faa42b57fb5ed380b490d8fd">u_strncasecmp</a> (const UChar *s1, const UChar *s2, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> n, <a class="el" href="pwin32_8h.html#6dffdaa3be697bee6b7286a8120d3638">uint32_t</a> options)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two strings case-insensitively using full case folding.  <a href="#05d49ed6faa42b57fb5ed380b490d8fd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#dbf86003576751924f32779c23ccec5d">u_memcasecmp</a> (const UChar *s1, const UChar *s2, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> <a class="el" href="ucnv_8h.html#885b7a4b123891f24dedd11fb6b2e641">length</a>, <a class="el" href="pwin32_8h.html#6dffdaa3be697bee6b7286a8120d3638">uint32_t</a> options)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two strings case-insensitively using full case folding.  <a href="#dbf86003576751924f32779c23ccec5d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#644083addc2db02ef158dd5a32ef5ed2">u_strcpy</a> (UChar *dst, const UChar *src)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy a ustring.  <a href="#644083addc2db02ef158dd5a32ef5ed2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#b549c370e94b63daa7708f7fa3771ff8">u_strncpy</a> (UChar *dst, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> n)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy a ustring.  <a href="#b549c370e94b63daa7708f7fa3771ff8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#5d2788fc778ecbbfc9abff70cbbec2b4">u_uastrcpy</a> (UChar *dst, const char *src)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy a byte string encoded in the default codepage to a ustring.  <a href="#5d2788fc778ecbbfc9abff70cbbec2b4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#7e00928a5b29c06257d5815d8ada7452">u_uastrncpy</a> (UChar *dst, const char *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> n)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy a byte string encoded in the default codepage to a ustring.  <a href="#7e00928a5b29c06257d5815d8ada7452"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#32dffc3ee8fbe3960c582ef156f6e5e9">u_austrcpy</a> (char *dst, const UChar *src)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy ustring to a byte string encoded in the default codepage.  <a href="#32dffc3ee8fbe3960c582ef156f6e5e9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#7efbc993f5eabfae2cd3ea9aaa7ca719">u_austrncpy</a> (char *dst, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> n)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy ustring to a byte string encoded in the default codepage.  <a href="#7efbc993f5eabfae2cd3ea9aaa7ca719"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#04dd5745d6729c9681d8668b121d39b5">u_memcpy</a> (UChar *dest, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Synonym for memcpy(), but with UChars only.  <a href="#04dd5745d6729c9681d8668b121d39b5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#dc33c7aae2f170cbbc68fcb01ce52d5a">u_memmove</a> (UChar *dest, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Synonym for memmove(), but with UChars only.  <a href="#dc33c7aae2f170cbbc68fcb01ce52d5a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#969d1a101ce3268d22dcc8493ee59812">u_memset</a> (UChar *dest, UChar c, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize <code>count</code> characters of <code>dest</code> to <code>c</code>.  <a href="#969d1a101ce3268d22dcc8493ee59812"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#5d1c255286cab6a26ceecdedcb90a867">u_memcmp</a> (const UChar *buf1, const UChar *buf2, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare the first <code>count</code> UChars of each buffer.  <a href="#5d1c255286cab6a26ceecdedcb90a867"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#f940ae57d1816507cd64d345d6356bd6">u_memcmpCodePointOrder</a> (const UChar *s1, const UChar *s2, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two Unicode strings in code point order.  <a href="#f940ae57d1816507cd64d345d6356bd6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#b5bcbe2c7d3a87c105ead191f5db8134">u_memchr</a> (const UChar *s, UChar c, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the first occurrence of a BMP code point in a string.  <a href="#b5bcbe2c7d3a87c105ead191f5db8134"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#6be6aa74bddffaf1adb4512337d3d3dc">u_memchr32</a> (const UChar *s, <a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> c, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the first occurrence of a code point in a string.  <a href="#6be6aa74bddffaf1adb4512337d3d3dc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#c9635ae08f2f7ba6e5a975bfb2b23b49">u_memrchr</a> (const UChar *s, UChar c, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the last occurrence of a BMP code point in a string.  <a href="#c9635ae08f2f7ba6e5a975bfb2b23b49"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#e6649220c4695823b0b85dcdcde01dd5">u_memrchr32</a> (const UChar *s, <a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> c, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the last occurrence of a code point in a string.  <a href="#e6649220c4695823b0b85dcdcde01dd5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#befe4e1415fed5a5a63bfb6b23162f8e">u_unescape</a> (const char *src, UChar *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unescape a string of characters and write the resulting Unicode characters to the destination buffer.  <a href="#befe4e1415fed5a5a63bfb6b23162f8e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">U_CDECL_BEGIN typedef&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#ecf3cc3372c25300b6c315da2907bab3">UChar</a> (U_CALLCONV *UNESCAPE_CHAR_AT)(<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> offset</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Callback function for <a class="el" href="ustring_8h.html#bdc0fc9034d5daa65ff12b6d86bfaee7">u_unescapeAt()</a> that returns a character of the source text given an offset and a context pointer.  <a href="#ecf3cc3372c25300b6c315da2907bab3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">U_CDECL_END <a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#bdc0fc9034d5daa65ff12b6d86bfaee7">u_unescapeAt</a> (UNESCAPE_CHAR_AT charAt, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *offset, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> <a class="el" href="ucnv_8h.html#885b7a4b123891f24dedd11fb6b2e641">length</a>, void *<a class="el" href="ustring_8h.html#64dc1cf03a0a74fd8fb861d74185e16e">context</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unescape a single sequence.  <a href="#bdc0fc9034d5daa65ff12b6d86bfaee7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#a732e59104fc7c04ea0b1c6d5072504a">u_strToUpper</a> (UChar *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, const char *locale, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Uppercase the characters in a string.  <a href="#a732e59104fc7c04ea0b1c6d5072504a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#6fbc69d69800ad60964583b3f1a66516">u_strToLower</a> (UChar *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, const char *locale, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Lowercase the characters in a string.  <a href="#6fbc69d69800ad60964583b3f1a66516"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#1364ea9b3c0557831c468421433e5434">u_strToTitle</a> (UChar *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, <a class="el" href="ustring_8h.html#b3f067cc3bed4e510e064dfc30e1cb73">UBreakIterator</a> *titleIter, const char *locale, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Titlecase a string.  <a href="#1364ea9b3c0557831c468421433e5434"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#995b4969c55bce3df6189d2e906f8a93">u_strFoldCase</a> (UChar *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, <a class="el" href="pwin32_8h.html#6dffdaa3be697bee6b7286a8120d3638">uint32_t</a> options, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Case-fold the characters in a string.  <a href="#995b4969c55bce3df6189d2e906f8a93"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">wchar_t *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#f8c4e5717796db4cf4fc4ca1d92d13c5">u_strToWCS</a> (wchar_t *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *pDestLength, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts a sequence of UChars to wchar_t units.  <a href="#f8c4e5717796db4cf4fc4ca1d92d13c5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#758eaca8814d4133792f2441ce79ec68">u_strFromWCS</a> (UChar *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *pDestLength, const wchar_t *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts a sequence of wchar_t units to UChars.  <a href="#758eaca8814d4133792f2441ce79ec68"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#c1575f353983d2aa895ff59af13b5b3c">u_strToUTF8</a> (char *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *pDestLength, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts a sequence of UChars (UTF-16) to UTF-8 bytes.  <a href="#c1575f353983d2aa895ff59af13b5b3c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#22345591e18082c7afbbd6dbb07e4ea9">u_strFromUTF8</a> (UChar *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *pDestLength, const char *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts a sequence of UTF-8 bytes to UChars (UTF-16).  <a href="#22345591e18082c7afbbd6dbb07e4ea9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#0508231c3eff1825d75ff91b593abbbc">u_strToUTF8WithSub</a> (char *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *pDestLength, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, <a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> subchar, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *pNumSubstitutions, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts a sequence of UChars (UTF-16) to UTF-8 bytes.  <a href="#0508231c3eff1825d75ff91b593abbbc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#3498296d03cc03d86601063da74913c9">u_strFromUTF8WithSub</a> (UChar *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *pDestLength, const char *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, <a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> subchar, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *pNumSubstitutions, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts a sequence of UTF-8 bytes to UChars (UTF-16).  <a href="#3498296d03cc03d86601063da74913c9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">U_CAPI UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#eb1e2a8473b51ba17170989c2ed8f48e">u_strFromUTF8Lenient</a> (UChar *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *pDestLength, const char *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts a sequence of UTF-8 bytes to UChars (UTF-16).  <a href="#eb1e2a8473b51ba17170989c2ed8f48e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#9f130a571c2ab0118417f45a595afc8c">u_strToUTF32</a> (<a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *pDestLength, const UChar *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts a sequence of UChars (UTF-16) to UTF32 units.  <a href="#9f130a571c2ab0118417f45a595afc8c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#3fe39b15628e15b9b2e14ee0ad863619">u_strFromUTF32</a> (UChar *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *pDestLength, const <a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> *src, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> srcLength, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="el" href="ucnv_8h.html#7fb88d17e64bfb1dd2320c317ce1a1c6">pErrorCode</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts a sequence of UTF32 units to UChars (UTF-16).  <a href="#3fe39b15628e15b9b2e14ee0ad863619"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="64dc1cf03a0a74fd8fb861d74185e16e"></a><!-- doxytag: member="ustring.h::context" ref="64dc1cf03a0a74fd8fb861d74185e16e" args="" -->
U_CDECL_BEGIN typedef void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustring_8h.html#64dc1cf03a0a74fd8fb861d74185e16e">context</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
C API: Unicode string handling functions. 
<p>
These C API functions provide general Unicode string handling.<p>
Some functions are equivalent in name, signature, and behavior to the ANSI C &lt;string.h&gt; functions. (For example, they do not check for bad arguments like NULL string pointers.) In some cases, only the thread-safe variant of such a function is implemented here (see <a class="el" href="ustring_8h.html#b86ddc1986ce4f9bc777bcbcfcfb7755">u_strtok_r()</a>).<p>
Other functions provide more Unicode-specific functionality like locale-specific upper/lower-casing and string comparison in code point order.<p>
ICU uses 16-bit Unicode (UTF-16) in the form of arrays of UChar code units. UTF-16 encodes each Unicode code point with either one or two UChar code units. (This is the default form of Unicode, and a forward-compatible extension of the original, fixed-width form that was known as UCS-2. UTF-16 superseded UCS-2 with Unicode 2.0 in 1996.)<p>
Some APIs accept a 32-bit UChar32 value for a single code point.<p>
ICU also handles 16-bit Unicode text with unpaired surrogates. Such text is not well-formed UTF-16. Code-point-related functions treat unpaired surrogates as surrogate code points, i.e., as separate units.<p>
Although UTF-16 is a variable-width encoding form (like some legacy multi-byte encodings), it is much more efficient even for random access because the code unit values for single-unit characters vs. lead units vs. trail units are completely disjoint. This means that it is easy to determine character (code point) boundaries from random offsets in the string.<p>
Unicode (UTF-16) string processing is optimized for the single-unit case. Although it is important to support supplementary characters (which use pairs of lead/trail code units called "surrogates"), their occurrence is rare. Almost all characters in modern use require only a single UChar code unit (i.e., their code point values are &lt;=0xffff).<p>
For more details see the User Guide Strings chapter (<a href="http://icu.sourceforge.net/userguide/strings.html">http://icu.sourceforge.net/userguide/strings.html</a>). For a discussion of the handling of unpaired surrogates see also Jitterbug 2145 and its icu mailing list proposal on 2002-sep-18. 
<p>
Definition in file <a class="el" href="ustring_8h-source.html">ustring.h</a>.<hr><h2>Define Documentation</h2>
<a class="anchor" name="066a58dd3af8f38d0cf1235b73cda37a"></a><!-- doxytag: member="ustring.h::U_COMPARE_CODE_POINT_ORDER" ref="066a58dd3af8f38d0cf1235b73cda37a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define U_COMPARE_CODE_POINT_ORDER&nbsp;&nbsp;&nbsp;0x8000          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Option bit for u_strCaseCompare, u_strcasecmp, unorm_compare, etc: Compare strings in code point order instead of code unit order. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001638">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl>

<p>
Definition at line <a class="el" href="ustring_8h-source.html#l00499">499</a> of file <a class="el" href="ustring_8h-source.html">ustring.h</a>.
</div>
</div><p>
<a class="anchor" name="e902608922bcffdda870031075f242f2"></a><!-- doxytag: member="ustring.h::U_STRING_DECL" ref="e902608922bcffdda870031075f242f2" args="(var, cs, length)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define U_STRING_DECL          </td>
          <td>(</td>
          <td class="paramtype">var,         <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cs,         <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucnv_8h.html#885b7a4b123891f24dedd11fb6b2e641">length</a>&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;static const wchar_t var[(<a class="el" href="ucnv_8h.html#885b7a4b123891f24dedd11fb6b2e641">length</a>)+1]={ L ## cs }</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Unicode String literals in C. 
<p>
We need one macro to declare a variable for the string and to statically preinitialize it if possible, and a second macro to dynamically intialize such a string variable if necessary.<p>
The macros are defined for maximum performance. They work only for strings that contain "invariant characters", i.e., only latin letters, digits, and some punctuation. See <a class="el" href="utypes_8h.html">utypes.h</a> for details.<p>
A pair of macros for a single string must be used with the same parameters. The string parameter must be a C string literal. The length of the string, not including the terminating <code>NUL</code>, must be specified as a constant. The U_STRING_DECL macro should be invoked exactly once for one such string variable before it is used.<p>
Usage: <pre>
    U_STRING_DECL(ustringVar1, "Quick-Fox 2", 11);
    U_STRING_DECL(ustringVar2, "jumps 5%", 8);
    static UBool didInit=FALSE;</pre><p>
<pre>    int32_t function() {
        if(!didInit) {
            U_STRING_INIT(ustringVar1, "Quick-Fox 2", 11);
            U_STRING_INIT(ustringVar2, "jumps 5%", 8);
            didInit=TRUE;
        }
        return u_strcmp(ustringVar1, ustringVar2);
    }
 </pre> <dl compact><dt><b><a class="el" href="stable.html#_stable001660">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="ustring_8h-source.html#l00922">922</a> of file <a class="el" href="ustring_8h-source.html">ustring.h</a>.
</div>
</div><p>
<a class="anchor" name="d91356db1fe4754a4fbbb6178b7c2eb1"></a><!-- doxytag: member="ustring.h::U_STRING_INIT" ref="d91356db1fe4754a4fbbb6178b7c2eb1" args="(var, cs, length)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define U_STRING_INIT          </td>
          <td>(</td>
          <td class="paramtype">var,         <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cs,         <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucnv_8h.html#885b7a4b123891f24dedd11fb6b2e641">length</a>&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>
Definition at line <a class="el" href="ustring_8h-source.html#l00924">924</a> of file <a class="el" href="ustring_8h-source.html">ustring.h</a>.
</div>
</div><p>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="b3f067cc3bed4e510e064dfc30e1cb73"></a><!-- doxytag: member="ustring.h::UBreakIterator" ref="b3f067cc3bed4e510e064dfc30e1cb73" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void <a class="el" href="ustring_8h.html#b3f067cc3bed4e510e064dfc30e1cb73">UBreakIterator</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Simple declaration for <a class="el" href="ustring_8h.html#1364ea9b3c0557831c468421433e5434">u_strToTitle()</a> to avoid including <a class="el" href="ubrk_8h.html">unicode/ubrk.h</a>. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001616">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>

<p>
Definition at line <a class="el" href="ustring_8h-source.html#l00026">26</a> of file <a class="el" href="ustring_8h-source.html">ustring.h</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="32dffc3ee8fbe3960c582ef156f6e5e9"></a><!-- doxytag: member="ustring.h::u_austrcpy" ref="32dffc3ee8fbe3960c582ef156f6e5e9" args="(char *dst, const UChar *src)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* u_austrcpy           </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</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>
Copy ustring to a byte string encoded in the default codepage. 
<p>
Adds a null terminator. Performs a UChar to host byte conversion<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>dst</em>&nbsp;</td><td>The destination string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The source string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to <code>dst</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001649">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="7efbc993f5eabfae2cd3ea9aaa7ca719"></a><!-- doxytag: member="ustring.h::u_austrncpy" ref="7efbc993f5eabfae2cd3ea9aaa7ca719" args="(char *dst, const UChar *src, int32_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* u_austrncpy           </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>n</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>
Copy ustring to a byte string encoded in the default codepage. 
<p>
Copies at most <code>n</code> characters. The result will be null terminated if the length of <code>src</code> is less than <code>n</code>. Performs a UChar to host byte conversion<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>dst</em>&nbsp;</td><td>The destination string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The source string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>The maximum number of characters to copy. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to <code>dst</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001650">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="e2d1b702f5c16390499668941cd944a1"></a><!-- doxytag: member="ustring.h::u_countChar32" ref="e2d1b702f5c16390499668941cd944a1" args="(const UChar *s, int32_t length)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_countChar32           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length</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>
Count Unicode code points in the length UChar code units of the string. 
<p>
A code point may occupy either one or two UChar code units. Counting code points involves reading all code units.<p>
This functions is basically the inverse of the <a class="el" href="utf16_8h.html#1f638c7f80ced61bed18d1041d30719d">U16_FWD_N()</a> macro (see <a class="el" href="utf_8h.html">utf.h</a>).<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>s</em>&nbsp;</td><td>The input string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>The number of UChar code units to be checked, or -1 to count all code points before the first NUL (U+0000). </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The number of code points in the specified code units. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001618">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="dbf86003576751924f32779c23ccec5d"></a><!-- doxytag: member="ustring.h::u_memcasecmp" ref="dbf86003576751924f32779c23ccec5d" args="(const UChar *s1, const UChar *s2, int32_t length, uint32_t options)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_memcasecmp           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">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="pwin32_8h.html#6dffdaa3be697bee6b7286a8120d3638">uint32_t</a>&nbsp;</td>
          <td class="paramname"> <em>options</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>
Compare two strings case-insensitively using full case folding. 
<p>
This is equivalent to u_strcmp(u_strFoldCase(s1, n, options), u_strFoldCase(s2, n, options)).<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>s1</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>s2</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>The number of characters in each string to case-fold and then compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>options</em>&nbsp;</td><td>A bit set of options:<ul>
<li>U_FOLD_CASE_DEFAULT or 0 is used for default options: Comparison in code unit order with default case folding.</li></ul>
</td></tr>
  </table>
</dl>
<ul>
<li>U_COMPARE_CODE_POINT_ORDER Set to choose code point order instead of code unit order (see u_strCompare for details).</li></ul>
<p>
<ul>
<li>U_FOLD_CASE_EXCLUDE_SPECIAL_I</li></ul>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A negative, zero, or positive integer indicating the comparison result. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001644">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="b5bcbe2c7d3a87c105ead191f5db8134"></a><!-- doxytag: member="ustring.h::u_memchr" ref="b5bcbe2c7d3a87c105ead191f5db8134" args="(const UChar *s, UChar c, int32_t count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_memchr           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar&nbsp;</td>
          <td class="paramname"> <em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>count</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>
Find the first occurrence of a BMP code point in a string. 
<p>
A surrogate code point is found only if its match in the text is not part of a surrogate pair. A NUL character is found at the string terminator.<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>s</em>&nbsp;</td><td>The string to search (contains <code>count</code> UChars). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>The BMP code point to find. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The length of the string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the first occurrence of <code>c</code> in <code>s</code> or <code>NULL</code> if <code>c</code> is not in <code>s</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001656">Stable:</a></b></dt><dd>ICU 2.0</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#20232aca934df5704abaf8b7afb9f050">u_strchr</a> <p>
<a class="el" href="ustring_8h.html#6be6aa74bddffaf1adb4512337d3d3dc">u_memchr32</a> <p>
<a class="el" href="ustring_8h.html#ac9432ee10198601f3c83dec45e5d512">u_strFindFirst</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="6be6aa74bddffaf1adb4512337d3d3dc"></a><!-- doxytag: member="ustring.h::u_memchr32" ref="6be6aa74bddffaf1adb4512337d3d3dc" args="(const UChar *s, UChar32 c, int32_t count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_memchr32           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a>&nbsp;</td>
          <td class="paramname"> <em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>count</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>
Find the first occurrence of a code point in a string. 
<p>
A surrogate code point is found only if its match in the text is not part of a surrogate pair. A NUL character is found at the string terminator.<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>s</em>&nbsp;</td><td>The string to search (contains <code>count</code> UChars). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>The code point to find. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The length of the string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the first occurrence of <code>c</code> in <code>s</code> or <code>NULL</code> if <code>c</code> is not in <code>s</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001657">Stable:</a></b></dt><dd>ICU 2.0</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#0eaf4b8bd781abf3bb3df4a2dc17c8c0">u_strchr32</a> <p>
<a class="el" href="ustring_8h.html#b5bcbe2c7d3a87c105ead191f5db8134">u_memchr</a> <p>
<a class="el" href="ustring_8h.html#ac9432ee10198601f3c83dec45e5d512">u_strFindFirst</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="5d1c255286cab6a26ceecdedcb90a867"></a><!-- doxytag: member="ustring.h::u_memcmp" ref="5d1c255286cab6a26ceecdedcb90a867" args="(const UChar *buf1, const UChar *buf2, int32_t count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_memcmp           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>buf1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>buf2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>count</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>
Compare the first <code>count</code> UChars of each buffer. 
<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>buf1</em>&nbsp;</td><td>The first string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>buf2</em>&nbsp;</td><td>The second string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The maximum number of UChars to compare. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>When buf1 &lt; buf2, a negative number is returned. When buf1 == buf2, 0 is returned. When buf1 &gt; buf2, a positive number is returned. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001654">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="f940ae57d1816507cd64d345d6356bd6"></a><!-- doxytag: member="ustring.h::u_memcmpCodePointOrder" ref="f940ae57d1816507cd64d345d6356bd6" args="(const UChar *s1, const UChar *s2, int32_t count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_memcmpCodePointOrder           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>count</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>
Compare two Unicode strings in code point order. 
<p>
This is different in UTF-16 from <a class="el" href="ustring_8h.html#5d1c255286cab6a26ceecdedcb90a867">u_memcmp()</a> if supplementary characters are present. For details, see <a class="el" href="ustring_8h.html#ddf6c27792ead1cbc6e3a60a2d92dd12">u_strCompare()</a>.<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>s1</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>s2</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The maximum number of characters to compare. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a negative/zero/positive integer corresponding to whether the first string is less than/equal to/greater than the second one in code point order </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001655">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="04dd5745d6729c9681d8668b121d39b5"></a><!-- doxytag: member="ustring.h::u_memcpy" ref="04dd5745d6729c9681d8668b121d39b5" args="(UChar *dest, const UChar *src, int32_t count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_memcpy           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>count</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>
Synonym for memcpy(), but with UChars only. 
<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>dest</em>&nbsp;</td><td>The destination string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The source string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of characters to copy </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to <code>dest</code> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001651">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="dc33c7aae2f170cbbc68fcb01ce52d5a"></a><!-- doxytag: member="ustring.h::u_memmove" ref="dc33c7aae2f170cbbc68fcb01ce52d5a" args="(UChar *dest, const UChar *src, int32_t count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_memmove           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>count</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>
Synonym for memmove(), but with UChars only. 
<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>dest</em>&nbsp;</td><td>The destination string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The source string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of characters to move </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to <code>dest</code> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001652">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="c9635ae08f2f7ba6e5a975bfb2b23b49"></a><!-- doxytag: member="ustring.h::u_memrchr" ref="c9635ae08f2f7ba6e5a975bfb2b23b49" args="(const UChar *s, UChar c, int32_t count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_memrchr           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar&nbsp;</td>
          <td class="paramname"> <em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>count</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>
Find the last occurrence of a BMP code point in a string. 
<p>
A surrogate code point is found only if its match in the text is not part of a surrogate pair. A NUL character is found at the string terminator.<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>s</em>&nbsp;</td><td>The string to search (contains <code>count</code> UChars). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>The BMP code point to find. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The length of the string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the last occurrence of <code>c</code> in <code>s</code> or <code>NULL</code> if <code>c</code> is not in <code>s</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001658">Stable:</a></b></dt><dd>ICU 2.4</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#cbba6f9e7d997c154359764262e88e3d">u_strrchr</a> <p>
<a class="el" href="ustring_8h.html#e6649220c4695823b0b85dcdcde01dd5">u_memrchr32</a> <p>
<a class="el" href="ustring_8h.html#ffd1d54a3cb88e191271c0445557b166">u_strFindLast</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="e6649220c4695823b0b85dcdcde01dd5"></a><!-- doxytag: member="ustring.h::u_memrchr32" ref="e6649220c4695823b0b85dcdcde01dd5" args="(const UChar *s, UChar32 c, int32_t count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_memrchr32           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a>&nbsp;</td>
          <td class="paramname"> <em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>count</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>
Find the last occurrence of a code point in a string. 
<p>
A surrogate code point is found only if its match in the text is not part of a surrogate pair. A NUL character is found at the string terminator.<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>s</em>&nbsp;</td><td>The string to search (contains <code>count</code> UChars). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>The code point to find. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The length of the string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the last occurrence of <code>c</code> in <code>s</code> or <code>NULL</code> if <code>c</code> is not in <code>s</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001659">Stable:</a></b></dt><dd>ICU 2.4</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#1cedf43709b0ff1db4aec7697838e03e">u_strrchr32</a> <p>
<a class="el" href="ustring_8h.html#c9635ae08f2f7ba6e5a975bfb2b23b49">u_memrchr</a> <p>
<a class="el" href="ustring_8h.html#ffd1d54a3cb88e191271c0445557b166">u_strFindLast</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="969d1a101ce3268d22dcc8493ee59812"></a><!-- doxytag: member="ustring.h::u_memset" ref="969d1a101ce3268d22dcc8493ee59812" args="(UChar *dest, UChar c, int32_t count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_memset           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar&nbsp;</td>
          <td class="paramname"> <em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>count</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>
Initialize <code>count</code> characters of <code>dest</code> to <code>c</code>. 
<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>dest</em>&nbsp;</td><td>The destination string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>The character to initialize the string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The maximum number of characters to set. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to <code>dest</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001653">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="2a3695835faf4e7a456f97ce6a2d38ba"></a><!-- doxytag: member="ustring.h::u_strcasecmp" ref="2a3695835faf4e7a456f97ce6a2d38ba" args="(const UChar *s1, const UChar *s2, uint32_t options)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strcasecmp           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#6dffdaa3be697bee6b7286a8120d3638">uint32_t</a>&nbsp;</td>
          <td class="paramname"> <em>options</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>
Compare two strings case-insensitively using full case folding. 
<p>
This is equivalent to u_strcmp(u_strFoldCase(s1, options), u_strFoldCase(s2, options)).<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>s1</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>s2</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>options</em>&nbsp;</td><td>A bit set of options:<ul>
<li>U_FOLD_CASE_DEFAULT or 0 is used for default options: Comparison in code unit order with default case folding.</li></ul>
</td></tr>
  </table>
</dl>
<ul>
<li>U_COMPARE_CODE_POINT_ORDER Set to choose code point order instead of code unit order (see u_strCompare for details).</li></ul>
<p>
<ul>
<li>U_FOLD_CASE_EXCLUDE_SPECIAL_I</li></ul>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A negative, zero, or positive integer indicating the comparison result. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001642">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="b481d49a95c8aab887cc09a9f59e5ae3"></a><!-- doxytag: member="ustring.h::u_strCaseCompare" ref="b481d49a95c8aab887cc09a9f59e5ae3" args="(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, uint32_t options, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strCaseCompare           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#6dffdaa3be697bee6b7286a8120d3638">uint32_t</a>&nbsp;</td>
          <td class="paramname"> <em>options</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Compare two strings case-insensitively using full case folding. 
<p>
This is equivalent to u_strCompare(u_strFoldCase(s1, options), u_strFoldCase(s2, options), (options&amp;U_COMPARE_CODE_POINT_ORDER)!=0).<p>
The comparison can be done in UTF-16 code unit order or in code point order. They differ only when comparing supplementary code points (U+10000..U+10ffff) to BMP code points near the end of the BMP (i.e., U+e000..U+ffff). In code unit order, high BMP code points sort after supplementary code points because they are stored as pairs of surrogates which are at U+d800..U+dfff.<p>
This functions works with strings of different explicitly specified lengths unlike the ANSI C-like <a class="el" href="ustring_8h.html#a8d03ce6588c7ec7ebefa392ec4b200d">u_strcmp()</a> and <a class="el" href="ustring_8h.html#5d1c255286cab6a26ceecdedcb90a867">u_memcmp()</a> etc. NUL-terminated strings are possible with length arguments of -1.<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>s1</em>&nbsp;</td><td>First source string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length1</em>&nbsp;</td><td>Length of first source string, or -1 if NUL-terminated.</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>s2</em>&nbsp;</td><td>Second source string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length2</em>&nbsp;</td><td>Length of second source string, or -1 if NUL-terminated.</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>options</em>&nbsp;</td><td>A bit set of options:<ul>
<li>U_FOLD_CASE_DEFAULT or 0 is used for default options: Comparison in code unit order with default case folding.</li></ul>
</td></tr>
  </table>
</dl>
<ul>
<li>U_COMPARE_CODE_POINT_ORDER Set to choose code point order instead of code unit order (see u_strCompare for details).</li></ul>
<p>
<ul>
<li>U_FOLD_CASE_EXCLUDE_SPECIAL_I</li></ul>
<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>pErrorCode</em>&nbsp;</td><td>Must be a valid pointer to an error code value, which must not indicate a failure before the function call.</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>&lt;0 or 0 or &gt;0 as usual for string comparisons</dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001639">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl>

</div>
</div><p>
<a class="anchor" name="ac659606d5e3286c7c4fa832247363ae"></a><!-- doxytag: member="ustring.h::u_strcat" ref="ac659606d5e3286c7c4fa832247363ae" args="(UChar *dst, const UChar *src)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strcat           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</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>
Concatenate two ustrings. 
<p>
Appends a copy of <code>src</code>, including the null terminator, to <code>dst</code>. The initial copied character from <code>src</code> overwrites the null terminator in <code>dst</code>.<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>dst</em>&nbsp;</td><td>The destination string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The source string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to <code>dst</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001620">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="20232aca934df5704abaf8b7afb9f050"></a><!-- doxytag: member="ustring.h::u_strchr" ref="20232aca934df5704abaf8b7afb9f050" args="(const UChar *s, UChar c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strchr           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar&nbsp;</td>
          <td class="paramname"> <em>c</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>
Find the first occurrence of a BMP code point in a string. 
<p>
A surrogate code point is found only if its match in the text is not part of a surrogate pair. A NUL character is found at the string terminator.<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>s</em>&nbsp;</td><td>The string to search (NUL-terminated). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>The BMP code point to find. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the first occurrence of <code>c</code> in <code>s</code> or <code>NULL</code> if <code>c</code> is not in <code>s</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001624">Stable:</a></b></dt><dd>ICU 2.0</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#0eaf4b8bd781abf3bb3df4a2dc17c8c0">u_strchr32</a> <p>
<a class="el" href="ustring_8h.html#b5bcbe2c7d3a87c105ead191f5db8134">u_memchr</a> <p>
<a class="el" href="ustring_8h.html#4c8ef5a2fd14d866e533dca0eacdda41">u_strstr</a> <p>
<a class="el" href="ustring_8h.html#ac9432ee10198601f3c83dec45e5d512">u_strFindFirst</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="0eaf4b8bd781abf3bb3df4a2dc17c8c0"></a><!-- doxytag: member="ustring.h::u_strchr32" ref="0eaf4b8bd781abf3bb3df4a2dc17c8c0" args="(const UChar *s, UChar32 c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strchr32           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a>&nbsp;</td>
          <td class="paramname"> <em>c</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>
Find the first occurrence of a code point in a string. 
<p>
A surrogate code point is found only if its match in the text is not part of a surrogate pair. A NUL character is found at the string terminator.<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>s</em>&nbsp;</td><td>The string to search (NUL-terminated). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>The code point to find. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the first occurrence of <code>c</code> in <code>s</code> or <code>NULL</code> if <code>c</code> is not in <code>s</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001625">Stable:</a></b></dt><dd>ICU 2.0</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#20232aca934df5704abaf8b7afb9f050">u_strchr</a> <p>
<a class="el" href="ustring_8h.html#6be6aa74bddffaf1adb4512337d3d3dc">u_memchr32</a> <p>
<a class="el" href="ustring_8h.html#4c8ef5a2fd14d866e533dca0eacdda41">u_strstr</a> <p>
<a class="el" href="ustring_8h.html#ac9432ee10198601f3c83dec45e5d512">u_strFindFirst</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="a8d03ce6588c7ec7ebefa392ec4b200d"></a><!-- doxytag: member="ustring.h::u_strcmp" ref="a8d03ce6588c7ec7ebefa392ec4b200d" args="(const UChar *s1, const UChar *s2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strcmp           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s2</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>
Compare two Unicode strings for bitwise equality (code unit order). 
<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>s1</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>s2</em>&nbsp;</td><td>A string to compare. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 if <code>s1</code> and <code>s2</code> are bitwise equal; a negative value if <code>s1</code> is bitwise less than <code>s2,</code>; a positive value if <code>s1</code> is bitwise greater than <code>s2</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001634">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="b07220f988d454220ba211db858fe1dc"></a><!-- doxytag: member="ustring.h::u_strcmpCodePointOrder" ref="b07220f988d454220ba211db858fe1dc" args="(const UChar *s1, const UChar *s2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strcmpCodePointOrder           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s2</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>
Compare two Unicode strings in code point order. 
<p>
See u_strCompare for details.<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>s1</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>s2</em>&nbsp;</td><td>A string to compare. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a negative/zero/positive integer corresponding to whether the first string is less than/equal to/greater than the second one in code point order </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001635">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="ddf6c27792ead1cbc6e3a60a2d92dd12"></a><!-- doxytag: member="ustring.h::u_strCompare" ref="ddf6c27792ead1cbc6e3a60a2d92dd12" args="(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, UBool codePointOrder)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strCompare           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>codePointOrder</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>
Compare two Unicode strings (binary order). 
<p>
The comparison can be done in code unit order or in code point order. They differ only in UTF-16 when comparing supplementary code points (U+10000..U+10ffff) to BMP code points near the end of the BMP (i.e., U+e000..U+ffff). In code unit order, high BMP code points sort after supplementary code points because they are stored as pairs of surrogates which are at U+d800..U+dfff.<p>
This functions works with strings of different explicitly specified lengths unlike the ANSI C-like <a class="el" href="ustring_8h.html#a8d03ce6588c7ec7ebefa392ec4b200d">u_strcmp()</a> and <a class="el" href="ustring_8h.html#5d1c255286cab6a26ceecdedcb90a867">u_memcmp()</a> etc. NUL-terminated strings are possible with length arguments of -1.<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>s1</em>&nbsp;</td><td>First source string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length1</em>&nbsp;</td><td>Length of first source string, or -1 if NUL-terminated.</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>s2</em>&nbsp;</td><td>Second source string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length2</em>&nbsp;</td><td>Length of second source string, or -1 if NUL-terminated.</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codePointOrder</em>&nbsp;</td><td>Choose between code unit order (FALSE) and code point order (TRUE).</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>&lt;0 or 0 or &gt;0 as usual for string comparisons</dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001636">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl>

</div>
</div><p>
<a class="anchor" name="04a6bdb361ec6b8d3b8b057461c5de0b"></a><!-- doxytag: member="ustring.h::u_strCompareIter" ref="04a6bdb361ec6b8d3b8b057461c5de0b" args="(UCharIterator *iter1, UCharIterator *iter2, UBool codePointOrder)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strCompareIter           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structUCharIterator.html">UCharIterator</a> *&nbsp;</td>
          <td class="paramname"> <em>iter1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUCharIterator.html">UCharIterator</a> *&nbsp;</td>
          <td class="paramname"> <em>iter2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>codePointOrder</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>
Compare two Unicode strings (binary order) as presented by <a class="el" href="structUCharIterator.html">UCharIterator</a> objects. 
<p>
Works otherwise just like <a class="el" href="ustring_8h.html#ddf6c27792ead1cbc6e3a60a2d92dd12">u_strCompare()</a>.<p>
Both iterators are reset to their start positions. When the function returns, it is undefined where the iterators have stopped.<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>iter1</em>&nbsp;</td><td>First source string iterator. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>iter2</em>&nbsp;</td><td>Second source string iterator. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>codePointOrder</em>&nbsp;</td><td>Choose between code unit order (FALSE) and code point order (TRUE).</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>&lt;0 or 0 or &gt;0 as usual for string comparisons</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#ddf6c27792ead1cbc6e3a60a2d92dd12">u_strCompare</a></dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001637">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="644083addc2db02ef158dd5a32ef5ed2"></a><!-- doxytag: member="ustring.h::u_strcpy" ref="644083addc2db02ef158dd5a32ef5ed2" args="(UChar *dst, const UChar *src)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strcpy           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</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>
Copy a ustring. 
<p>
Adds a null terminator.<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>dst</em>&nbsp;</td><td>The destination string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The source string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to <code>dst</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001645">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="31316dcbc509023351ad285d94ece43b"></a><!-- doxytag: member="ustring.h::u_strcspn" ref="31316dcbc509023351ad285d94ece43b" args="(const UChar *string, const UChar *matchSet)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strcspn           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>matchSet</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>
Returns the number of consecutive characters in <code>string</code>, beginning with the first, that do not occur somewhere in <code>matchSet</code>. 
<p>
Works just like C's strcspn but with Unicode.<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>string</em>&nbsp;</td><td>The string in which to search, NUL-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>matchSet</em>&nbsp;</td><td>A NUL-terminated string defining a set of code points for which to search in the text string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The number of initial characters in <code>string</code> that do not occur in <code>matchSet</code>. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#674621d9fa4c89fd53389fb0c9a43485">u_strspn</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001631">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="ac9432ee10198601f3c83dec45e5d512"></a><!-- doxytag: member="ustring.h::u_strFindFirst" ref="ac9432ee10198601f3c83dec45e5d512" args="(const UChar *s, int32_t length, const UChar *substring, int32_t subLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strFindFirst           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>substring</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>subLength</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>
Find the first occurrence of a substring in a string. 
<p>
The substring is found at code point boundaries. That means that if the substring begins with a trail surrogate or ends with a lead surrogate, then it is found only if these surrogates stand alone in the text. Otherwise, the substring edge units would be matched against halves of surrogate pairs.<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>s</em>&nbsp;</td><td>The string to search. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>The length of s (number of UChars), or -1 if it is NUL-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>substring</em>&nbsp;</td><td>The substring to find (NUL-terminated). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>subLength</em>&nbsp;</td><td>The length of substring (number of UChars), or -1 if it is NUL-terminated. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the first occurrence of <code>substring</code> in <code>s</code>, or <code>s</code> itself if the <code>substring</code> is empty, or <code>NULL</code> if <code>substring</code> is not in <code>s</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001623">Stable:</a></b></dt><dd>ICU 2.4</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#4c8ef5a2fd14d866e533dca0eacdda41">u_strstr</a> <p>
<a class="el" href="ustring_8h.html#ffd1d54a3cb88e191271c0445557b166">u_strFindLast</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="ffd1d54a3cb88e191271c0445557b166"></a><!-- doxytag: member="ustring.h::u_strFindLast" ref="ffd1d54a3cb88e191271c0445557b166" args="(const UChar *s, int32_t length, const UChar *substring, int32_t subLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strFindLast           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>substring</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>subLength</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>
Find the last occurrence of a substring in a string. 
<p>
The substring is found at code point boundaries. That means that if the substring begins with a trail surrogate or ends with a lead surrogate, then it is found only if these surrogates stand alone in the text. Otherwise, the substring edge units would be matched against halves of surrogate pairs.<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>s</em>&nbsp;</td><td>The string to search. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>The length of s (number of UChars), or -1 if it is NUL-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>substring</em>&nbsp;</td><td>The substring to find (NUL-terminated). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>subLength</em>&nbsp;</td><td>The length of substring (number of UChars), or -1 if it is NUL-terminated. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the last occurrence of <code>substring</code> in <code>s</code>, or <code>s</code> itself if the <code>substring</code> is empty, or <code>NULL</code> if <code>substring</code> is not in <code>s</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001627">Stable:</a></b></dt><dd>ICU 2.4</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#4c8ef5a2fd14d866e533dca0eacdda41">u_strstr</a> <p>
<a class="el" href="ustring_8h.html#ffd1d54a3cb88e191271c0445557b166">u_strFindLast</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="995b4969c55bce3df6189d2e906f8a93"></a><!-- doxytag: member="ustring.h::u_strFoldCase" ref="995b4969c55bce3df6189d2e906f8a93" args="(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, uint32_t options, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strFoldCase           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#6dffdaa3be697bee6b7286a8120d3638">uint32_t</a>&nbsp;</td>
          <td class="paramname"> <em>options</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Case-fold the characters in a string. 
<p>
Case-folding is locale-independent and not context-sensitive, but there is an option for whether to include or exclude mappings for dotted I and dotless i that are marked with 'I' in CaseFolding.txt. The result may be longer or shorter than the original. The source string and the destination buffer are allowed to overlap.<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of UChars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>options</em>&nbsp;</td><td>Either U_FOLD_CASE_DEFAULT or U_FOLD_CASE_EXCLUDE_SPECIAL_I </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Must be a valid pointer to an error code value, which must not indicate a failure before the function call. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The length of the result string. It may be greater than destCapacity. In that case, only some of the result was written to the destination buffer. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001668">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="3fe39b15628e15b9b2e14ee0ad863619"></a><!-- doxytag: member="ustring.h::u_strFromUTF32" ref="3fe39b15628e15b9b2e14ee0ad863619" args="(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const UChar32 *src, int32_t srcLength, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strFromUTF32           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pDestLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Converts a sequence of UTF32 units to UChars (UTF-16). 
<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of UChars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string (pre-flighting). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pDestLength</em>&nbsp;</td><td>A pointer to receive the number of units written to the destination. If pDestLength!=NULL then *pDestLength is always set to the number of output units corresponding to the transformation of all the input units, even in case of a buffer overflow. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original source string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Must be a valid pointer to an error code value, which must not indicate a failure before the function call. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The pointer to destination buffer. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001674">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="22345591e18082c7afbbd6dbb07e4ea9"></a><!-- doxytag: member="ustring.h::u_strFromUTF8" ref="22345591e18082c7afbbd6dbb07e4ea9" args="(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const char *src, int32_t srcLength, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strFromUTF8           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pDestLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Converts a sequence of UTF-8 bytes to UChars (UTF-16). 
<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of UChars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string (pre-flighting). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pDestLength</em>&nbsp;</td><td>A pointer to receive the number of units written to the destination. If pDestLength!=NULL then *pDestLength is always set to the number of output units corresponding to the transformation of all the input units, even in case of a buffer overflow. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original source string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Must be a valid pointer to an error code value, which must not indicate a failure before the function call. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The pointer to destination buffer. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001672">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#3498296d03cc03d86601063da74913c9">u_strFromUTF8WithSub</a> <p>
<a class="el" href="ustring_8h.html#eb1e2a8473b51ba17170989c2ed8f48e">u_strFromUTF8Lenient</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="eb1e2a8473b51ba17170989c2ed8f48e"></a><!-- doxytag: member="ustring.h::u_strFromUTF8Lenient" ref="eb1e2a8473b51ba17170989c2ed8f48e" args="(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const char *src, int32_t srcLength, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">U_CAPI UChar* u_strFromUTF8Lenient           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pDestLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Converts a sequence of UTF-8 bytes to UChars (UTF-16). 
<p>
Same as <a class="el" href="ustring_8h.html#22345591e18082c7afbbd6dbb07e4ea9">u_strFromUTF8()</a> except that this function is designed to be very fast, which it achieves by being lenient about malformed UTF-8 sequences. This function is intended for use in environments where UTF-8 text is expected to be well-formed.<p>
Its semantics are:<ul>
<li>Well-formed UTF-8 text is correctly converted to well-formed UTF-16 text.</li><li>The function will not read beyond the input string, nor write beyond the destCapacity.</li><li>Malformed UTF-8 results in "garbage" 16-bit Unicode strings which may not be well-formed UTF-16. The function will resynchronize to valid code point boundaries within a small number of code points after an illegal sequence.</li><li>Non-shortest forms are not detected and will result in "spoofing" output.</li></ul>
<p>
For further performance improvement, if srcLength is given (&gt;=0), then it must be destCapacity&gt;=srcLength.<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of UChars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string (pre-flighting). Unlike for other ICU functions, if srcLength&gt;=0 then it must be destCapacity&gt;=srcLength. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pDestLength</em>&nbsp;</td><td>A pointer to receive the number of units written to the destination. If pDestLength!=NULL then *pDestLength is always set to the number of output units corresponding to the transformation of all the input units, even in case of a buffer overflow. Unlike for other ICU functions, if srcLength&gt;=0 but destCapacity&lt;srcLength, then *pDestLength will be set to srcLength (and U_BUFFER_OVERFLOW_ERROR will be set) regardless of the actual result length. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original source string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Pointer to a standard ICU error code. Its input value must pass the <a class="el" href="utypes_8h.html#66bf50e5fe117e762c90f1a1fd9c297e">U_SUCCESS()</a> test, or else the function returns immediately. Check for <a class="el" href="utypes_8h.html#488895ec2af6692af4afe1ddb1908155">U_FAILURE()</a> on output or use with function chaining. (See User Guide for details.) </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The pointer to destination buffer. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#22345591e18082c7afbbd6dbb07e4ea9">u_strFromUTF8</a> <p>
<a class="el" href="ustring_8h.html#3498296d03cc03d86601063da74913c9">u_strFromUTF8WithSub</a> <p>
<a class="el" href="ustring_8h.html#0508231c3eff1825d75ff91b593abbbc">u_strToUTF8WithSub</a> </dd></dl>
<dl compact><dt><b><a class="el" href="draft.html#_draft000100">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="3498296d03cc03d86601063da74913c9"></a><!-- doxytag: member="ustring.h::u_strFromUTF8WithSub" ref="3498296d03cc03d86601063da74913c9" args="(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const char *src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strFromUTF8WithSub           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pDestLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a>&nbsp;</td>
          <td class="paramname"> <em>subchar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pNumSubstitutions</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Converts a sequence of UTF-8 bytes to UChars (UTF-16). 
<p>
Same as <a class="el" href="ustring_8h.html#22345591e18082c7afbbd6dbb07e4ea9">u_strFromUTF8()</a> except for the additional subchar which is output for illegal input sequences, instead of stopping with the U_INVALID_CHAR_FOUND error code. With subchar==U_SENTINEL, this function behaves exactly like <a class="el" href="ustring_8h.html#22345591e18082c7afbbd6dbb07e4ea9">u_strFromUTF8()</a>.<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of UChars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string (pre-flighting). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pDestLength</em>&nbsp;</td><td>A pointer to receive the number of units written to the destination. If pDestLength!=NULL then *pDestLength is always set to the number of output units corresponding to the transformation of all the input units, even in case of a buffer overflow. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original source string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>subchar</em>&nbsp;</td><td>The substitution character to use in place of an illegal input sequence, or U_SENTINEL if the function is to return with U_INVALID_CHAR_FOUND instead. A substitution character can be any valid Unicode code point (up to U+10FFFF) except for surrogate code points (U+D800..U+DFFF). The recommended value is U+FFFD "REPLACEMENT CHARACTER". </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pNumSubstitutions</em>&nbsp;</td><td>Output parameter receiving the number of substitutions if subchar&gt;=0. Set to 0 if no substitutions occur or subchar&lt;0. pNumSubstitutions can be NULL. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Pointer to a standard ICU error code. Its input value must pass the <a class="el" href="utypes_8h.html#66bf50e5fe117e762c90f1a1fd9c297e">U_SUCCESS()</a> test, or else the function returns immediately. Check for <a class="el" href="utypes_8h.html#488895ec2af6692af4afe1ddb1908155">U_FAILURE()</a> on output or use with function chaining. (See User Guide for details.) </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The pointer to destination buffer. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#22345591e18082c7afbbd6dbb07e4ea9">u_strFromUTF8</a> <p>
<a class="el" href="ustring_8h.html#eb1e2a8473b51ba17170989c2ed8f48e">u_strFromUTF8Lenient</a> <p>
<a class="el" href="ustring_8h.html#0508231c3eff1825d75ff91b593abbbc">u_strToUTF8WithSub</a> </dd></dl>
<dl compact><dt><b><a class="el" href="draft.html#_draft000099">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="758eaca8814d4133792f2441ce79ec68"></a><!-- doxytag: member="ustring.h::u_strFromWCS" ref="758eaca8814d4133792f2441ce79ec68" args="(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const wchar_t *src, int32_t srcLength, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strFromWCS           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pDestLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const wchar_t *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Converts a sequence of wchar_t units to UChars. 
<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of UChars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string (pre-flighting). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pDestLength</em>&nbsp;</td><td>A pointer to receive the number of units written to the destination. If pDestLength!=NULL then *pDestLength is always set to the number of output units corresponding to the transformation of all the input units, even in case of a buffer overflow. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original source string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Must be a valid pointer to an error code value, which must not indicate a failure before the function call. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The pointer to destination buffer. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001670">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="edec29a3e09f8c54e7b89e864ccc5088"></a><!-- doxytag: member="ustring.h::u_strHasMoreChar32Than" ref="edec29a3e09f8c54e7b89e864ccc5088" args="(const UChar *s, int32_t length, int32_t number)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> u_strHasMoreChar32Than           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">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="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>number</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>
Check if the string contains more Unicode code points than a certain number. 
<p>
This is more efficient than counting all code points in the entire string and comparing that number with a threshold. This function may not need to scan the string at all if the length is known (not -1 for NUL-termination) and falls within a certain range, and never needs to count more than 'number+1' code points. Logically equivalent to (u_countChar32(s, length)&gt;number). A Unicode code point may occupy either one or two UChar code units.<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>s</em>&nbsp;</td><td>The input string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>The length of the string, or -1 if it is NUL-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The number of code points in the string is compared against the 'number' parameter. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Boolean value for whether the string contains more Unicode code points than 'number'. Same as (u_countChar32(s, length)&gt;number). </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001619">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="05d49ed6faa42b57fb5ed380b490d8fd"></a><!-- doxytag: member="ustring.h::u_strncasecmp" ref="05d49ed6faa42b57fb5ed380b490d8fd" args="(const UChar *s1, const UChar *s2, int32_t n, uint32_t options)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strncasecmp           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#6dffdaa3be697bee6b7286a8120d3638">uint32_t</a>&nbsp;</td>
          <td class="paramname"> <em>options</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>
Compare two strings case-insensitively using full case folding. 
<p>
This is equivalent to u_strcmp(u_strFoldCase(s1, at most n, options), u_strFoldCase(s2, at most n, options)).<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>s1</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>s2</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>The maximum number of characters each string to case-fold and then compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>options</em>&nbsp;</td><td>A bit set of options:<ul>
<li>U_FOLD_CASE_DEFAULT or 0 is used for default options: Comparison in code unit order with default case folding.</li></ul>
</td></tr>
  </table>
</dl>
<ul>
<li>U_COMPARE_CODE_POINT_ORDER Set to choose code point order instead of code unit order (see u_strCompare for details).</li></ul>
<p>
<ul>
<li>U_FOLD_CASE_EXCLUDE_SPECIAL_I</li></ul>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A negative, zero, or positive integer indicating the comparison result. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001643">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="90535f84a3f7ae0f63dde9bab92052e3"></a><!-- doxytag: member="ustring.h::u_strncat" ref="90535f84a3f7ae0f63dde9bab92052e3" args="(UChar *dst, const UChar *src, int32_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strncat           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>n</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>
Concatenate two ustrings. 
<p>
Appends at most <code>n</code> characters from <code>src</code> to <code>dst</code>. Adds a terminating NUL. If src is too long, then only <code>n-1</code> characters will be copied before the terminating NUL. If <code>n&lt;=0</code> then dst is not modified.<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>dst</em>&nbsp;</td><td>The destination string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The source string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>The maximum number of characters to compare. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to <code>dst</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001621">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="87d967171740d3cd59aeeff729aca1ab"></a><!-- doxytag: member="ustring.h::u_strncmp" ref="87d967171740d3cd59aeeff729aca1ab" args="(const UChar *ucs1, const UChar *ucs2, int32_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strncmp           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>ucs1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>ucs2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>n</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>
Compare two ustrings for bitwise equality. 
<p>
Compares at most <code>n</code> 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>ucs1</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ucs2</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>The maximum number of characters to compare. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 if <code>s1</code> and <code>s2</code> are bitwise equal; a negative value if <code>s1</code> is bitwise less than <code>s2</code>; a positive value if <code>s1</code> is bitwise greater than <code>s2</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001640">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="6a82d1c5ed3a2bde4b476cecf94f4d65"></a><!-- doxytag: member="ustring.h::u_strncmpCodePointOrder" ref="6a82d1c5ed3a2bde4b476cecf94f4d65" args="(const UChar *s1, const UChar *s2, int32_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strncmpCodePointOrder           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>n</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>
Compare two Unicode strings in code point order. 
<p>
This is different in UTF-16 from <a class="el" href="ustring_8h.html#87d967171740d3cd59aeeff729aca1ab">u_strncmp()</a> if supplementary characters are present. For details, see <a class="el" href="ustring_8h.html#ddf6c27792ead1cbc6e3a60a2d92dd12">u_strCompare()</a>.<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>s1</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>s2</em>&nbsp;</td><td>A string to compare. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>The maximum number of characters to compare. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a negative/zero/positive integer corresponding to whether the first string is less than/equal to/greater than the second one in code point order </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001641">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="b549c370e94b63daa7708f7fa3771ff8"></a><!-- doxytag: member="ustring.h::u_strncpy" ref="b549c370e94b63daa7708f7fa3771ff8" args="(UChar *dst, const UChar *src, int32_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strncpy           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>n</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>
Copy a ustring. 
<p>
Copies at most <code>n</code> characters. The result will be null terminated if the length of <code>src</code> is less than <code>n</code>.<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>dst</em>&nbsp;</td><td>The destination string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The source string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>The maximum number of characters to copy. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to <code>dst</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001646">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="24e615dac2b12e0db25d0cbc6ce6bdc0"></a><!-- doxytag: member="ustring.h::u_strpbrk" ref="24e615dac2b12e0db25d0cbc6ce6bdc0" args="(const UChar *string, const UChar *matchSet)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strpbrk           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>matchSet</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>
Locates the first occurrence in the string <code>string</code> of any of the characters in the string <code>matchSet</code>. 
<p>
Works just like C's strpbrk but with Unicode.<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>string</em>&nbsp;</td><td>The string in which to search, NUL-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>matchSet</em>&nbsp;</td><td>A NUL-terminated string defining a set of code points for which to search in the text string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the character in <code>string</code> that matches one of the characters in <code>matchSet</code>, or NULL if no such character is found. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001630">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="cbba6f9e7d997c154359764262e88e3d"></a><!-- doxytag: member="ustring.h::u_strrchr" ref="cbba6f9e7d997c154359764262e88e3d" args="(const UChar *s, UChar c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strrchr           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar&nbsp;</td>
          <td class="paramname"> <em>c</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>
Find the last occurrence of a BMP code point in a string. 
<p>
A surrogate code point is found only if its match in the text is not part of a surrogate pair. A NUL character is found at the string terminator.<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>s</em>&nbsp;</td><td>The string to search (NUL-terminated). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>The BMP code point to find. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the last occurrence of <code>c</code> in <code>s</code> or <code>NULL</code> if <code>c</code> is not in <code>s</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001628">Stable:</a></b></dt><dd>ICU 2.4</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#1cedf43709b0ff1db4aec7697838e03e">u_strrchr32</a> <p>
<a class="el" href="ustring_8h.html#c9635ae08f2f7ba6e5a975bfb2b23b49">u_memrchr</a> <p>
<a class="el" href="ustring_8h.html#3304f89b7085464c76b0b53686b137df">u_strrstr</a> <p>
<a class="el" href="ustring_8h.html#ffd1d54a3cb88e191271c0445557b166">u_strFindLast</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="1cedf43709b0ff1db4aec7697838e03e"></a><!-- doxytag: member="ustring.h::u_strrchr32" ref="1cedf43709b0ff1db4aec7697838e03e" args="(const UChar *s, UChar32 c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strrchr32           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a>&nbsp;</td>
          <td class="paramname"> <em>c</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>
Find the last occurrence of a code point in a string. 
<p>
A surrogate code point is found only if its match in the text is not part of a surrogate pair. A NUL character is found at the string terminator.<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>s</em>&nbsp;</td><td>The string to search (NUL-terminated). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>The code point to find. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the last occurrence of <code>c</code> in <code>s</code> or <code>NULL</code> if <code>c</code> is not in <code>s</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001629">Stable:</a></b></dt><dd>ICU 2.4</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#cbba6f9e7d997c154359764262e88e3d">u_strrchr</a> <p>
<a class="el" href="ustring_8h.html#6be6aa74bddffaf1adb4512337d3d3dc">u_memchr32</a> <p>
<a class="el" href="ustring_8h.html#3304f89b7085464c76b0b53686b137df">u_strrstr</a> <p>
<a class="el" href="ustring_8h.html#ffd1d54a3cb88e191271c0445557b166">u_strFindLast</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="3304f89b7085464c76b0b53686b137df"></a><!-- doxytag: member="ustring.h::u_strrstr" ref="3304f89b7085464c76b0b53686b137df" args="(const UChar *s, const UChar *substring)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strrstr           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>substring</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>
Find the last occurrence of a substring in a string. 
<p>
The substring is found at code point boundaries. That means that if the substring begins with a trail surrogate or ends with a lead surrogate, then it is found only if these surrogates stand alone in the text. Otherwise, the substring edge units would be matched against halves of surrogate pairs.<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>s</em>&nbsp;</td><td>The string to search (NUL-terminated). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>substring</em>&nbsp;</td><td>The substring to find (NUL-terminated). </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the last occurrence of <code>substring</code> in <code>s</code>, or <code>s</code> itself if the <code>substring</code> is empty, or <code>NULL</code> if <code>substring</code> is not in <code>s</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001626">Stable:</a></b></dt><dd>ICU 2.4</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#4c8ef5a2fd14d866e533dca0eacdda41">u_strstr</a> <p>
<a class="el" href="ustring_8h.html#ac9432ee10198601f3c83dec45e5d512">u_strFindFirst</a> <p>
<a class="el" href="ustring_8h.html#ffd1d54a3cb88e191271c0445557b166">u_strFindLast</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="674621d9fa4c89fd53389fb0c9a43485"></a><!-- doxytag: member="ustring.h::u_strspn" ref="674621d9fa4c89fd53389fb0c9a43485" args="(const UChar *string, const UChar *matchSet)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strspn           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>matchSet</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>
Returns the number of consecutive characters in <code>string</code>, beginning with the first, that occur somewhere in <code>matchSet</code>. 
<p>
Works just like C's strspn but with Unicode.<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>string</em>&nbsp;</td><td>The string in which to search, NUL-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>matchSet</em>&nbsp;</td><td>A NUL-terminated string defining a set of code points for which to search in the text string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The number of initial characters in <code>string</code> that do occur in <code>matchSet</code>. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#31316dcbc509023351ad285d94ece43b">u_strcspn</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001632">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="4c8ef5a2fd14d866e533dca0eacdda41"></a><!-- doxytag: member="ustring.h::u_strstr" ref="4c8ef5a2fd14d866e533dca0eacdda41" args="(const UChar *s, const UChar *substring)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strstr           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>substring</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>
Find the first occurrence of a substring in a string. 
<p>
The substring is found at code point boundaries. That means that if the substring begins with a trail surrogate or ends with a lead surrogate, then it is found only if these surrogates stand alone in the text. Otherwise, the substring edge units would be matched against halves of surrogate pairs.<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>s</em>&nbsp;</td><td>The string to search (NUL-terminated). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>substring</em>&nbsp;</td><td>The substring to find (NUL-terminated). </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the first occurrence of <code>substring</code> in <code>s</code>, or <code>s</code> itself if the <code>substring</code> is empty, or <code>NULL</code> if <code>substring</code> is not in <code>s</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001622">Stable:</a></b></dt><dd>ICU 2.0</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#3304f89b7085464c76b0b53686b137df">u_strrstr</a> <p>
<a class="el" href="ustring_8h.html#ac9432ee10198601f3c83dec45e5d512">u_strFindFirst</a> <p>
<a class="el" href="ustring_8h.html#ffd1d54a3cb88e191271c0445557b166">u_strFindLast</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="b86ddc1986ce4f9bc777bcbcfcfb7755"></a><!-- doxytag: member="ustring.h::u_strtok_r" ref="b86ddc1986ce4f9bc777bcbcfcfb7755" args="(UChar *src, const UChar *delim, UChar **saveState)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_strtok_r           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>delim</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar **&nbsp;</td>
          <td class="paramname"> <em>saveState</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>
The string tokenizer API allows an application to break a string into tokens. 
<p>
Unlike strtok(), the saveState (the current pointer within the original string) is maintained in saveState. In the first call, the argument src is a pointer to the string. In subsequent calls to return successive tokens of that string, src must be specified as NULL. The value saveState is set by this function to maintain the function's position within the string, and on each subsequent call you must give this argument the same variable. This function does handle surrogate pairs. This function is similar to the strtok_r() the POSIX Threads Extension (1003.1c-1995) version.<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>src</em>&nbsp;</td><td>String containing token(s). This string will be modified. After the first call to <a class="el" href="ustring_8h.html#b86ddc1986ce4f9bc777bcbcfcfb7755">u_strtok_r()</a>, this argument must be NULL to get to the next token. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>delim</em>&nbsp;</td><td>Set of delimiter characters (Unicode code points). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>saveState</em>&nbsp;</td><td>The current pointer within the original string, which is set by this function. The saveState parameter should the address of a local variable of type UChar *. (i.e. defined "Uhar *myLocalSaveState" and use &amp;myLocalSaveState for this parameter). </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the next token found in src, or NULL when there are no more tokens. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001633">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="6fbc69d69800ad60964583b3f1a66516"></a><!-- doxytag: member="ustring.h::u_strToLower" ref="6fbc69d69800ad60964583b3f1a66516" args="(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strToLower           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Lowercase the characters in a string. 
<p>
Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original. The source string and the destination buffer are allowed to overlap.<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of UChars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>The locale to consider, or "" for the root locale or NULL for the default locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Must be a valid pointer to an error code value, which must not indicate a failure before the function call. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The length of the result string. It may be greater than destCapacity. In that case, only some of the result was written to the destination buffer. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001666">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="1364ea9b3c0557831c468421433e5434"></a><!-- doxytag: member="ustring.h::u_strToTitle" ref="1364ea9b3c0557831c468421433e5434" args="(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, UBreakIterator *titleIter, const char *locale, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strToTitle           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ustring_8h.html#b3f067cc3bed4e510e064dfc30e1cb73">UBreakIterator</a> *&nbsp;</td>
          <td class="paramname"> <em>titleIter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Titlecase a string. 
<p>
Casing is locale-dependent and context-sensitive. Titlecasing uses a break iterator to find the first characters of words that are to be titlecased. It titlecases those characters and lowercases all others.<p>
The titlecase break iterator can be provided to customize for arbitrary styles, using rules and dictionaries beyond the standard iterators. It may be more efficient to always provide an iterator to avoid opening and closing one for each string. The standard titlecase iterator for the root locale implements the algorithm of Unicode TR 21.<p>
This function uses only the first() and next() methods of the provided break iterator.<p>
The result may be longer or shorter than the original. The source string and the destination buffer are allowed to overlap.<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of UChars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>titleIter</em>&nbsp;</td><td>A break iterator to find the first characters of words that are to be titlecased. If none is provided (NULL), then a standard titlecase break iterator is opened. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>The locale to consider, or "" for the root locale or NULL for the default locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Must be a valid pointer to an error code value, which must not indicate a failure before the function call. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The length of the result string. It may be greater than destCapacity. In that case, only some of the result was written to the destination buffer. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001667">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>

</div>
</div><p>
<a class="anchor" name="a732e59104fc7c04ea0b1c6d5072504a"></a><!-- doxytag: member="ustring.h::u_strToUpper" ref="a732e59104fc7c04ea0b1c6d5072504a" args="(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_strToUpper           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Uppercase the characters in a string. 
<p>
Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original. The source string and the destination buffer are allowed to overlap.<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of UChars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>The locale to consider, or "" for the root locale or NULL for the default locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Must be a valid pointer to an error code value, which must not indicate a failure before the function call. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The length of the result string. It may be greater than destCapacity. In that case, only some of the result was written to the destination buffer. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001665">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="9f130a571c2ab0118417f45a595afc8c"></a><!-- doxytag: member="ustring.h::u_strToUTF32" ref="9f130a571c2ab0118417f45a595afc8c" args="(UChar32 *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a>* u_strToUTF32           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pDestLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Converts a sequence of UChars (UTF-16) to UTF32 units. 
<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of UChar32s). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string (pre-flighting). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pDestLength</em>&nbsp;</td><td>A pointer to receive the number of units written to the destination. If pDestLength!=NULL then *pDestLength is always set to the number of output units corresponding to the transformation of all the input units, even in case of a buffer overflow. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original source string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Must be a valid pointer to an error code value, which must not indicate a failure before the function call. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The pointer to destination buffer. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001673">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="c1575f353983d2aa895ff59af13b5b3c"></a><!-- doxytag: member="ustring.h::u_strToUTF8" ref="c1575f353983d2aa895ff59af13b5b3c" args="(char *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* u_strToUTF8           </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pDestLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Converts a sequence of UChars (UTF-16) to UTF-8 bytes. 
<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of chars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string (pre-flighting). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pDestLength</em>&nbsp;</td><td>A pointer to receive the number of units written to the destination. If pDestLength!=NULL then *pDestLength is always set to the number of output units corresponding to the transformation of all the input units, even in case of a buffer overflow. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original source string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Must be a valid pointer to an error code value, which must not indicate a failure before the function call. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The pointer to destination buffer. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001671">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#0508231c3eff1825d75ff91b593abbbc">u_strToUTF8WithSub</a> <p>
<a class="el" href="ustring_8h.html#22345591e18082c7afbbd6dbb07e4ea9">u_strFromUTF8</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="0508231c3eff1825d75ff91b593abbbc"></a><!-- doxytag: member="ustring.h::u_strToUTF8WithSub" ref="0508231c3eff1825d75ff91b593abbbc" args="(char *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* u_strToUTF8WithSub           </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pDestLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a>&nbsp;</td>
          <td class="paramname"> <em>subchar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pNumSubstitutions</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Converts a sequence of UChars (UTF-16) to UTF-8 bytes. 
<p>
Same as <a class="el" href="ustring_8h.html#c1575f353983d2aa895ff59af13b5b3c">u_strToUTF8()</a> except for the additional subchar which is output for illegal input sequences, instead of stopping with the U_INVALID_CHAR_FOUND error code. With subchar==U_SENTINEL, this function behaves exactly like <a class="el" href="ustring_8h.html#c1575f353983d2aa895ff59af13b5b3c">u_strToUTF8()</a>.<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of chars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string (pre-flighting). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pDestLength</em>&nbsp;</td><td>A pointer to receive the number of units written to the destination. If pDestLength!=NULL then *pDestLength is always set to the number of output units corresponding to the transformation of all the input units, even in case of a buffer overflow. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original source string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>subchar</em>&nbsp;</td><td>The substitution character to use in place of an illegal input sequence, or U_SENTINEL if the function is to return with U_INVALID_CHAR_FOUND instead. A substitution character can be any valid Unicode code point (up to U+10FFFF) except for surrogate code points (U+D800..U+DFFF). The recommended value is U+FFFD "REPLACEMENT CHARACTER". </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pNumSubstitutions</em>&nbsp;</td><td>Output parameter receiving the number of substitutions if subchar&gt;=0. Set to 0 if no substitutions occur or subchar&lt;0. pNumSubstitutions can be NULL. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Pointer to a standard ICU error code. Its input value must pass the <a class="el" href="utypes_8h.html#66bf50e5fe117e762c90f1a1fd9c297e">U_SUCCESS()</a> test, or else the function returns immediately. Check for <a class="el" href="utypes_8h.html#488895ec2af6692af4afe1ddb1908155">U_FAILURE()</a> on output or use with function chaining. (See User Guide for details.) </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The pointer to destination buffer. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#c1575f353983d2aa895ff59af13b5b3c">u_strToUTF8</a> <p>
<a class="el" href="ustring_8h.html#3498296d03cc03d86601063da74913c9">u_strFromUTF8WithSub</a> </dd></dl>
<dl compact><dt><b><a class="el" href="draft.html#_draft000098">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="f8c4e5717796db4cf4fc4ca1d92d13c5"></a><!-- doxytag: member="ustring.h::u_strToWCS" ref="f8c4e5717796db4cf4fc4ca1d92d13c5" args="(wchar_t *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wchar_t* u_strToWCS           </td>
          <td>(</td>
          <td class="paramtype">wchar_t *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pDestLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>pErrorCode</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>
Converts a sequence of UChars to wchar_t units. 
<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>dest</em>&nbsp;</td><td>A buffer for the result string. The result will be zero-terminated if the buffer is large enough. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of wchar_t's). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string (pre-flighting). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pDestLength</em>&nbsp;</td><td>A pointer to receive the number of units written to the destination. If pDestLength!=NULL then *pDestLength is always set to the number of output units corresponding to the transformation of all the input units, even in case of a buffer overflow. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The original source string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcLength</em>&nbsp;</td><td>The length of the original string. If -1, then src must be zero-terminated. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pErrorCode</em>&nbsp;</td><td>Must be a valid pointer to an error code value, which must not indicate a failure before the function call. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The pointer to destination buffer. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001669">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="5d2788fc778ecbbfc9abff70cbbec2b4"></a><!-- doxytag: member="ustring.h::u_uastrcpy" ref="5d2788fc778ecbbfc9abff70cbbec2b4" args="(UChar *dst, const char *src)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_uastrcpy           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>src</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>
Copy a byte string encoded in the default codepage to a ustring. 
<p>
Adds a null terminator. Performs a host byte to UChar conversion<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>dst</em>&nbsp;</td><td>The destination string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The source string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to <code>dst</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001647">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="7e00928a5b29c06257d5815d8ada7452"></a><!-- doxytag: member="ustring.h::u_uastrncpy" ref="7e00928a5b29c06257d5815d8ada7452" args="(UChar *dst, const char *src, int32_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar* u_uastrncpy           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>n</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>
Copy a byte string encoded in the default codepage to a ustring. 
<p>
Copies at most <code>n</code> characters. The result will be null terminated if the length of <code>src</code> is less than <code>n</code>. Performs a host byte to UChar conversion<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>dst</em>&nbsp;</td><td>The destination string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The source string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>The maximum number of characters to copy. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to <code>dst</code>. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001648">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="befe4e1415fed5a5a63bfb6b23162f8e"></a><!-- doxytag: member="ustring.h::u_unescape" ref="befe4e1415fed5a5a63bfb6b23162f8e" args="(const char *src, UChar *dest, int32_t destCapacity)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> u_unescape           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</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>
Unescape a string of characters and write the resulting Unicode characters to the destination buffer. 
<p>
The following escape sequences are recognized:<p>
\uhhhh 4 hex digits; h in [0-9A-Fa-f] \Uhhhhhhhh 8 hex digits \xhh 1-2 hex digits \x{h...} 1-8 hex digits \ooo 1-3 octal digits; o in [0-7] \cX control-X; X is masked with 0x1F<p>
as well as the standard ANSI C escapes:<p>
\a =&gt; U+0007, \b =&gt; U+0008, \t =&gt; U+0009, \n =&gt; U+000A, \v =&gt; U+000B, \f =&gt; U+000C, \r =&gt; U+000D, \e =&gt; U+001B, \" =&gt; U+0022, \' =&gt; U+0027, \? =&gt; U+003F, \\ =&gt; U+005C<p>
Anything else following a backslash is generically escaped. For example, "[a\\-z]" returns "[a-z]".<p>
If an escape sequence is ill-formed, this method returns an empty string. An example of an ill-formed sequence is "\\u" followed by fewer than 4 hex digits.<p>
The above characters are recognized in the compiler's codepage, that is, they are coded as 'u', '\', etc. Characters that are not parts of escape sequences are converted using <a class="el" href="putil_8h.html#03379fe08a474116020299efc0506af5">u_charsToUChars()</a>.<p>
This function is similar to <a class="el" href="classUnicodeString.html#4dc610bc373eedf7315528a3b8f4df5c">UnicodeString::unescape()</a> but not identical to it. The latter takes a source <a class="el" href="classUnicodeString.html">UnicodeString</a>, so it does escape recognition but no conversion.<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>src</em>&nbsp;</td><td>a zero-terminated string of invariant characters </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dest</em>&nbsp;</td><td>pointer to buffer to receive converted and unescaped text and, if there is room, a zero terminator. May be NULL for preflighting, in which case no UChars will be written, but the return value will still be valid. On error, an empty string is stored here (if possible). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>the number of UChars that may be written at dest. Ignored if dest == NULL. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the length of unescaped string. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#bdc0fc9034d5daa65ff12b6d86bfaee7">u_unescapeAt</a> <p>
<a class="el" href="classUnicodeString.html#4dc610bc373eedf7315528a3b8f4df5c">UnicodeString::unescape()</a> <p>
<a class="el" href="classUnicodeString.html#5d0e92bbb094f56b904d9da1c1e93b4e">UnicodeString::unescapeAt()</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001662">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="bdc0fc9034d5daa65ff12b6d86bfaee7"></a><!-- doxytag: member="ustring.h::u_unescapeAt" ref="bdc0fc9034d5daa65ff12b6d86bfaee7" args="(UNESCAPE_CHAR_AT charAt, int32_t *offset, int32_t length, void *context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">U_CDECL_END <a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> u_unescapeAt           </td>
          <td>(</td>
          <td class="paramtype">UNESCAPE_CHAR_AT&nbsp;</td>
          <td class="paramname"> <em>charAt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *&nbsp;</td>
          <td class="paramname"> <em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>context</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>
Unescape a single sequence. 
<p>
The character at offset-1 is assumed (without checking) to be a backslash. This method takes a callback pointer to a function that returns the UChar at a given offset. By varying this callback, ICU functions are able to unescape char* strings, <a class="el" href="classUnicodeString.html">UnicodeString</a> objects, and UFILE pointers.<p>
If offset is out of range, or if the escape sequence is ill-formed, (UChar32)0xFFFFFFFF is returned. See documentation of <a class="el" href="ustring_8h.html#befe4e1415fed5a5a63bfb6b23162f8e">u_unescape()</a> for a list of recognized sequences.<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>charAt</em>&nbsp;</td><td>callback function that returns a UChar of the source text given an offset and a context pointer. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>pointer to the offset that will be passed to charAt. The offset value will be updated upon return to point after the last parsed character of the escape sequence. On error the offset is unchanged. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>the number of characters in the source text. The last character of the source text is considered to be at offset length-1. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>an opaque pointer passed directly into charAt. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the character represented by the escape sequence at offset, or (UChar32)0xFFFFFFFF on error. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#befe4e1415fed5a5a63bfb6b23162f8e">u_unescape()</a> <p>
<a class="el" href="classUnicodeString.html#4dc610bc373eedf7315528a3b8f4df5c">UnicodeString::unescape()</a> <p>
<a class="el" href="classUnicodeString.html#5d0e92bbb094f56b904d9da1c1e93b4e">UnicodeString::unescapeAt()</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001664">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="ecf3cc3372c25300b6c315da2907bab3"></a><!-- doxytag: member="ustring.h::UChar" ref="ecf3cc3372c25300b6c315da2907bab3" args="(U_CALLCONV *UNESCAPE_CHAR_AT)(int32_t offset" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">U_CDECL_BEGIN typedef UChar           </td>
          <td>(</td>
          <td class="paramtype">U_CALLCONV *&nbsp;</td>
          <td class="paramname"> <em>UNESCAPE_CHAR_AT</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Callback function for <a class="el" href="ustring_8h.html#bdc0fc9034d5daa65ff12b6d86bfaee7">u_unescapeAt()</a> that returns a character of the source text given an offset and a context pointer. 
<p>
The context pointer will be whatever is passed into <a class="el" href="ustring_8h.html#bdc0fc9034d5daa65ff12b6d86bfaee7">u_unescapeAt()</a>.<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>offset</em>&nbsp;</td><td>pointer to the offset that will be passed to <a class="el" href="ustring_8h.html#bdc0fc9034d5daa65ff12b6d86bfaee7">u_unescapeAt()</a>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>an opaque pointer passed directly into <a class="el" href="ustring_8h.html#bdc0fc9034d5daa65ff12b6d86bfaee7">u_unescapeAt()</a> </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the character represented by the escape sequence at offset </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ustring_8h.html#bdc0fc9034d5daa65ff12b6d86bfaee7">u_unescapeAt</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001663">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Tue Dec 13 17:29:53 2011 for ICU 3.6 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>