// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ******************************************************************************* * Copyright (C) 1996-2012, International Business Machines Corporation and * others. All Rights Reserved. ******************************************************************************* */ //=============================================================================== // // File sortkey.cpp // // // // Created by: Helena Shih // // Modification History: // // Date Name Description // // 6/20/97 helena Java class name change. // 6/23/97 helena Added comments to make code more readable. // 6/26/98 erm Changed to use byte arrays instead of UnicodeString // 7/31/98 erm hashCode: minimum inc should be 2 not 1, // Cleaned up operator= // 07/12/99 helena HPUX 11 CC port. // 03/06/01 synwee Modified compareTo, to handle the result of // 2 string similar in contents, but one is longer // than the other //=============================================================================== #include "unicode/utypes.h" #if !UCONFIG_NO_COLLATION #include "unicode/sortkey.h" #include "cmemory.h" #include "uelement.h" #include "ustr_imp.h" U_NAMESPACE_BEGIN U_CAPI int32_t U_EXPORT2 ucol_keyHashCode(const uint8_t *key, int32_t length) { … } #endif /* #if !UCONFIG_NO_COLLATION */