class in Unity.SmartStrings.Core.Parsing
/
Inherits from:Unity.SmartStrings.Core.Parsing.FormatItem
Represents a single selector in a Placeholder. E.g.: {selector0.selector1?.selector2}, while "." and "?." and "?[]" are operators.
| Property | Description |
|---|---|
| Operator | Gets the operator characters. |
| SelectorIndex | The index of the selector in a multi-part selector. Example: {Person.Birthday.Year} has 3 selectors, and Year has a SelectorIndex of 2. |
| Method | Description |
|---|---|
| Clear | Clears the Selector. This method gets called by Unity.SmartStrings.Pooling.SmartPools.SelectorPool when it releases an instance. |
| Initialize | Initializes this Selector instance. |
| 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. |
| Method | Description |
|---|---|
| AsSpan | Gets the ReadOnlySpan_1 representation of this FormatItem. |
| ToString | Gets the string representation of this FormatItem. |
| Method | Description |
|---|---|
| Initialize | Initializes the FormatItem or the derived class. |