Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- title_case

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
title_case
Synopsis
/infobank/programs/refmt/title_case/title_case.for
Description
  Program to convert text to title case.

       
INPUT
  A list of pathnames for the files to convert.

    
AUTHOR
  Clint Steele    4/26/2002


    
Reads
          read (90, '(q,a)', end = 99)
     *        AFileLength, AFile(1:AFileLength)
              read (91, '(q,a)', end = 98)
     *            ALineLength, ALine(1:ALineLength)
Writes
                  write (92, '(/)')
              write (92, '(a)') ALine(1:ALineLength)
Opens
          open (unit = 91, 
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'old',
     *          name = AFile(1:AFileLength))
          open (unit = 92,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = '/infobank/tmp/titlecase.temp')
Calls
      call openem (1,0)
                  call changecase ('SMALLS', ALine(10:ALineLength))
                  call changecase ('SMALLS', ALine(1:ALineLength))
              call changecase ('CAPITALS', ALine(1:1))
                      call changecase ('CAPITALS', 
     *                    ALine(Loop+1:Loop+1))
          call system ('/bin/mv /infobank/tmp/titlecase.temp '//
     *        AFile(1:AFileLength))

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/refmt/title_case/title_case.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:38:33 PDT 2013  (chd)