403Webshell
Server IP : 103.119.228.120  /  Your IP : 18.117.172.189
Web Server : Apache
System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User : nobody ( 99)
PHP Version : 5.6.40
Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime
MySQL : ON |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : ON |  Pkexec : ON
Directory :  /usr/local/ssl/local/ssl/local/easy/share/doc/easy-libicu-doc-4.0.1/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/local/ssl/local/ssl/local/easy/share/doc/easy-libicu-doc-4.0.1/classCollationKey.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>ICU 4.0.1: CollationKey Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ICU 4.0.1
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">CollationKey Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Collation keys are generated by the <a class="el" href="classCollator.html" title="The Collator class performs locale-sensitive string comparison. ">Collator</a> class.  
 <a href="classCollationKey.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="sortkey_8h_source.html">sortkey.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CollationKey:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classCollationKey.png" usemap="#CollationKey_map" alt=""/>
  <map id="CollationKey_map" name="CollationKey_map">
<area href="classUObject.html" title="UObject is the common ICU &quot;boilerplate&quot; class. " alt="UObject" shape="rect" coords="0,56,83,80"/>
<area href="classUMemory.html" title="UMemory is the common ICU base class. " alt="UMemory" shape="rect" coords="0,0,83,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a236ce6b7d878eb6a0d5ee583eeb7f6db"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#a236ce6b7d878eb6a0d5ee583eeb7f6db">CollationKey</a> ()</td></tr>
<tr class="memdesc:a236ce6b7d878eb6a0d5ee583eeb7f6db"><td class="mdescLeft">&#160;</td><td class="mdescRight">This creates an empty collation key based on the null string.  <a href="#a236ce6b7d878eb6a0d5ee583eeb7f6db">More...</a><br/></td></tr>
<tr class="separator:a236ce6b7d878eb6a0d5ee583eeb7f6db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec3b2c31ee34d6019991b24b7a975493"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#aec3b2c31ee34d6019991b24b7a975493">CollationKey</a> (const uint8_t *values, int32_t count)</td></tr>
<tr class="memdesc:aec3b2c31ee34d6019991b24b7a975493"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a collation key based on the collation key values.  <a href="#aec3b2c31ee34d6019991b24b7a975493">More...</a><br/></td></tr>
<tr class="separator:aec3b2c31ee34d6019991b24b7a975493"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62c797dd9568e240cdcdd3e0b8fb466b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#a62c797dd9568e240cdcdd3e0b8fb466b">CollationKey</a> (const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;other)</td></tr>
<tr class="memdesc:a62c797dd9568e240cdcdd3e0b8fb466b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor.  <a href="#a62c797dd9568e240cdcdd3e0b8fb466b">More...</a><br/></td></tr>
<tr class="separator:a62c797dd9568e240cdcdd3e0b8fb466b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39b57d5e52b60506ad9a99242b19c1b2"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#a39b57d5e52b60506ad9a99242b19c1b2">~CollationKey</a> ()</td></tr>
<tr class="memdesc:a39b57d5e52b60506ad9a99242b19c1b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sort key destructor.  <a href="#a39b57d5e52b60506ad9a99242b19c1b2">More...</a><br/></td></tr>
<tr class="separator:a39b57d5e52b60506ad9a99242b19c1b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38541209bbf6084770d4973ed6cada18"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#a38541209bbf6084770d4973ed6cada18">operator=</a> (const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;other)</td></tr>
<tr class="memdesc:a38541209bbf6084770d4973ed6cada18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator.  <a href="#a38541209bbf6084770d4973ed6cada18">More...</a><br/></td></tr>
<tr class="separator:a38541209bbf6084770d4973ed6cada18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26887fbeff16532382794b91faebaae4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#a26887fbeff16532382794b91faebaae4">operator==</a> (const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;source) const </td></tr>
<tr class="memdesc:a26887fbeff16532382794b91faebaae4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare if two collation keys are the same.  <a href="#a26887fbeff16532382794b91faebaae4">More...</a><br/></td></tr>
<tr class="separator:a26887fbeff16532382794b91faebaae4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85bb52c50f3baf2aad76282f719d6193"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#a85bb52c50f3baf2aad76282f719d6193">operator!=</a> (const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;source) const </td></tr>
<tr class="memdesc:a85bb52c50f3baf2aad76282f719d6193"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare if two collation keys are not the same.  <a href="#a85bb52c50f3baf2aad76282f719d6193">More...</a><br/></td></tr>
<tr class="separator:a85bb52c50f3baf2aad76282f719d6193"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b5cbecf80d0c583ec608eb88628f4bd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#a2b5cbecf80d0c583ec608eb88628f4bd">isBogus</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>) const </td></tr>
<tr class="memdesc:a2b5cbecf80d0c583ec608eb88628f4bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test to see if the key is in an invalid state.  <a href="#a2b5cbecf80d0c583ec608eb88628f4bd">More...</a><br/></td></tr>
<tr class="separator:a2b5cbecf80d0c583ec608eb88628f4bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba4102f9d534cdf6c0ed52e1b5a7578e"><td class="memItemLeft" align="right" valign="top">const uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#aba4102f9d534cdf6c0ed52e1b5a7578e">getByteArray</a> (int32_t &amp;count) const </td></tr>
<tr class="memdesc:aba4102f9d534cdf6c0ed52e1b5a7578e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the collation key values.  <a href="#aba4102f9d534cdf6c0ed52e1b5a7578e">More...</a><br/></td></tr>
<tr class="separator:aba4102f9d534cdf6c0ed52e1b5a7578e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a175ce0d8cb5d392731a238e0de29cdda"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCollator.html#a05f22f81363f2613bea18a632b67686f">Collator::EComparisonResult</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#a175ce0d8cb5d392731a238e0de29cdda">compareTo</a> (const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;target) const </td></tr>
<tr class="memdesc:a175ce0d8cb5d392731a238e0de29cdda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience method which does a string(bit-wise) comparison of the two collation keys.  <a href="#a175ce0d8cb5d392731a238e0de29cdda">More...</a><br/></td></tr>
<tr class="separator:a175ce0d8cb5d392731a238e0de29cdda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad480e22ece781340466c767c5e4e69e8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucol_8h.html#a8b4e71db8109af87f84ac1576e2b245d">UCollationResult</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#ad480e22ece781340466c767c5e4e69e8">compareTo</a> (const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;target, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:ad480e22ece781340466c767c5e4e69e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience method which does a string(bit-wise) comparison of the two collation keys.  <a href="#ad480e22ece781340466c767c5e4e69e8">More...</a><br/></td></tr>
<tr class="separator:ad480e22ece781340466c767c5e4e69e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afddfbfd2410925a1e6a8309bbcaad82d"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#afddfbfd2410925a1e6a8309bbcaad82d">hashCode</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>) const </td></tr>
<tr class="memdesc:afddfbfd2410925a1e6a8309bbcaad82d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an integer that is unique to the collation key.  <a href="#afddfbfd2410925a1e6a8309bbcaad82d">More...</a><br/></td></tr>
<tr class="separator:afddfbfd2410925a1e6a8309bbcaad82d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec62adb6b1550b6ff6e18a97de9c725a"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#aec62adb6b1550b6ff6e18a97de9c725a">getDynamicClassID</a> () const </td></tr>
<tr class="memdesc:aec62adb6b1550b6ff6e18a97de9c725a"><td class="mdescLeft">&#160;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for the actual class.  <a href="#aec62adb6b1550b6ff6e18a97de9c725a">More...</a><br/></td></tr>
<tr class="separator:aec62adb6b1550b6ff6e18a97de9c725a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classUObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classUObject')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classUObject.html">UObject</a></td></tr>
<tr class="memitem:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUObject.html#ace22cf29a90641ef43350deae5bedb85">~UObject</a> ()</td></tr>
<tr class="memdesc:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#ace22cf29a90641ef43350deae5bedb85">More...</a><br/></td></tr>
<tr class="separator:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aa1a3652547245ea10c9d10d4746fc30e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#aa1a3652547245ea10c9d10d4746fc30e">getStaticClassID</a> ()</td></tr>
<tr class="memdesc:aa1a3652547245ea10c9d10d4746fc30e"><td class="mdescLeft">&#160;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class.  <a href="#aa1a3652547245ea10c9d10d4746fc30e">More...</a><br/></td></tr>
<tr class="separator:aa1a3652547245ea10c9d10d4746fc30e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classUMemory"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classUMemory')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="classUMemory.html">UMemory</a></td></tr>
<tr class="memitem:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a309b19b5777e2840b85b202aef5a54fb">operator new</a> (size_t size)</td></tr>
<tr class="memdesc:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Override for ICU4C C++ memory management.  <a href="#a309b19b5777e2840b85b202aef5a54fb">More...</a><br/></td></tr>
<tr class="separator:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a4d0df3571728e7b8a823dbbea6e9b5c5">operator new[]</a> (size_t size)</td></tr>
<tr class="memdesc:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Override for ICU4C C++ memory management.  <a href="#a4d0df3571728e7b8a823dbbea6e9b5c5">More...</a><br/></td></tr>
<tr class="separator:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#adcda65a58813749f8f45c5e6c1ed37e1">operator delete</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *p)</td></tr>
<tr class="memdesc:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Override for ICU4C C++ memory management.  <a href="#adcda65a58813749f8f45c5e6c1ed37e1">More...</a><br/></td></tr>
<tr class="separator:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a7602a7a8c6fdff21d9fbecea4d899333">operator delete[]</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *p)</td></tr>
<tr class="memdesc:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Override for ICU4C C++ memory management.  <a href="#a7602a7a8c6fdff21d9fbecea4d899333">More...</a><br/></td></tr>
<tr class="separator:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a43b5221fe429f77230b2040f8724c154">operator new</a> (size_t, <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *ptr)</td></tr>
<tr class="memdesc:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Override for ICU4C C++ memory management for STL.  <a href="#a43b5221fe429f77230b2040f8724c154">More...</a><br/></td></tr>
<tr class="separator:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a9b746b0cdb49c8f8907773002ea5c4ea">operator delete</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *, <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *)</td></tr>
<tr class="memdesc:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Override for ICU4C C++ memory management for STL.  <a href="#a9b746b0cdb49c8f8907773002ea5c4ea">More...</a><br/></td></tr>
<tr class="separator:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a1918e53ed4bb8208fdd6df3ed4ec2548"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1918e53ed4bb8208fdd6df3ed4ec2548"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollationKey.html#a1918e53ed4bb8208fdd6df3ed4ec2548">RuleBasedCollator</a></td></tr>
<tr class="memdesc:a1918e53ed4bb8208fdd6df3ed4ec2548"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow private access to <a class="el" href="classRuleBasedCollator.html" title="The RuleBasedCollator class provides the simple implementation of Collator, using data-driven tables...">RuleBasedCollator</a>. <br/></td></tr>
<tr class="separator:a1918e53ed4bb8208fdd6df3ed4ec2548"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Collation keys are generated by the <a class="el" href="classCollator.html" title="The Collator class performs locale-sensitive string comparison. ">Collator</a> class. </p>
<p>Use the <a class="el" href="classCollationKey.html" title="Collation keys are generated by the Collator class. ">CollationKey</a> objects instead of <a class="el" href="classCollator.html" title="The Collator class performs locale-sensitive string comparison. ">Collator</a> to compare strings multiple times. A <a class="el" href="classCollationKey.html" title="Collation keys are generated by the Collator class. ">CollationKey</a> preprocesses the comparison information from the <a class="el" href="classCollator.html" title="The Collator class performs locale-sensitive string comparison. ">Collator</a> object to make the comparison faster. If you are not going to comparing strings multiple times, then using the <a class="el" href="classCollator.html" title="The Collator class performs locale-sensitive string comparison. ">Collator</a> object is generally faster, since it only processes as much of the string as needed to make a comparison. </p>
<p>For example (with strength == tertiary) </p>
<p>When comparing "Abernathy" to "Baggins-Smythworthy", <a class="el" href="classCollator.html" title="The Collator class performs locale-sensitive string comparison. ">Collator</a> only needs to process a couple of characters, while a comparison with CollationKeys will process all of the characters. On the other hand, if you are doing a sort of a number of fields, it is much faster to use CollationKeys, since you will be comparing strings multiple times. </p>
<p>Typical use of CollationKeys are in databases, where you store a <a class="el" href="classCollationKey.html" title="Collation keys are generated by the Collator class. ">CollationKey</a> in a hidden field, and use it for sorting or indexing.</p>
<p>Example of use: </p>
<pre>
<div class="fragment"><div class="line">*     <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> success = <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a>;</div>
<div class="line">*     <a class="code" href="classCollator.html">Collator</a>* myCollator = <a class="code" href="classCollator.html#a685bc906ba633d0d7653089d1f1a4dc5">Collator::createInstance</a>(success);</div>
<div class="line">*     <a class="code" href="classCollationKey.html">CollationKey</a>* keys = <span class="keyword">new</span> <a class="code" href="classCollationKey.html">CollationKey</a> [3];</div>
<div class="line">*     myCollator-&gt;<a class="code" href="classCollator.html#ab48ddb212e12b9ef4ffa7163e2d7810a">getCollationKey</a>(<span class="stringliteral">&quot;Tom&quot;</span>, keys[0], success );</div>
<div class="line">*     myCollator-&gt;<a class="code" href="classCollator.html#ab48ddb212e12b9ef4ffa7163e2d7810a">getCollationKey</a>(<span class="stringliteral">&quot;Dick&quot;</span>, keys[1], success );</div>
<div class="line">*     myCollator-&gt;<a class="code" href="classCollator.html#ab48ddb212e12b9ef4ffa7163e2d7810a">getCollationKey</a>(<span class="stringliteral">&quot;Harry&quot;</span>, keys[2], success );</div>
<div class="line">*</div>
<div class="line">*     <span class="comment">// Inside body of sort routine, compare keys this way:</span></div>
<div class="line">*     <a class="code" href="classCollationKey.html">CollationKey</a> tmp;</div>
<div class="line">*     <span class="keywordflow">if</span>(keys[0].<a class="code" href="classCollationKey.html#a175ce0d8cb5d392731a238e0de29cdda">compareTo</a>( keys[1] ) &gt; 0 ) {</div>
<div class="line">*         tmp = keys[0]; keys[0] = keys[1]; keys[1] = tmp;</div>
<div class="line">*     }</div>
<div class="line">*     <span class="comment">//...</span></div>
<div class="line">* </div>
</div><!-- fragment -->
  </pre> <p>Because <a class="el" href="classCollator.html#aca611b586fa47a756d2b29996f713182" title="The comparison function compares the character data stored in two different strings. ">Collator::compare()</a>'s algorithm is complex, it is faster to sort long lists of words by retrieving collation keys with <a class="el" href="classCollator.html#ab48ddb212e12b9ef4ffa7163e2d7810a" title="Transforms the string into a series of characters that can be compared with CollationKey::compareTo. ">Collator::getCollationKey()</a>. You can then cache the collation keys and compare them using <a class="el" href="classCollationKey.html#a175ce0d8cb5d392731a238e0de29cdda" title="Convenience method which does a string(bit-wise) comparison of the two collation keys. ">CollationKey::compareTo()</a>. </p>
