UniMRCP  1.7.0
Data Structures | Typedefs | Functions
apt_string_table.h File Reference

Generic String Table. More...

#include "apt_string.h"
Include dependency graph for apt_string_table.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  apt_str_table_item_t
 

Typedefs

typedef typedefAPT_BEGIN_EXTERN_C struct apt_str_table_item_t apt_str_table_item_t
 

Functions

const apt_str_tapt_string_table_str_get (const apt_str_table_item_t table[], apr_size_t size, apr_size_t id)
 
apr_size_t apt_string_table_id_find (const apt_str_table_item_t table[], apr_size_t size, const apt_str_t *value)
 

Detailed Description

Generic String Table.

Typedef Documentation

◆ apt_str_table_item_t

typedef typedefAPT_BEGIN_EXTERN_C struct apt_str_table_item_t apt_str_table_item_t

String table item declaration

Function Documentation

◆ apt_string_table_id_find()

apr_size_t apt_string_table_id_find ( const apt_str_table_item_t  table[],
apr_size_t  size,
const apt_str_t value 
)

Find the id associated with a given string.

Parameters
tablethe table to search for the id
sizethe size of the table
valuethe string to search for
Returns
the id associated with the string, or invalid id if string cannot be matched

◆ apt_string_table_str_get()

const apt_str_t* apt_string_table_str_get ( const apt_str_table_item_t  table[],
apr_size_t  size,
apr_size_t  id 
)

Get the string by a given id.

Parameters
tablethe table to get string from
sizethe size of the table
idthe id to get string by
Returns
the string associated with the id, or NULL if the id is invalid