ljucrs |
Table of contents
ProcedureLJUCRS ( Left-justify, Uppercase, Compress ) SUBROUTINE LJUCRS ( N, INPUT, OUTPUT ) AbstractLeft-justify, uppercase, and space-compress a character string. Required_ReadingNone. KeywordsASCII CHARACTER STRING DeclarationsIMPLICIT NONE INTEGER N CHARACTER*(*) INPUT CHARACTER*(*) OUTPUT Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- N I Maximum consecutive occurrences of space. INPUT I Input string. OUTPUT O Output string. Detailed_InputN is the maximum number of consecutive occurrences of space that will be allowed to remain in the output string. INPUT is the input string. Detailed_OutputOUTPUT is the output string. This is the input string that left-justified and with all occurrences of more than N consecutive spaces removed. If OUTPUT is not large enough to hold the compressed string, it is truncated on the right. OUTPUT may overwrite INPUT. ParametersNone. ExceptionsError free. FilesNone. ParticularsThe string is left-justified and uppercased. Occurrences of more than N consecutive spaces are removed from the input string as it is copied to the output string. If the output string is not large enough to hold the compressed string, it is truncated on the right. ExamplesLet N = 1. Then ' Abc DE F ', becomes 'ABC DE F', RestrictionsNone. Literature_ReferencesNone. Author_and_InstitutionJ. Diaz del Rio (ODC Space) B.V. Semenov (JPL) VersionSPICELIB Version 1.1.0, 12-AUG-2021 (JDR) Added IMPLICIT NONE statement. Edited the header to comply with NAIF standard. SPICELIB Version 1.0.0, 29-JUL-2013 (BVS) |
Fri Dec 31 18:36:31 2021