
Public Member Functions | |
| preparation_cache (const ::Stringprep_profile *profile) | |
| Glib::ustring | get_prepped (const Glib::ustring &original) |
| void | clean_cache () |
Static Public Member Functions | |
| static Glib::ustring | prepare_node (const Glib::ustring &original) |
| static Glib::ustring | prepare_domain (const Glib::ustring &original) |
| static Glib::ustring | prepare_resource (const Glib::ustring &original) |
The parent class xhash uses the original string as keys and the value is a pair of the prepared string (empty string if prepared string equals the original string) and the the time when the cache entry has been last used.
| xmppd::preparation_cache::preparation_cache | ( | const ::Stringprep_profile * | profile | ) |
create a new string prep cache instance
| profile | the stringprep profile to use (stringprep_xmpp_nodeprep, stringprep_nameprep, or stringprep_xmpp_resourceprep) |
| Glib::ustring xmppd::preparation_cache::get_prepped | ( | const Glib::ustring & | original | ) |
get the prepared version of the original string
| original | the string to prepare |
| std::invalid_argument | if the string cannot be prepared |
References clean_cache().
Referenced by prepare_domain(), prepare_node(), and prepare_resource().
| void xmppd::preparation_cache::clean_cache | ( | ) |
clean the preparation cache
Referenced by get_prepped().
| Glib::ustring xmppd::preparation_cache::prepare_node | ( | const Glib::ustring & | original | ) | [static] |
prepare a node
| original | the string to prepare as a node |
| std::invalid_argument | if node cannot be prepared |
References get_prepped().
Referenced by xmppd::jabberid::set_node().
| Glib::ustring xmppd::preparation_cache::prepare_domain | ( | const Glib::ustring & | original | ) | [static] |
prepare a domain
| original | the string to prepare as a domain |
| std::invalid_argument | if domain cannot be prepared |
References get_prepped().
Referenced by xmppd::jabberid::set_domain().
| Glib::ustring xmppd::preparation_cache::prepare_resource | ( | const Glib::ustring & | original | ) | [static] |
prepare a resource
| original | the string to prepare as a resource |
| std::invalid_argument | if the resource cannot be prepared |
References get_prepped().
Referenced by xmppd::jabberid::set_resource().
1.5.5