Skip to content

flap_utils_m ​

Source: src/third_party/FLAP/src/lib/flap_utils_m.f90

Dependencies

Contents ​

Variables ​

NameTypeAttributesDescription
LIST_SEPcharacter(len=*)parameter

Derived Types ​

flap_string ​

Components ​

NameTypeAttributesDescription
scharacter(len=:)allocatable

Interfaces ​

count ​

Module procedures: count_substring

Subroutines ​

list_items ​

Attributes: pure

fortran
subroutine list_items(list, items, n)

Arguments

NameTypeIntentAttributesDescription
listcharacter(len=*)in
itemscharacter(len=:)outallocatable
ninteger(kind=I4P)out

Call graph

list_push ​

Attributes: pure

fortran
subroutine list_push(list, item)

Arguments

NameTypeIntentAttributesDescription
listcharacter(len=:)inoutallocatable
itemcharacter(len=*)in

Call graph

read_env ​

fortran
subroutine read_env(name, value, found, ignore)

Arguments

NameTypeIntentAttributesDescription
namecharacter(len=*)in
valuecharacter(len=:)outallocatable
foundlogicalout
ignorelogicalinoptional

Call graph

read_line ​

fortran
subroutine read_line(lun, line, iostat, iomsg)

Arguments

NameTypeIntentAttributesDescription
luninteger(kind=I4P)in
linecharacter(len=:)outallocatable
iostatinteger(kind=I4P)out
iomsgcharacter(len=*)outoptional

Call graph

tokenize ​

Attributes: pure

fortran
subroutine tokenize(strin, delimiter, toks, Nt)

Arguments

NameTypeIntentAttributesDescription
strincharacter(len=*)in
delimitercharacter(len=*)in
tokscharacter(len=len)outallocatable
Ntinteger(kind=I4P)outoptional

Call graph

split_command_line ​

Attributes: pure

fortran
subroutine split_command_line(strin, toks, Nt)

Arguments

NameTypeIntentAttributesDescription
strincharacter(len=*)in
tokscharacter(len=len)outallocatable
Ntinteger(kind=I4P)out

Call graph

write_text ​

fortran
subroutine write_text(lun, text)

Arguments

NameTypeIntentAttributesDescription
luninteger(kind=I4P)in
textcharacter(len=*)in

Call graph

csv_split ​

Attributes: pure

fortran
subroutine csv_split(record, fields, nf, error)

Arguments

NameTypeIntentAttributesDescription
recordcharacter(len=*)in
fieldstype(flap_string)outallocatable
nfinteger(kind=I4P)out
errorinteger(kind=I4P)out

Call graph

Functions ​

count_substring ​

Attributes: elemental

Returns: integer(kind=I4P)

fortran
function count_substring(string, substring) result(No)

Arguments

NameTypeIntentAttributesDescription
stringcharacter(len=*)in
substringcharacter(len=*)in

Call graph

to_characters ​

Attributes: pure

Returns: character(len=:)

fortran
function to_characters(strings) result(chars)

Arguments

NameTypeIntentAttributesDescription
stringstype(flap_string)in

Call graph

list_count ​

Attributes: pure

Returns: integer(kind=I4P)

fortran
function list_count(list) result(n)

Arguments

NameTypeIntentAttributesDescription
listcharacter(len=*)in

Call graph

list_join ​

Attributes: pure

Returns: character(len=:)

fortran
function list_join(list, sep) result(joined)

Arguments

NameTypeIntentAttributesDescription
listcharacter(len=*)in
sepcharacter(len=*)in

Call graph

replace ​

Attributes: pure

Returns: character(len=:)

fortran
function replace(string, substring, restring) result(newstring)

Arguments

NameTypeIntentAttributesDescription
stringcharacter(len=*)in
substringcharacter(len=*)in
restringcharacter(len=*)in

replace_all ​

Attributes: pure

Returns: character(len=:)

fortran
function replace_all(string, substring, restring) result(newstring)

Arguments

NameTypeIntentAttributesDescription
stringcharacter(len=*)in
substringcharacter(len=*)in
restringcharacter(len=*)in

Call graph

unique ​

Attributes: elemental

Returns: character(len=len)

fortran
function unique(string, substring) result(uniq)

Arguments

NameTypeIntentAttributesDescription
stringcharacter(len=*)in
substringcharacter(len=*)in

Call graph

upper_case ​

Attributes: elemental

Returns: character(len=len)

fortran
function upper_case(string)

Arguments

NameTypeIntentAttributesDescription
stringcharacter(len=*)in

Call graph

fish_escape ​

Attributes: pure

Returns: character(len=:)

fortran
function fish_escape(text) result(escaped)

Arguments

NameTypeIntentAttributesDescription
textcharacter(len=*)in

Call graph

ps_escape ​

Attributes: pure

Returns: character(len=:)

fortran
function ps_escape(text) result(escaped)

Arguments

NameTypeIntentAttributesDescription
textcharacter(len=*)in

Call graph

levenshtein ​

Attributes: pure

Returns: integer(kind=I4P)

fortran
function levenshtein(a, b) result(d)

Arguments

NameTypeIntentAttributesDescription
acharacter(len=*)in
bcharacter(len=*)in

suggestions ​

Attributes: pure

Returns: character(len=:)

fortran
function suggestions(token, candidates, case_insensitive) result(hint)

Arguments

NameTypeIntentAttributesDescription
tokencharacter(len=*)in
candidatestype(flap_string)in
case_insensitivelogicalin

Call graph

wstrip ​

Attributes: pure

Returns: character(len=:)

fortran
function wstrip(string) result(newstring)

Arguments

NameTypeIntentAttributesDescription
stringcharacter(len=*)in

Call graph