<p><b>Note:</b> <code><a class="el" href="classCollator.html" title="The Collator class performs locale-sensitive string comparison. ">Collator</a></code>s with different <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a>, CollationStrength and DecompositionMode settings will return different CollationKeys for the same set of strings. Locales have specific collation rules, and the way in which secondary and tertiary differences are taken into account, for example, will result in different CollationKeys for same strings. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classCollator.html" title="The Collator class performs locale-sensitive string comparison. ">Collator</a> </dd>
<dd>
<a class="el" href="classRuleBasedCollator.html" title="The RuleBasedCollator class provides the simple implementation of Collator, using data-driven tables...">RuleBasedCollator</a> </dd></dl>
<dl class="section version"><dt>Version</dt><dd>1.3 12/18/96 </dd></dl>
<dl class="section author"><dt>Author</dt><dd>Helena Shih </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000203">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

<p>Definition at line <a class="el" href="sortkey_8h_source.html#l00096">96</a> of file <a class="el" href="sortkey_8h_source.html">sortkey.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a236ce6b7d878eb6a0d5ee583eeb7f6db"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CollationKey::CollationKey </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This creates an empty collation key based on the null string. </p>
<p>An empty collation key contains no sorting information. When comparing two empty collation keys, the result is Collator::EQUAL. Comparing empty collation key with non-empty collation key is always Collator::LESS. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000204">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

