Ada 编程/库/Ada.Characters.Handling
外观
此语言特性自 Ada 95 起可用。
Ada.Characters.Handling 是 预定义语言环境 自 Ada 95 起的一个单元。
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <[email protected]> -- 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;
外部示例
[编辑源代码]- 在以下位置搜索 示例
Ada.Characters.Handling
: Rosetta Code, GitHub (gists), 任何 Alire 包 或 本维基教科书. - 在以下位置搜索 帖子
Ada.Characters.Handling
: Stack Overflow, comp.lang.ada 或 任何与 Ada 相关的页面.