#include <menu_helpers.h>
Definition at line 42 of file menu_helpers.h.
struct menu_helpers::name_to_guid_table::entry |
struct menu_helpers::name_to_guid_table::search_entry |
Definition at line 55 of file menu_helpers.h.
Data Fields |
const char * |
m_name |
|
unsigned |
m_name_len |
|
menu_helpers::name_to_guid_table::name_to_guid_table |
( |
| ) |
|
menu_helpers::name_to_guid_table::~name_to_guid_table |
( |
| ) |
|
int menu_helpers::name_to_guid_table::entry_compare |
( |
const entry & |
entry1, |
|
|
const entry & |
entry2 |
|
) |
| |
|
staticprivate |
Definition at line 191 of file menu_helpers.cpp.
int SHARED_EXPORT stricmp_utf8(const char *p1, const char *p2)
int menu_helpers::name_to_guid_table::entry_compare_search |
( |
const entry & |
entry1, |
|
|
const search_entry & |
entry2 |
|
) |
| |
|
staticprivate |
Definition at line 186 of file menu_helpers.cpp.
188 return stricmp_utf8_ex(entry1.m_name,~0,entry2.m_name,entry2.m_name_len);
int SHARED_EXPORT stricmp_utf8_ex(const char *p1, t_size len1, const char *p2, t_size len2)
bool menu_helpers::name_to_guid_table::search |
( |
const char * |
p_name, |
|
|
unsigned |
p_name_len, |
|
|
GUID & |
p_out |
|
) |
| |
Definition at line 196 of file menu_helpers.cpp.
208 unsigned n, m = ptr->get_num_items();
211 assert(dataptr <
m_data.get_size());
213 ptr->get_item_name(n,nametemp);
214 m_data[dataptr].m_name = _strdup(nametemp);
215 m_data[dataptr].m_guid = ptr->get_item_guid(n);
219 assert(dataptr ==
m_data.get_size());
225 search_entry temp = {p_name,p_name_len};
228 p_out =
m_data[index].m_guid;
static void sort_t(t_container &p_data, t_compare p_compare, t_size p_count)
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
bool next(service_ptr_t< t_query > &p_out)
string8_t< pfc::alloc_fast_aggressive > string8_fastalloc
bool bsearch_t(t_size p_count, const t_container &p_container, t_compare p_compare, const t_param &p_param, t_size &p_index)
bool menu_helpers::name_to_guid_table::m_inited |
|
private |
The documentation for this class was generated from the following files: