DEVELOPMENT EDITION · 769442725406
Library Reference
On this page

Ada.Strings.Maps.Constants

Handling's character classes as sets and its conversions as mappings (RM A.4.6).

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.6, Latin-1. Each constant is a table built from the Ada.Characters.Handling function of the same name.

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.Maps.Constants;
import Ada.Strings.Maps.Constants;

A Vibe module imports this unit's names with from Ada.Strings.Maps.Constants 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

Control_Set (declaration) — The set of the characters for which Ada.Characters.Handling.Is_Control holds.

Declared interface:

Control_Set : constant Character_Set;

API 002

Graphic_Set (declaration) — The set of the characters for which Ada.Characters.Handling.Is_Graphic holds.

Declared interface:

Graphic_Set : constant Character_Set;

API 003

Letter_Set (declaration) — The set of the characters for which Ada.Characters.Handling.Is_Letter holds.

Declared interface:

Letter_Set : constant Character_Set;

API 004

Lower_Set (declaration) — The set of the characters for which Ada.Characters.Handling.Is_Lower holds.

Declared interface:

Lower_Set : constant Character_Set;

API 005

Upper_Set (declaration) — The set of the characters for which Ada.Characters.Handling.Is_Upper holds.

Declared interface:

Upper_Set : constant Character_Set;

API 006

Basic_Set (declaration) — The set of the characters for which Ada.Characters.Handling.Is_Basic holds.

Declared interface:

Basic_Set : constant Character_Set;

API 007

Decimal_Digit_Set (declaration) — The set of the characters for which Ada.Characters.Handling.Is_Decimal_Digit holds.

Declared interface:

Decimal_Digit_Set : constant Character_Set;

API 008

Hexadecimal_Digit_Set (declaration) — The set of the characters for which Ada.Characters.Handling.Is_Hexadecimal_Digit holds.

Declared interface:

Hexadecimal_Digit_Set : constant Character_Set;

API 009

Alphanumeric_Set (declaration) — The set of the characters for which Ada.Characters.Handling.Is_Alphanumeric holds.

Declared interface:

Alphanumeric_Set : constant Character_Set;

API 010

Special_Set (declaration) — The set of the characters for which Ada.Characters.Handling.Is_Special holds.

Declared interface:

Special_Set : constant Character_Set;

API 011

ISO_646_Set (declaration) — The set of the characters for which Ada.Characters.Handling.Is_ISO_646 holds.

Declared interface:

ISO_646_Set : constant Character_Set;

API 012

Lower_Case_Map (declaration) — The mapping of each character to Ada.Characters.Handling.To_Lower of it.

Declared interface:

Lower_Case_Map : constant Character_Mapping;

API 013

Upper_Case_Map (declaration) — The mapping of each character to Ada.Characters.Handling.To_Upper of it.

Declared interface:

Upper_Case_Map : constant Character_Mapping;

API 014

Basic_Map (declaration) — The mapping of each character to Ada.Characters.Handling.To_Basic of it.

Declared interface:

Basic_Map : constant Character_Mapping;