| 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 |
SUBROUTINE LOWSTR (LCSTR, UCSTR) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** LOWSTR *** (STRLIB) Convert string to lower-case |
| 12 |
C -- Written by Amy Gilkey - revised 08/06/87 |
| 13 |
C -- |
| 14 |
C --LOWSTR converts the passed string to lower-case letters. |
| 15 |
C -- |
| 16 |
C --Parameters: |
| 17 |
C -- LCSTR - OUT - the returned lower-case string |
| 18 |
C -- UCSTR - IN - the input string |
| 19 |
|
| 20 |
CHARACTER*(*) LCSTR, UCSTR |
| 21 |
|
| 22 |
CHARACTER*26 UPPER, LOWER |
| 23 |
SAVE UPPER, LOWER |
| 24 |
|
| 25 |
DATA UPPER / 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' / |
| 26 |
DATA LOWER / 'abcdefghijklmnopqrstuvwxyz' / |
| 27 |
|
| 28 |
LCSTR = UCSTR |
| 29 |
DO 10 I = 1, LENSTR (LCSTR) |
| 30 |
K = INDEX (UPPER, LCSTR(I:I)) |
| 31 |
IF (K .GE. 1) LCSTR(I:I) = LOWER(K:K) |
| 32 |
10 CONTINUE |
| 33 |
|
| 34 |
RETURN |
| 35 |
END |