Generic String Table. More...
#include "apt_string.h"
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_t * | apt_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) |
Generic String Table.
typedef typedefAPT_BEGIN_EXTERN_C struct apt_str_table_item_t apt_str_table_item_t |
String table item declaration
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.
table | the table to search for the id | |
size | the size of the table | |
value | the string to search for |
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.
table | the table to get string from | |
size | the size of the table | |
id | the id to get string by |