TUV-x
Loading...
Searching...
No Matches
Data Types | Modules | Functions/Subroutines | Variables
string.F90 File Reference

The musica_string module. More...

Data Types

type  musica_string::string_t
 Generic string type. More...
 
interface  musica_string::to_char
 Converts values to character arrays. More...
 

Modules

module  musica_string
 The string_t type and related functions.
 

Functions/Subroutines

subroutine musica_string::string_assign_char (to, from)
 Assigns a string from a character array. More...
 
subroutine musica_string::string_assign_int (to, from)
 Assigns a string from an integer. More...
 
subroutine musica_string::string_assign_real (to, from)
 Assigns a string from a real number. More...
 
subroutine musica_string::string_assign_double (to, from)
 Assigns a string from a double precision real number. More...
 
subroutine musica_string::string_assign_logical (to, from)
 Assigns a string from a logical. More...
 
subroutine musica_string::char_assign_string (to, from)
 Assign a character array from a string. More...
 
subroutine musica_string::real_assign_string (to, from)
 Assign a real from a string. More...
 
subroutine musica_string::double_assign_string (to, from)
 Assign a double precision real from a string. More...
 
subroutine musica_string::int_assign_string (to, from)
 Assign an integer from a string. More...
 
subroutine musica_string::logical_assign_string (to, from)
 Assigns a logical from a string. More...
 
elemental type(string_t) function musica_string::string_join_string (a, b)
 Joins a string to a string. More...
 
elemental type(string_t) function musica_string::string_join_char (a, b)
 Joins a string to a character array. More...
 
elemental type(string_t) function musica_string::string_join_int (a, b)
 Joins a string to an integer. More...
 
elemental type(string_t) function musica_string::string_join_real (a, b)
 Joins a string to a real number. More...
 
elemental type(string_t) function musica_string::string_join_double (a, b)
 Joins a string to a double precision real number. More...
 
elemental type(string_t) function musica_string::string_join_logical (a, b)
 Joins a string to a logical. More...
 
logical elemental function musica_string::string_equals_string (a, b)
 Compares a string to a string for equality. More...
 
logical elemental function musica_string::string_equals_char (a, b)
 Compares a string to a character array for equality. More...
 
logical elemental function musica_string::string_equals_int (a, b)
 Compares a string to a integer for equality. More...
 
logical elemental function musica_string::string_equals_real (a, b)
 Compares a string to a real number for equality. More...
 
logical elemental function musica_string::string_equals_double (a, b)
 Compares a string to a double-precision real number for equality. More...
 
logical elemental function musica_string::string_equals_logical (a, b)
 Compares a string to a logical for equality. More...
 
logical elemental function musica_string::string_not_equals_string (a, b)
 Compares a string to a string for equality. More...
 
logical elemental function musica_string::string_not_equals_char (a, b)
 Compares a string to a character array for equality. More...
 
logical elemental function musica_string::string_not_equals_int (a, b)
 Compares a string to a integer for equality. More...
 
logical elemental function musica_string::string_not_equals_real (a, b)
 Compares a string to a real number for equality. More...
 
logical elemental function musica_string::string_not_equals_double (a, b)
 Compares a string to a double-precision real number for equality. More...
 
logical elemental function musica_string::string_not_equals_logical (a, b)
 Compares a string to a logical for equality. More...
 
elemental integer function musica_string::length (this)
 Returns the length of the string. More...
 
type(string_t) function musica_string::to_upper (this)
 Converts a string to upper case. More...
 
type(string_t) function musica_string::to_lower (this)
 Converts a string to lower case. More...
 
type(string_t) function musica_string::substring (this, start_index, length)
 Returns a substring. More...
 
type(string_t) function, dimension(:), allocatable musica_string::split_char (this, splitter, compress)
 Splits a string on a substring. More...
 
type(string_t) function, dimension(:), allocatable musica_string::split_string (this, splitter, compress)
 Splits a string on a substring. More...
 
type(string_t) function musica_string::replace (this, from, to)
 Replaces substrings within a string. More...
 
character(len=:) function, allocatable musica_string::string_to_char (this)
 Converts a string to a character array. More...
 
elemental type(string_t) function musica_string::char_join_string (a, b)
 Joins a character array to a string. More...
 
elemental type(string_t) function musica_string::int_join_string (a, b)
 Joins an integer to a string. More...
 
elemental type(string_t) function musica_string::real_join_string (a, b)
 Joins a real number to a string. More...
 
elemental type(string_t) function musica_string::double_join_string (a, b)
 Joins a double precision real number to a string. More...
 
elemental type(string_t) function musica_string::logical_join_string (a, b)
 Joins a logical to a string. More...
 
logical elemental function musica_string::char_equals_string (a, b)
 Compares a character array to a string for equality. More...
 
logical elemental function musica_string::int_equals_string (a, b)
 Compares an integer to a string for equality. More...
 
logical elemental function musica_string::real_equals_string (a, b)
 Compares a real number to a string for equality. More...
 
logical elemental function musica_string::double_equals_string (a, b)
 Compares a double-precision real number to a string for equality. More...
 
logical elemental function musica_string::logical_equals_string (a, b)
 Compares a logical to a string for equality. More...
 
logical elemental function musica_string::char_not_equals_string (a, b)
 Compares a character array to a string for equality. More...
 
logical elemental function musica_string::int_not_equals_string (a, b)
 Compares an integer to a string for equality. More...
 
logical elemental function musica_string::real_not_equals_string (a, b)
 Compares a real number to a string for equality. More...
 
logical elemental function musica_string::double_not_equals_string (a, b)
 Compares a double-precision real number to a string for equality. More...
 
logical elemental function musica_string::logical_not_equals_string (a, b)
 Compares a logical to a string for equality. More...
 
integer function musica_string::pack_size (this, comm)
 Returns the size of a binary buffer required to pack the string.
 
subroutine musica_string::mpi_pack (this, buffer, position, comm)
 Packs the string onto a character buffer. More...
 
subroutine musica_string::mpi_unpack (this, buffer, position, comm)
 Unpacks a string from a character buffer. More...
 
character(len=kconvertcharlength) function musica_string::int_to_char (val)
 Converts an integer to a char array. More...
 
character(len=kconvertcharlength) function musica_string::real_to_char (val)
 Converts a real number to a char array. More...
 
character(len=kconvertcharlength) function musica_string::double_to_char (val)
 Converts a double-precision real number to a char array. More...
 
character(len=kconvertcharlength) function musica_string::complex_real_to_char (val)
 Converts a real complex number to a char array. More...
 
character(len=kconvertcharlength) function musica_string::complex_double_to_char (val)
 Converts a double-precision real complex number to a char array. More...
 
character(len=kconvertcharlength) function musica_string::logical_to_char (val)
 Converts a logical to a char array. More...
 
subroutine, public musica_string::output_table (header, table, file_unit)
 Output tabular data to a given file unit. More...
 
subroutine musica_string::assert_msg (code, condition, error_message)
 Local assert function. More...
 

Variables

integer(kind=musica_ik), parameter musica_string::kconvertcharlength = 100
 Length of character array for to_char conversions.
 

Detailed Description

The musica_string module.