Retrieves a Tokens collection's parent uCalc instance and verifies its identity by reading a description.
Safely renames a variable without corrupting a string literal, demonstrating the Transformer's token-awareness.
Setting default uCalc instance with uCalc.IsDefault(); also clearing all uCalc instances from default list
Shows how a full reset clears all rules and input, allowing a transformer object to be reconfigured from a clean slate.
Shows how importing a comment token definition can prevent find-and-replace rules from incorrectly modifying text inside comments.
Shows how the constructor's context (default vs. specific instance) affects variable resolution during parsing.
Shows how to use WasModified to avoid an expensive operation, like saving to a file, if no changes were made during a data sanitization process.
Shows the creation of a uCalc.String and its use of a fluent, token-aware API to modify text in-place.
Shows the RAII pattern in C++ using a stack-allocated object and the `Owned()` method for automatic cleanup.