3 -- Grant of Unlimited Rights
5 -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
6 -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
7 -- unlimited rights in the software and documentation contained herein.
8 -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
9 -- this public release, the Government intends to confer upon all
10 -- recipients unlimited rights equal to those held by the Government.
11 -- These rights include rights to use, duplicate, release or disclose the
12 -- released technical data and computer software in whole or in part, in
13 -- any manner and for any purpose whatsoever, and to have or permit others
18 -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
19 -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
20 -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
21 -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
22 -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
23 -- PARTICULAR PURPOSE OF SAID MATERIAL.
33 -- This test consists of the following files:
41 -- 06 Dec 94 SAIC ACVC 2.0
42 -- 02 Nov 96 SAIC ACVC 2.1: Modified prologue.
47 package FB40A00
.CB40A020_0
is -- package Text_Parser.Processing
49 function Count_AlphaNumerics
(Text
: in String) return Natural;
51 end FB40A00
.CB40A020_0
;
54 --=================================================================--
57 -- Text_Parser.Processing.Process_Text
59 private procedure FB40A00
.CB40A020_0
.CB40A020_1
(Text
: in String);
61 procedure FB40A00
.CB40A020_0
.CB40A020_1
(Text
: in String) is
62 Pos
: Natural := Text
'First - 1;
64 loop -- Process string, raise exception upon completion.
66 if Pos
> Text
'Last then
67 raise Completed_Text_Processing
;
68 elsif (Text
(Pos
) in 'A' .. 'Z') or
69 (Text
(Pos
) in 'a' .. 'z') or
70 (Text
(Pos
) in '0' .. '9') then
71 Increment_AlphaNumeric_Count
;
73 Increment_Non_AlphaNumeric_Count
;
76 -- No exception handler here, exception propagates.
77 Report
.Failed
("No exception raised in child package subprogram");
78 end FB40A00
.CB40A020_0
.CB40A020_1
;
81 --=================================================================--
84 with FB40A00
.CB40A020_0
.CB40A020_1
; -- "with" of private child subprogram
85 -- Text_Parser.Processing.Process_Text
86 package body FB40A00
.CB40A020_0
is
88 function Count_AlphaNumerics
(Text
: in String) return Natural is
90 FB40A00
.CB40A020_0
.CB40A020_1
(Text
); -- Call prvt child proc.
91 return (AlphaNumeric_Count
); -- Global maintained in parent.
92 -- No exception handler here, exception propagates.
93 end Count_AlphaNumerics
;
95 end FB40A00
.CB40A020_0
;