Adobe Source Libraries 1.49.0
A collection of C++ libraries.
|
Scope-based runtime context stack for glossary lookups. More...
#include <adobe/xstring.hpp>
Public Types | |
typedef implementation::context_frame_t::callback_proc_t | callback_proc_t |
typedef implementation::context_frame_t::preorder_predicate_t | preorder_predicate_t |
Public Member Functions | |
xstring_context_t (const char *parse_first, const char *parse_last, const line_position_t &parse_info=line_position_t("xstring_context_t")) | |
template<typename I> | |
xstring_context_t (I first_attribute, I last_attribute) | |
template<typename I> | |
xstring_context_t (I first_attribute, I last_attribute, const unsigned char *parse_first, const unsigned char *parse_last, const line_position_t &parse_info=line_position_t("xstring_context_t")) | |
void | set_preorder_predicate (preorder_predicate_t proc) |
void | set_element_handler (callback_proc_t proc) |
~xstring_context_t () |
The xstring_context_t class is used to add context sensitivity to xstring lookups. Example:
There is also a constructor that takes a name/value pair for simple context construction. Example:
There is also a constructor that takes a set of std::pair<adobe::name_t, adobe::name_t> for simple context construction. Example:
Definition at line 258 of file xstring.hpp.
typedef implementation::context_frame_t::callback_proc_t callback_proc_t |
Definition at line 259 of file xstring.hpp.
typedef implementation::context_frame_t::preorder_predicate_t preorder_predicate_t |
Definition at line 260 of file xstring.hpp.
xstring_context_t | ( | const char * | parse_first, |
const char * | parse_last, | ||
const line_position_t & | parse_info = line_position_t("xstring_context_t") ) |
Definition at line 262 of file xstring.hpp.
xstring_context_t | ( | I | first_attribute, |
I | last_attribute ) |
Definition at line 277 of file xstring.hpp.
xstring_context_t | ( | I | first_attribute, |
I | last_attribute, | ||
const unsigned char * | parse_first, | ||
const unsigned char * | parse_last, | ||
const line_position_t & | parse_info = line_position_t("xstring_context_t") ) |
Definition at line 284 of file xstring.hpp.
~xstring_context_t | ( | ) |
Definition at line 308 of file xstring.hpp.
void set_preorder_predicate | ( | preorder_predicate_t | proc | ) |
Definition at line 300 of file xstring.hpp.
void set_element_handler | ( | callback_proc_t | proc | ) |
Definition at line 304 of file xstring.hpp.