LiteralText
Represents the literal text that is found in a parsed format string.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Class
- Namespace: Unity.SmartStrings.Core.Parsing
- Assembly: UnityEngine.SmartStringsModule
- Inherits from: FormatItem
public class LiteralText : FormatItem
Methods
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 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. |