FMI Library: part of JModelica.org
Typedefs | Functions
A set of strings

Typedefs

typedef struct jm_vector_jm_string jm_string_set
 Set of string is based on a vector. More...
 

Functions

static jm_string jm_string_set_find (jm_string_set *s, jm_string str)
 Find a string in a set. More...
 
static size_t jm_string_set_find_index (jm_string_set *s, jm_string str)
 Find index of a string in a set. More...
 
static jm_string jm_string_set_put (jm_string_set *s, jm_string str)
 Put an element in the set if it is not there yet. More...
 

Detailed Description

Typedef Documentation

typedef struct jm_vector_jm_string jm_string_set

Set of string is based on a vector.

Definition at line 43 of file jm_string_set.h.

Function Documentation

static jm_string jm_string_set_find ( jm_string_set s,
jm_string  str 
)
static

Find a string in a set.

Parameters
sA string set.
strSearch string.
Returns
If found returns a pointer to the string saved in the set. If not found returns NULL.

Definition at line 52 of file jm_string_set.h.

static size_t jm_string_set_find_index ( jm_string_set s,
jm_string  str 
)
static

Find index of a string in a set.

Parameters
sA string set.
strSearch string.
Returns
If found returns the index to the string saved in the set. If not found returns the insertion index of the string.

Definition at line 65 of file jm_string_set.h.

static jm_string jm_string_set_put ( jm_string_set s,
jm_string  str 
)
static

Put an element in the set if it is not there yet.

Parameters
sA string set.
strString to put.
Returns
A pointer to the inserted (or found) element or zero pointer if failed.

Definition at line 94 of file jm_string_set.h.