class in Unity.SmartStrings.Core.Parsing
/
Inherits from:Unity.SmartStrings.Core.Parsing.FormatItem
Represents the literal text that is found in a parsed format string.
| Method | Description |
|---|---|
| AsSpan | Gets the character span for the LiteralText, with escaped characters converted. Note: The Parser puts each escaped character of an input string into its own LiteralText item. |
| Clear | Clears the LiteralText item. This method gets called by Unity.SmartStrings.Pooling.SmartPools.LiteralTextPool when it releases an instance. |
| Initialize | Initializes the LiteralText instance, representing the literal text that is found in a parsed format string. |
| ToString | Get the string representation of the LiteralText, with escaped characters converted. Note: The Parser puts each escaped character of an input string into its own LiteralText item. |
| Property | Description |
|---|---|
| BaseString | Gets the base format string. |
| EndIndex | The end index is pointing to ONE POSITION AFTER the last character of item. |
| Length | Gets the result of FormatItem.EndIndex minus FormatItem.StartIndex. |
| ParentFormatItem | The parent FormatItem of this instance, null if no parent exists. |
| RawText | Retrieves the raw text that this item represents. |
| SmartSettings | The settings for formatter and parser. |
| StartIndex | The start index is pointing to the first character of item. |