A.4.1 The Package Strings

From OC Systems Wiki!
Jump to: navigation, search

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

Static Semantics

The library package Strings has the following declaration:

package Ada.Strings is 
    pragma Pure(Strings);

    Space      : constant Character      := ' '; 
    Wide_Space : constant Wide_Character := ' ';

    Length_Error, Pattern_Error, Index_Error, Translation_Error : exception;

    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;

Copyright © 1992,1993,1994,1995 Intermetrics, Inc.
Copyright © 2000 The MITRE Corporation, Inc. Ada Reference Manual