Share

AcUniqueString Class

Class Hierarchy

AcUniqueString

C++

class AcUniqueString;

File

AcUniqueString.h

Description

This class maintains a list of interned strings for quick comparisons. Two interned strings can be compared for equality by doing a straight pointer comparison instead of the more expensive character-by-character comparison.

Returns a unique identifier (pointer) for the input string, to allow fast compares using pointer values instead of strings.

Input strings are converted to lowercase, then are looked up in and stored in an internal map. So "ABC" and "abc" return the same AcUniqueString pointer.

AcUniqueString pointers are valid for the process's lifetime. Input pointer must not be null, and return pointer will not be null.

Links

AcUniqueString Methods

Was this information helpful?