Procedures

ProcedureLocationProcedure TypeDescription
adjustcM_stringsFunction

pure function adjustc(string[,length])

Read more…
atleastM_stringsInterface
atoiM_stringsFunction
atolM_stringsFunction
atonM_stringsInterface
baseM_stringsFunction

logical function base(x,b,y,a)

Read more…
base2M_stringsFunction

Sample program:

Read more…
bundleM_stringsFunction

Sample Program:

Read more…
c2sM_stringsFunctionRead more…
ccM_stringsInterface
changeM_stringsSubroutine

Sample program:

Read more…
chompM_stringsFunction

Sample program:

Read more…
clipM_stringsFunction

Sample program:

Read more…
codebaseM_stringsFunction

logical function codebase(in_base10,out_base,answer)

Read more…
compactM_stringsFunction

Sample Program:

Read more…
cpadM_stringsInterface
cropM_stringsFunction

Sample program:

Read more…
dbleM_stringsInterface
decodebaseM_stringsFunction

logical function decodebase(string,basein,out10)

Read more…
delimM_stringsSubroutine

Sample program:

Read more…
describeM_stringsFunction

Sample Program:

Read more…
dilateM_stringsFunction

Sample program:

Read more…
edit_distanceM_stringsFunction

The Levenshtein distance function returns how many edits (deletions, insertions, transposition) are required to turn one string into another.

Read more…
ends_withM_stringsInterface
expandM_stringsFunction

function expand(line,escape) result(lineout)

Read more…
find_fieldM_stringsSubroutine

Sample of uses

Read more…
fortran_nameM_stringsFunctionRead more…
getvalsM_stringsSubroutine

GETVALS(3f) reads a relatively arbitrary number of numeric values from a character variable into a REAL array using list-directed input.

Read more…
globM_stringsFunction

Example program

Read more…
indentM_stringsFunction

Sample Program:

Read more…
intM_stringsInterface
isalnumM_stringsFunction

Sample Program:

Read more…
isalphaM_stringsFunction

elemental function isalpha(onechar)

Read more…
isasciiM_stringsFunction

Sample program

Read more…
isblankM_stringsFunction

Sample program:

Read more…
iscntrlM_stringsFunction

Sample program

Read more…
isdigitM_stringsFunction

Sample Program:

Read more…
isgraphM_stringsFunction

Sample Program:

Read more…
islowerM_stringsFunction

Sample program

Read more…
isNumberM_stringsFunction

As the example shows, you can use an internal READ(3f) along with the IOSTAT= parameter to check (and read) a string as well.

Read more…
isprintM_stringsFunction

Sample Program:

Read more…
ispunctM_stringsFunction

Sample program:

Read more…
isspaceM_stringsFunction

Sample program:

Read more…
isupperM_stringsFunction

Sample program:

Read more…
isxdigitM_stringsFunction

Sample program

Read more…
joinM_stringsFunction

JOIN(3f) appends the elements of a CHARACTER array into a single CHARACTER variable, with elements 1 to N joined from left to right. By default each element is trimmed of trailing spaces and the default separator is a null string.

Read more…
len_whiteM_stringsFunction

Sample Program:

Read more…
lensetM_stringsFunctionRead more…
listoutM_stringsSubroutine

(LICENSE:PD)

Read more…
longest_common_substringM_stringsFunction

Sample program

Read more…
lowerM_stringsFunctionRead more…
lpadM_stringsInterface
matching_delimiterM_stringsSubroutine

impure elemental subroutine matching_delimiter(str,ipos,imatch)

Read more…
matchwM_stringsInterface
merge_strM_stringsFunction

Sample Program:

Read more…
modifM_stringsSubroutine

MODIF(3f) Modifies the line currently pointed at using a directive that acts much like a line editor directive. Primarily used to create interactive utilities such as input history editors for interactive line-mode programs.

Read more…
msgM_stringsInterface
nintM_stringsInterface
noescM_stringsFunction

Sample Program:

Read more…
nospaceM_stringsFunction

Sample program:

Read more…
notabsM_stringsSubroutine

Sample program:

Read more…
pM_strings_oopFunction
padM_stringsFunction

pad(3f) - [M_strings:LENGTH] return string padded to at least specified length (LICENSE:PD)

Read more…
paragraphM_stringsFunction

function paragraph(source_string,length)

Read more…
quoteM_stringsFunction

function quote(str,mode,clip) result (quoted_str)

Read more…
realM_stringsInterface
replaceM_stringsFunction
reverseM_stringsFunction

Results:

Read more…
rotate13M_stringsFunction

Sample program

Read more…
rpadM_stringsInterface
s2cM_stringsFunction

Expected output:

Read more…
s2vM_stringsFunction

Sample Program:

Read more…
s2vsM_stringsFunction

Sample Program:

Read more…
sepM_stringsFunction

Sample program:

Read more…
setbits16M_stringsFunction
setbits32M_stringsFunction
setbits64M_stringsFunction
setbits8M_stringsFunction
splitM_stringsSubroutine

Sample program:

Read more…
split2020M_stringsInterface
squeezeM_stringsFunction

Sample Program:

Read more…
stretchM_stringsFunction

Sample Program:

Read more…
stringM_strings_oopInterface
string_to_valueM_stringsInterface
string_to_valuesM_stringsSubroutineRead more…
string_tokensM_stringsFunction
strtokM_stringsFunction

function strtok(source_string,itoken,token_start,token_end,delimiters) result(strtok_status)

Read more…
substituteM_stringsSubroutine

Sample Program:

Read more…
switchM_stringsInterface
transliterateM_stringsFunction

Sample Program:

Read more…
unquoteM_stringsFunction

function unquote(quoted_str,esc) result (unquoted_str)

Read more…
upperM_stringsFunction

upper(3f) - [M_strings:CASE] changes a string to uppercase (LICENSE:PD)

Read more…
upper_quotedM_stringsFunction

upper_quoted(3f) - [M_strings:CASE] elemental function converts string to miniscule skipping strings quoted per Fortran syntax rules (LICENSE:PD)

Read more…
v2sM_stringsInterface
value_to_stringM_stringsSubroutineRead more…
visibleM_stringsFunction

Sample Program:

Read more…
zpadM_stringsInterface