Annotated Ada Reference Manual (Ada 202y Draft 1)Legal Information
Contents   Index   References   Search   Previous   Next 

A.4.1 The Package Strings

1
The package Strings provides declarations common to the string handling packages. 

Static Semantics

2
The library package Strings has the following declaration: 
3/5
{AI12-0414-1} package Ada.Strings
   with Pure is
4/2
{AI95-00285-01}    Space      : constant Character      := ' ';
   Wide_Space : constant Wide_Character := ' ';
   Wide_Wide_Space : constant Wide_Wide_Character := ' ';
5
   Length_Error, Pattern_Error, Index_Error, Translation_Error : exception;
6
   type Alignment  is (Left, Right, Center);
   type Truncation is (Left, Right, Error);
   type Membership is (Inside, Outside);
   type Direction  is (Forward, Backward);
   type Trim_End   is (Left, Right, Both);
end Ada.Strings;

Incompatibilities With Ada 95

6.a/3
{AI95-00285-01} {AI05-0005-1} Constant Wide_Wide_Space is added to Ada.Strings. If Ada.Strings is referenced in a use_clause, and an entity E with a defining_identifier of Wide_Wide_Space is defined in a package that is also referenced in a use_clause, the entity E may no longer be use-visible, resulting in errors. This should be rare and is easily fixed if it does occur. 

Contents   Index   References   Search   Previous   Next 
Ada-Europe Ada 2005 and 2012 Editions sponsored in part by Ada-Europe