Ada.Strings.Wide_Hash
The hash of a wide string (RM A.4.7, A.4.8).
Read the family guide for representation, selection and resource rules. The complete declaration page retains exact signatures/contracts; the source specification is the implementation baseline.
Availability and ownership
Ada.Strings.Hash's hash for wide strings: strings with the same characters have the same hash.
A client proof uses these contracts without proving the body again (see library assurance). Global => null excludes package-global effects, not changes made through an in out argument.
Import and instantiate
with Ada.Strings.Wide_Hash;import Ada.Strings.Wide_Hash;
A Vibe module imports this unit's names with from Ada.Strings.Wide_Hash import Name; see library use across syntaxes. In Varc, keep each name's declared spelling and write & on arguments the call changes.
Contract and lifecycle reading
A Pre condition is the caller's obligation; a Post is what a normal return guarantees. What a postcondition does not state, a client cannot assume. Ghost functions are for contracts and ghost code. The family guide describes copying, lifetime, order and cost.
API 001
Ada.Strings.Wide_Hash (declaration) — A hash of a wide string, for hashed containers. Strings with the same characters have the same hash, whatever their bounds.
Declared interface:
function Ada.Strings.Wide_Hash (Key : Wide_String) return Ada.Containers.Hash_Type
with Global => null;