Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,13 +1,15 @@
|
|||
with Ada.Text_IO, Ada.Characters.Handling;
|
||||
with Ada.Text_IO, Ada.Strings.Equal_Case_Insensitive;
|
||||
|
||||
procedure String_Compare is
|
||||
|
||||
procedure Print_Comparison (A, B: String) is
|
||||
use Ada.Text_IO, Ada.Characters.Handling;
|
||||
use Ada.Text_IO;
|
||||
Function eq(Left, Right : String) return Boolean
|
||||
renames Ada.Strings.Equal_Case_Insensitive;
|
||||
begin
|
||||
Put_Line
|
||||
( """" & A & """ and """ & B & """: " &
|
||||
(if A = B then "equal, " elsif To_Lower(A) = To_Lower(B)
|
||||
(if A = B then "equal, " elsif eq(A,B)
|
||||
then "case-insensitive-equal, " else "not equal at all, ") &
|
||||
(if A /= B then "/=, " else "") &
|
||||
(if A < B then "before, " else "") &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue