DEVELOPMENT EDITION · 769442725406
Library Reference
On this page

Ada.Strings.UTF_Encoding

UTF-8 strings: the subtype UTF_8_String, a String whose characters are its bytes.

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

A client proof uses these contracts without proving the body again (see library assurance). The bodies are proved by Verada's own tests.

Import and instantiate

with Ada.Strings.UTF_Encoding;
import Ada.Strings.UTF_Encoding;

A Vibe module imports this unit's names with from Ada.Strings.UTF_Encoding import Name; see library use across syntaxes.

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.

API 001

UTF_8_String (declaration) — Declared as the source specification gives it.

subtype UTF_8_String is String;