|
nany
|
Container for minimizing memory use of duplicate strings. More...
#include <stringrefs.h>
Public Member Functions | |
| StringRefs (StringRefs &&)=default | |
| StringRefs (const StringRefs &) | |
| AnyString | refstr (const AnyString &text) |
| Add a new entry within the catalog. | |
| uint32_t | ref (const AnyString &text) |
| Get the unique id of a string. | |
| bool | exists (const AnyString &text) const |
| Get if a given string is already indexed. | |
| void | clear () |
| Clear the container. | |
| AnyString | operator[] (uint32_t ix) const |
| Retrieve a stored string from its index. | |
| StringRefs & | operator= (const StringRefs &) |
| StringRefs & | operator= (StringRefs &&)=default |
Container for minimizing memory use of duplicate strings.
1.8.12