package Ada.Characters.Handling is pragma Preelaborate(Handling);
-- Character classification functions
function Is_Control (Item : in Character) return Boolean; function Is_Graphic (Item : in Character) return Boolean; function Is_Letter (Item : in Character) return Boolean; function Is_Lower (Item : in Character) return Boolean; function Is_Upper (Item : in Character) return Boolean; function Is_Basic (Item : in Character) return Boolean; function Is_Digit (Item : in Character) return Boolean; function Is_Decimal_Digit (Item : in Character) return Boolean renames Is_Digit; function Is_Hexadecimal_Digit (Item : in Character) return Boolean; function Is_Alphanumeric (Item : in Character) return Boolean; function Is_Special (Item : in Character) return Boolean;
-- Conversion functions for Character and String
function To_Lower (Item : in Character) return Character; function To_Upper (Item : in Character) return Character; function To_Basic (Item : in Character) return Character;
function To_Lower (Item : in String) return String; function To_Upper (Item : in String) return String; function To_Basic (Item : in String) return String;
-- Classifications of and conversions -- between Character and ISO 646
subtype ISO_646 is Character range Character'Val(0) .. Character'Val(127);
function Is_ISO_646 (Item : in Character) return Boolean; function Is_ISO_646 (Item : in String) return Boolean;
function To_ISO_646 (Item : in Character; Substitute : in ISO_646 := ' ') return ISO_646;
function To_ISO_646 (Item : in String; Substitute : in ISO_646 := ' ') return String;
-- Classifications of and conversions -- between Wide_Character and Character.
function Is_Character (Item : in Wide_Character) return Boolean; function Is_String (Item : in Wide_String) return Boolean;
function To_Character (Item : in Wide_Character; Substitute : in Character := ' ') return Character;
function To_String (Item : in Wide_String; Substitute : in Character := ' ') return String;
function To_Wide_Character (Item : in Character) return Wide_Character;
function To_Wide_String (Item : in String) return Wide_String;
end Ada.Characters.Handling;
True if Item is a control character. A control character is a character whose position is in one of the ranges 0..31 or 127..159.
True if Item is a graphic character. A graphic character is a character whose position is in one of the ranges 32..126 or 160..255.
True if Item is a letter. A letter is a character that is in one of the ranges 'A'..'Z' or 'a'..'z', or whose position is in one of the ranges 192..214, 216..246, or 248..255.
True if Item is a lower-case letter. A lower-case letter is a character that is in the range 'a'..'z', or whose position is in one of the ranges 223..246 or 248..255.
True if Item is an upper-case letter. An upper-case letter is a character that is in the range 'A'..'Z' or whose position is in one of the ranges 192..214 or 216.. 222.
True if Item is a basic letter. A basic letter is a character that is in one of the ranges 'A'..'Z' and 'a'..'z', or that is one of the following: an upper- or lower-case AE diphthong, an upper- or lower-case Icelandic eth, an upper- or lower-case Icelandic thorn, or a sharp-s.
True if Item is a decimal digit. A decimal digit is a character in the range '0'..'9'.
A renaming of Is_Digit.
True if Item is a hexadecimal digit. A hexadecimal digit is a character that is either a decimal digit or that is in one of the ranges 'A' .. 'F' or 'a' .. 'f'.
True if Item is an alphanumeric character. An alphanumeric character is a character that is either a letter or a decimal digit.
True if Item is a special graphic character. A special graphic character is a graphic character that is not alphanumeric.
Returns the corresponding lower-case value for Item if Is_Upper(Item), and returns Item otherwise.
Returns the corresponding upper-case value for Item if Is_Lower(Item) and Item has an upper-case form, and returns Item otherwise. The lower case letters sharp-s and y-diaeresis do not have upper case forms.
Returns the letter corresponding to Item but with no diacritical mark, if Item is a letter but not a basic letter; returns Item otherwise.
The function whose formal parameter, Item, is of type Character returns True if Item is in the subtype ISO_646.
The function whose formal parameter, Item, is of type String returns True if Is_ISO_646(Item(I)) is True for each I in Item'Range.
The function whose first formal parameter, Item, is of type Character returns Item if Is_ISO_646(Item), and returns the Substitute ISO_646 character otherwise.
The function whose first formal parameter, Item, is of type String returns the String whose Range is 1..Item'Length and each of whose elements is given by To_ISO_646 of the corresponding element in Item.
Returns True if Wide_Character'Pos(Item) <= Character'Pos(Character'Last).
Returns True if Is_Character(Item(I)) is True for each I in Item'Range.
Returns the Character corresponding to Item if Is_Character(Item), and returns the Substitute Character otherwise.
Returns the String whose range is 1..Item'Length and each of whose elements is given by To_Character of the corresponding element in Item.
Returns the Wide_Character X such that Character'Pos(Item) = Wide_Character'Pos(X).
Returns the Wide_String whose range is 1..Item'Length and each of whose elements is given by To_Wide_Character of the corresponding element in Item.
NOTES
Go to the first, previous, next, last section, table of contents.