![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
#include <deeplima/utils/str_index.h>
Public Types | |
| typedef S | string_t |
| typedef U | ustring_t |
| typedef I | idx_t |
Public Member Functions | |
| idx_t | get_idx (const char *p, size_t len) |
| idx_t | get_idx (const string_t &str) |
| idx_t | get_idx (const ustring_t &ustr) |
| const S & | get_str (const idx_t idx) const |
| const U & | get_ustr (const idx_t idx) |
| accessor with side effect. | |
| const U & | get_ustr (const idx_t idx) const |
| size_t | size () const |
Protected Attributes | |
| std::unordered_map< string_t, idx_t > | m_str2idx |
| std::unordered_map< idx_t, string_t > | m_idx2str |
| std::unordered_map< idx_t, ustring_t > | m_idx2ustr |
| std::wstring_convert< std::codecvt_utf8< char32_t >, char32_t > | m_cvt |
Definition at line 17 of file str_index.h.
| typedef I deeplima::TStringIndex< S, U, I >::idx_t |
Definition at line 22 of file str_index.h.
| typedef S deeplima::TStringIndex< S, U, I >::string_t |
Definition at line 20 of file str_index.h.
| typedef U deeplima::TStringIndex< S, U, I >::ustring_t |
Definition at line 21 of file str_index.h.
|
inline |
Definition at line 24 of file str_index.h.
|
inline |
Definition at line 30 of file str_index.h.
|
inline |
Definition at line 52 of file str_index.h.
|
inline |
Definition at line 59 of file str_index.h.
|
inline |
accessor with side effect.
Gets its result from an index or store it there before returning it
Definition at line 76 of file str_index.h.
|
inline |
Definition at line 95 of file str_index.h.
|
inline |
Definition at line 106 of file str_index.h.
|
protected |
Definition at line 116 of file str_index.h.
|
protected |
Definition at line 113 of file str_index.h.
|
mutableprotected |
Definition at line 114 of file str_index.h.
|
protected |
Definition at line 112 of file str_index.h.