ucase |
Table of contents
ProcedureUCASE ( Convert to uppercase ) SUBROUTINE UCASE ( IN, OUT ) AbstractConvert the characters in a string to uppercase. Required_ReadingNone. KeywordsASCII CHARACTER DeclarationsIMPLICIT NONE CHARACTER*(*) IN CHARACTER*(*) OUT Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- IN I Input string. OUT O Output string, all uppercase. Detailed_InputIN is the input string. Detailed_OutputOUT is the output string. This is the input string with all lowercase letters converted to uppercase. Non-letters are not affected. OUT may overwrite IN. ParametersNone. ExceptionsError free. 1) If the output string length is less than the input string length, the result will be truncated on the right. FilesNone. ParticularsConvert each lowercase character in IN to uppercase. Examples'This is an example' becomes 'THIS IS AN EXAMPLE' '12345 +-=? > * $ &' '12345 +-=? > * $ &' RestrictionsNone. Literature_ReferencesNone. Author_and_InstitutionJ. Diaz del Rio (ODC Space) K.R. Gehringer (JPL) W.L. Taber (JPL) I.M. Underwood (JPL) VersionSPICELIB Version 1.2.0, 05-AUG-2021 (JDR) Added IMPLICIT NONE statement. Edited the header to comply with NAIF standard. Added entry #1 in $Exceptions section. SPICELIB Version 1.1.0, 13-MAR-1996 (KRG) Removed the calls to the string lexicographic functions. Modified the algorithm to use the ICHAR() intrinsic function and some local integer storage for the bases of the lower and upper case letters. Added a "FIRST" clause to the code so that the lower and upper case bases and the separation between them are only initialized the first time the subroutine is called rather than every time. These changes were made to improve the execution speed of the subroutine SPICELIB Version 1.0.1, 10-MAR-1992 (WLT) Comment section for permuted index source lines was added following the header. SPICELIB Version 1.0.0, 31-JAN-1990 (IMU) |
Fri Dec 31 18:37:03 2021