apt_string_table.h File Reference

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_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

typedef typedefAPT_BEGIN_EXTERN_C struct apt_str_table_item_t apt_str_table_item_t

String table item declaration


Function Documentation

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:
table the table to search for the id
size the size of the table
value the string to search for
Returns:
the id associated with the string, or invalid id if string cannot be matched
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:
table the table to get string from
size the size of the table
id the id to get string by
Returns:
the string associated with the id, or NULL if the id is invalid
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by  doxygen 1.6.2