Open CASCADE Technology  7.7.0
Data Structures | Functions
TCollection_ExtendedString.hxx File Reference
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_PExtCharacter.hxx>
#include <Standard_Integer.hxx>
#include <Standard_CString.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_ExtString.hxx>
#include <Standard_Character.hxx>
#include <Standard_ExtCharacter.hxx>
#include <Standard_Real.hxx>
#include <Standard_OStream.hxx>
#include <Standard_PCharacter.hxx>
#include <Standard_Macro.hxx>

Data Structures

class  TCollection_ExtendedString
 A variable-length sequence of "extended" (UNICODE) characters (16-bit character type). It provides editing operations with built-in memory management to make ExtendedString objects easier to use than ordinary extended character arrays. ExtendedString objects follow "value semantics", that is, they are the actual strings, not handles to strings, and are copied through assignment. You may use HExtendedString objects to get handles to strings. More...
 

Functions

Standard_Integer HashCode (const TCollection_ExtendedString &theExtendedString, const Standard_Integer theUpperBound)
 Computes a hash code for the given extended string, in the range [1, theUpperBound]. More...
 

Function Documentation

◆ HashCode()

Standard_Integer HashCode ( const TCollection_ExtendedString theExtendedString,
const Standard_Integer  theUpperBound 
)
inline

Computes a hash code for the given extended string, in the range [1, theUpperBound].

Parameters
theExtendedStringthe extended string which hash code is to be computed
theUpperBoundthe upper bound of the range a computing hash code must be within
Returns
a computed hash code, in the range [1, theUpperBound]