[comp.lang.fortran] string manipulation routines for fortran?

davis@pacific.pacific.mps.ohio-state.edu ("John E. Davis") (07/25/90)

Hi,

   I am looking for a set of basic string manipulation routines for fortran.
These routines should be portable.  Is there a public domain package available?

Thanks,
--
--John

  bitnet: davis@ohstpy
internet: davis@pacific.mps.ohio-state.edu

seibel@cgl.ucsf.edu (George Seibel) (07/25/90)

In article <DAVIS.90Jul24210724@pacific.pacific.mps.ohio-state.edu> davis@pacific.mps.ohio-state.edu  (John E. Davis) writes:

>   I am looking for a set of basic string manipulation routines for fortran.
>These routines should be portable.  Is there a public domain package available?

What exactly are you looking for here, the pre-fortran 77 "use integers
for strings" kind of thing, or something that does fancy manipulations
with fortran 77 character data types?   I've done a lot of string
manipulations in fortran 77, adding nothing more to the standard character
intrinsics and operators than a couple of simple routines to change case
and find the last nonblank character in the string.   If you have an
application that still uses Hollerith data and you need to do portable
string manipulation, you can do an internal write to a character variable,
manipulate to your heart's content, then use an internal read to get it
back to Hollerith form.   If it's a new application, use the character
data type.

George Seibel, UCSF
seibel@cgl.ucsf.edu

rfinch@caldwr.water.ca.gov (Ralph Finch) (07/25/90)

If somebody knows about regexp handlers in Fortran, let me know.  Or
better yet post to the group.
-- 
Ralph Finch			916-445-0088
rfinch@water.ca.gov		...ucbvax!ucdavis!caldwr!rfinch
Any opinions expressed are my own; they do not represent the DWR