Ada Programming/Libraries/Ada.Characters.Handling
Appearance
This language feature is available from Ada 95 on.
Ada.Characters.Handling is a unit of the Predefined Language Environment since Ada 95.
Specification
[edit | edit source]-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual -- -------------------------------------------------------------------------with
Ada.Characters.Conversions;package
Ada.Characters.Handlingis
pragma
Pure (Handling); -- Character classification functionsfunction
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
Booleanrenames
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 Stringfunction
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 646subtype
ISO_646is
Characterrange
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; -- The functions Is_Character, Is_String, To_Character, To_String, -- To_Wide_Character and To_Wide_String are obsolescent; see J.14.function
Is_Character (Item :in
Wide_Character)return
Booleanrenames
Conversions.Is_Character;function
Is_String (Item :in
Wide_String)return
Booleanrenames
Conversions.Is_String;function
To_Character (Item :in
Wide_Character; Substitute :in
Character := ' ')return
Characterrenames
Conversions.To_Character;function
To_String (Item :in
Wide_String; Substitute :in
Character := ' ')return
Stringrenames
Conversions.To_String;function
To_Wide_Character (Item :in
Character)return
Wide_Characterrenames
Conversions.To_Wide_Character;function
To_Wide_String (Item :in
String)return
Wide_Stringrenames
Conversions.To_Wide_String;end
Ada.Characters.Handling;
See also
[edit | edit source]Wikibook
[edit | edit source]External examples
[edit source]- Search for examples of
Ada.Characters.Handling
in: Rosetta Code, GitHub (gists), any Alire crate or this Wikibook. - Search for posts related to
Ada.Characters.Handling
in: Stack Overflow, comp.lang.ada or any Ada related page.