NCEPLIBS-bufr  12.0.1
parstr.f File Reference

Parse a string containing one or more substrings into an array of substrings. More...

Go to the source code of this file.

Functions/Subroutines

subroutine parstr (STR, TAGS, MTAG, NTAG, SEP, LIMIT80)
 Parse a string containing one or more substrings into an array of substrings. More...
 

Detailed Description

Parse a string containing one or more substrings into an array of substrings.

Author
J. Ator
Date
2007-01-19

Definition in file parstr.f.

Function/Subroutine Documentation

◆ parstr()

subroutine parstr ( character*(*)  STR,
character*(*), dimension(mtag)  TAGS,
  MTAG,
  NTAG,
character*1  SEP,
logical  LIMIT80 
)

Parse a string containing one or more substrings into an array of substrings.

This subroutine parses a string containing one or more substrings into an array of substrings. The separator for the substrings is specified during input, and multiple adjacent occurrences of this character will be treated as a single occurrence when the string is actually parsed.

Parameters
[in]STR- character*(*): string.
[out]TAGS- character*(*): array of substrings
[in]MTAG- integer: dimensioned size of TAGS within calling program; used by the subroutine to make sure it doesn't overflow the TAGS array.
[out]NTAG- integer: number of substrings returned in TAGS
[in]SEP- character*1: separator character for substrings.
[in]LIMIT80- logical: .true. if an abort should occur when STR is longer than 80 characters; included for historical consistency with old subroutine parseq.
Author
J. Ator
Date
2007-01-19

Definition at line 23 of file parstr.f.

References bort2().

Referenced by fdebufr_c(), fstag(), getcfmng(), getntbe(), gettbh(), parusr(), readlc(), seqsdx(), sntbbe(), sntbde(), sntbfe(), ufbseq(), ufbtab(), ufbtam(), and writlc().