|
Open Chinese Convert 1.3.2
A project for conversion between Traditional and Simplified Chinese
|
Classes | |
| struct | Match |
Public Member Functions | |
| PrefixMatch (const DictPtr &dict) | |
| Match | MatchPrefix (const char *word, size_t len) const |
| PrefixMatchView | MatchPrefixView (const char *word, size_t len) const |
| Like MatchPrefix but returns non-owning string_view fields without copying key or value into thread-local storage. | |
| PrefixMatchView opencc::PrefixMatch::MatchPrefixView | ( | const char * | word, |
| size_t | len ) const |
Like MatchPrefix but returns non-owning string_view fields without copying key or value into thread-local storage.
Lifetime of the returned views:
word) or into PrefixMatch-owned table storage (table-path LeafMatcher). Callers must not assume one or the other; copy if the key needs to outlive the current input position.