Ada.Strings.Hash_Case_Insensitive
The hash of a string with its letters in lower case (RM A.4.9).
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
All of RM A.4.9's Ada.Strings.Hash_Case_Insensitive.
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.Hash_Case_Insensitive;import Ada.Strings.Hash_Case_Insensitive;
A Vibe module imports this unit's names with from Ada.Strings.Hash_Case_Insensitive 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.Hash_Case_Insensitive (declaration) — The hash of a string with its letters in lower case, so that strings that differ only in case have the same hash.
Declared interface:
function Ada.Strings.Hash_Case_Insensitive (Key : String) return Ada.Containers.Hash_Type
with Global => null,
Post => Hash_Case_Insensitive'Result = Ada.Strings.Hash (Ada.Characters.Handling.To_Lower (Key));