public struct StringCache
The string cache is used for string interning.
It will only story a single copy of any string that it is asked to hold.
Interned strings can be compared for equality by comparing their .ptr
field.
Default and postbilt constructors are disabled. When a StringCache goes out
of scope, the memory held by it is freed.
Enums
Functions
this | | |
intern | | Caches a string. |
intern | | Caches a string. |
intern | | Caches a string as above, but uses the given hash code instead of
calculating one itself. Use this alongside hashStep() can reduce the
amount of work necessary when lexing dynamic tokens. |
hashStep | | Incremental hashing.
|