</div>
</div>
<a class="anchor" id="aec3b2c31ee34d6019991b24b7a975493"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CollationKey::CollationKey </td>
          <td>(</td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>values</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a collation key based on the collation key values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">values</td><td>the collation key values </td></tr>
    <tr><td class="paramname">count</td><td>number of collation key values, including trailing nulls. </td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000205">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

</div>
</div>
<a class="anchor" id="a62c797dd9568e240cdcdd3e0b8fb466b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CollationKey::CollationKey </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>the object to be copied. </td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000206">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

</div>
</div>
<a class="anchor" id="a39b57d5e52b60506ad9a99242b19c1b2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual CollationKey::~CollationKey </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sort key destructor. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000207">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a175ce0d8cb5d392731a238e0de29cdda"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCollator.html#a05f22f81363f2613bea18a632b67686f">Collator::EComparisonResult</a> CollationKey::compareTo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience method which does a string(bit-wise) comparison of the two collation keys. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>target collation key to be compared with </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns Collator::LESS if sourceKey &lt; targetKey, Collator::GREATER if sourceKey &gt; targetKey and Collator::EQUAL otherwise. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000213">Deprecated:</a></b></dt><dd>ICU 2.6 use the overload with error code </dd></dl>

</div>
</div>
<a class="anchor" id="ad480e22ece781340466c767c5e4e69e8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="ucol_8h.html#a8b4e71db8109af87f84ac1576e2b245d">UCollationResult</a> CollationKey::compareTo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience method which does a string(bit-wise) comparison of the two collation keys. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>target collation key to be compared with </td></tr>
    <tr><td class="paramname">status</td><td>error code </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns UCOL_LESS if sourceKey &lt; targetKey, UCOL_GREATER if sourceKey &gt; targetKey and UCOL_EQUAL otherwise. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000214">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

</div>
</div>
<a class="anchor" id="aba4102f9d534cdf6c0ed52e1b5a7578e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const uint8_t * CollationKey::getByteArray </td>
          <td>(</td>
          <td class="paramtype">int32_t &amp;&#160;</td>
          <td class="paramname"><em>count</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a pointer to the collation key values. </p>
<p>The storage is owned by the collation key and the pointer will become invalid if the key is deleted. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">count</td><td>the output parameter of number of collation key values, including any trailing nulls. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the collation key values. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000212">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

<p>Definition at line <a class="el" href="sortkey_8h_source.html#l00314">314</a> of file <a class="el" href="sortkey_8h_source.html">sortkey.h</a>.</p>

</div>
</div>
<a class="anchor" id="aec62adb6b1550b6ff6e18a97de9c725a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> CollationKey::getDynamicClassID </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>ICU "poor man's RTTI", returns a UClassID for the actual class. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000216">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

<p>Implements <a class="el" href="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262">UObject</a>.</p>

</div>
</div>
<a class="anchor" id="aa1a3652547245ea10c9d10d4746fc30e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> CollationKey::getStaticClassID </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>ICU "poor man's RTTI", returns a UClassID for this class. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000217">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

</div>
</div>
<a class="anchor" id="afddfbfd2410925a1e6a8309bbcaad82d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t CollationKey::hashCode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates an integer that is unique to the collation key. </p>
<p>NOTE: this is not the same as String.hashCode. </p>
<p>Example of use: </p>
<pre>
.    UErrorCode status = U_ZERO_ERROR;
.    <a class="el" href="classCollator.html" title="The Collator class performs locale-sensitive string comparison. ">Collator</a> *myCollation = Collator::createInstance(Locale::US, status);
.    if (<a class="el" href="utypes_8h.html#a4d202200b6aa6f3c965ea370e0c8155f" title="Does the error code indicate a failure? ">U_FAILURE(status)</a>) return;
.    <a class="el" href="classCollationKey.html" title="Collation keys are generated by the Collator class. ">CollationKey</a> key1, key2;
.    UErrorCode status1 = U_ZERO_ERROR, status2 = U_ZERO_ERROR;
.    myCollation-&gt;getCollationKey("abc", key1, status1);
.    if (<a class="el" href="utypes_8h.html#a4d202200b6aa6f3c965ea370e0c8155f" title="Does the error code indicate a failure? ">U_FAILURE(status1)</a>) { delete myCollation; return; }
.    myCollation-&gt;getCollationKey("ABC", key2, status2);
.    if (<a class="el" href="utypes_8h.html#a4d202200b6aa6f3c965ea370e0c8155f" title="Does the error code indicate a failure? ">U_FAILURE(status2)</a>) { delete myCollation; return; }
.    // key1.hashCode() != key2.hashCode()
</pre> <dl class="section return"><dt>Returns</dt><dd>the hash value based on the string's collation order. </dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classUnicodeString.html#a6724ae76d51cf802ded394eaedd7b3fd" title="Generate a hash code for this object. ">UnicodeString::hashCode</a> </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000215">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

</div>
</div>
<a class="anchor" id="a2b5cbecf80d0c583ec608eb88628f4bd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> CollationKey::isBogus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Test to see if the key is in an invalid state. </p>
<p>The key will be in an invalid state if it couldn't allocate memory for some operation. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns TRUE if the key is in an invalid, FALSE otherwise. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000211">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

<p>Definition at line <a class="el" href="sortkey_8h_source.html#l00308">308</a> of file <a class="el" href="sortkey_8h_source.html">sortkey.h</a>.</p>

</div>
</div>
<a class="anchor" id="a85bb52c50f3baf2aad76282f719d6193"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> CollationKey::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compare if two collation keys are not the same. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>the collation key to compare to. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns TRUE if two collation keys are different, FALSE otherwise. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000210">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

<p>Definition at line <a class="el" href="sortkey_8h_source.html#l00302">302</a> of file <a class="el" href="sortkey_8h_source.html">sortkey.h</a>.</p>

</div>
</div>
<a class="anchor" id="a38541209bbf6084770d4973ed6cada18"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classCollationKey.html">CollationKey</a>&amp; CollationKey::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Assignment operator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>the object to be copied. </td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000208">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

</div>
</div>
<a class="anchor" id="a26887fbeff16532382794b91faebaae4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> CollationKey::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCollationKey.html">CollationKey</a> &amp;&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compare if two collation keys are the same. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>the collation key to compare to. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns true if two collation keys are equal, false otherwise. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000209">Deprecated:</a></b></dt><dd>ICU 2.8 Use <a class="el" href="classCollator.html#ae524fd43a06d4429e2c76bef35874d4c" title="Get the sort key as an array of bytes from an UnicodeString. ">Collator::getSortKey</a>(...) instead </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="sortkey_8h_source.html">sortkey.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit