|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Orders and matches text. The renderer injects the toolkit's collator for the user's locale; CodePointCollator is the default. More...
#include <data_source.hpp>
Public Member Functions | |
| virtual std::string | sortKey (std::string_view text) const =0 |
A key whose byte order is the collation order of text. | |
| virtual std::string | fold (std::string_view text) const =0 |
text folded to primary strength: two texts a user would call equal ignoring case and accents fold to the same bytes. | |
| virtual std::shared_ptr< TextCollator const > | cloneForTask () const |
| An instance for one task to use alone. | |
Orders and matches text. The renderer injects the toolkit's collator for the user's locale; CodePointCollator is the default.
Called from the engine's worker. An implementation either is safe to call concurrently, and returns null from cloneForTask, or returns a fresh instance there that one task uses alone.
Definition at line 225 of file data_source.hpp.
|
nodiscardpure virtual |
A key whose byte order is the collation order of text.
| text | The text to order. |
Implemented in morph::table::CodePointCollator.
|
nodiscardpure virtual |
text folded to primary strength: two texts a user would call equal ignoring case and accents fold to the same bytes.
| text | The text to fold. |
Implemented in morph::table::CodePointCollator.
|
inlinenodiscardvirtual |
An instance for one task to use alone.
Definition at line 242 of file data_source.hpp.