Struct QueryToken
Represents a token of a query string.
Inherited Members
Namespace: UnityEditor.Search
Assembly: com.unity.quicksearch.dll
Syntax
public readonly struct QueryToken
Constructors
QueryToken(string, int)
Creates a token from a string and a position.
Declaration
public QueryToken(string text, int position)
Parameters
Type | Name | Description |
---|---|---|
string | text | The value of the token. |
int | position | The position of the token in the entire query string. |
QueryToken(string, int, int)
Creates a token from a string, a position and a length.
Declaration
public QueryToken(string text, int position, int length)
Parameters
Type | Name | Description |
---|---|---|
string | text | The value of the token. |
int | position | The position of the token in the entire query string. |
int | length | The length of the token. |
Properties
length
The length of the token. Can be different than the length of the text.
Declaration
public int length { get; }
Property Value
Type | Description |
---|---|
int |
position
The position of the token in the entire query string.
Declaration
public int position { get; }
Property Value
Type | Description |
---|---|
int |
text
The text representing the token.
Declaration
public string text { get; }
Property Value
Type | Description |
---|---|
string |