Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- changecase

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
changecase
Synopsis
/infobank/programs/share/changecase.for
Description
  Subroutine to convert all letters in a string either to 

  smalls, CAPITALS, or Title. 
       
LIMITATIONS
  Accepts an ASCII character string of any length up to

  255 characters and returns the same string with the case changed.
  Characters other than the letters A-Z and a-z are ignored.
    
USAGE
  "a" = argument, "r" = referenced, "s" = set

  call changecase                       (with the following arguments)
         DesiredCase                 [variable char*(*) ar]
         String                      [variable char*(*) asr]
  Input:
    DesiredCase - code word indicating which case to change to.
                  Valid codes are: SMALL, CAPITAL, TITLE.
    String - an ASCII character string variable up to 255 characters
             long. Do not try to pass a constant.
  Output:
    String - same as input above, but with the case changed.
    
DISCLAIMER
  Although this program has been used by the U.S. Geological Survey,

  no warranty, expressed or implied, is made by the Survey as to the
  accuracy and functioning of the program and related program
  material nor shall the fact of distribution constitute any such
  warranty, and no responsibility is assured by the Survey in
  connection therewith.
    
SUBROUTINES
  stringlen           (shared DRS external)         

    
FUNCTIONS
  ichar               (FORTRAN intrinsic function)  

  char                (FORTRAN intrinsic function)  
    
AUTHOR
  Ed Maple   1/14/88   Based on the subroutines SMALLS and CAPITALS

  JeanRiordan 2/16/88  Checked for DRS$SHARE cleanup & UNIX compat.
    
Reads
Writes
Opens
Calls
      call stringlen (String, LengthString)
      call stringlen (DesiredCase, LengthCode)

Skip footer navigational links

Coastal and Marine Science Centers:  Pacific   St. Petersburg   Woods Hole  
InfoBank   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://walrus.wr.usgs.gov/infobank/programs/share/changecase.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:36:51 PDT 2013  (chd)