Debian Codegraph @

packages/seacas/applications/blot/upcase.f

raw
1 C Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 C NTESS, the U.S. Government retains certain rights in this software.
4 C
5 C See packages/seacas/LICENSE for details
6
7 c ======================================================================
8 c ======================================================================
9 c ======================================================================
10 c ======================================================================
11 c ======================================================================
12 c ======================================================================
13
14 c ROUTINE: Upcase
15
16 c DESCRIPTION: Changes ASCII text strings to upper case.
17
18 c AUTHOR: John H. Glick
19 c Sandia National Laboratories
20 c Division 1511
21
22 c DATE: December 20, 1988
23
24 c TYPE OF SUBPROGRAM: subroutine
25
26 c USAGE: call upcase ( string )
27
28 c PARAMETERS:
29
30 c character*(*) string -- ( Input and Output )
31 c String that is to be converted to
32 c upper case.
33
34 c CALLS:
35
36 c len (INTRINSIC) -- returns length of character string.
37 c ichar (INTRINSIC) -- returns ASCII integer value
38 c of passed character.
39 c char (INTRINSIC) -- returns ASCII character assigned
40 c to passed integer value.
41
42 c GLOBAL VARIABLES REFERENCED: none
43
44 c SYSTEM DEPENDENCIES: none
45
46 c CALLING ROUTINE(S): filhnd (BLOT)
47
48 c ======================================================================
49 c ======================================================================
50
51 subroutine upcase_bl ( string )
52
53 c **********************************************************************
54
55 c parameter
56
57 character*(*) string
58
59 c **********************************************************************
60
61 c declarations
62
63 integer length
64 c length of character string
65 integer ccode
66 c integer id of an ASCII character
67
68 c***********************************************************************
69 c***********************************************************************
70
71 length = len(string)
72 do 100 i = 1,length
73 ccode = ichar(string(i:i))
74 if ( ccode .ge. 97 .AND. ccode .le. 122 )
75 & string(i:i) = char(ccode-32)
76 100 continue
77
78 return
79 end