Documentation for module string_table

generates a unique id number for a string (str2id) that can be used two compare two strings. I.e. if (str1==str2) => str2id(str1)==str2id(str2) if (str1.NE.str2) => str2id(str1).NE.str2id(str2) and the other way around. Given an id, the string can be retrieved.

source: string_table.F
Loading...

public Subroutines/Functions:

FUNCTION
id2str (id)
returns the string associated with a given id
FUNCTION
s2s (str)
converts a string in a string of default_string_length
FUNCTION
INTEGER
str2id (str)
returns a unique id for a given string, and stores the string for later retrieval using the id.
allocates the string table
deallocates the string table

FUNCTIONid2str(id)

returns the string associated with a given id

Return Value ::
Arguments:
INTEGER
:: id the id to be converted into a string

FUNCTIONs2s(str)

converts a string in a string of default_string_length

Return Value ::
Arguments:
CHARACTER(*)
:: str ...

FUNCTIONstr2id(str)

returns a unique id for a given string, and stores the string for later retrieval using the id.

Return Value ::
INTEGER
Arguments:
CHARACTER(*)
:: str the string to be stored (default_string_length)

SUBROUTINEstring_table_allocate()

allocates the string table

SUBROUTINEstring_table_deallocate(iw)

deallocates the string table

Arguments:
INTEGER,
INTENT(in)
:: iw a unit to which some info about the table usage can be printed