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
package Ada.Strings
is
pragma Pure(Strings);
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/2
{
AI95-00285-01}
Constant Wide_Wide_Space is
newly 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.
Ada 2005 and 2012 Editions sponsored in part by Ada-Europe