DEVELOPMENT EDITION · 769442725406
Library Reference
On this page

Ada.Strings.Bounded.Equal_Case_Insensitive

Whether two bounded strings are equal with their letters in lower case (RM A.4.10).

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.10's Ada.Strings.Bounded.Equal_Case_Insensitive. A generic function: instantiate it with a Generic_Bounded_Length instance, as in function Hash is new Ada.Strings.Bounded.Equal_Case_Insensitive (Names);. Its postcondition is Ada.Strings.Equal_Case_Insensitive of the characters.

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.Bounded.Equal_Case_Insensitive;
import Ada.Strings.Bounded.Equal_Case_Insensitive;

A Vibe module imports this unit's names with from Ada.Strings.Bounded.Equal_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.Bounded.Equal_Case_Insensitive (declaration) — The generic formals, as Ada's: the instance's types and the operations it compares with.

Declared interface:

generic
   with package Bounded is new Ada.Strings.Bounded.Generic_Bounded_Length (<>);
function Ada.Strings.Bounded.Equal_Case_Insensitive (Left, Right : Bounded.Bounded_String) return Boolean
  with Global => null,
       Post => Equal_Case_Insensitive'Result = Ada.Strings.Equal_Case_Insensitive (Bounded.To_String (Left), Bounded.To_String (Right));