Method CompareTo
CompareTo(NativeText)
Returns the lexicographical sort order of this string relative to another.
Declaration
public int CompareTo(NativeText other)
Parameters
Type | Name | Description |
---|---|---|
NativeText | other | Another string to compare with. |
Returns
Type | Description |
---|---|
int | A number denoting the lexicographical sort order of this string relative to the other string:
|
CompareTo(ReadOnly)
Returns the lexicographical sort order of this string relative to another.
Declaration
public int CompareTo(NativeText.ReadOnly other)
Parameters
Type | Name | Description |
---|---|---|
NativeText.ReadOnly | other | Another string to compare with. |
Returns
Type | Description |
---|---|
int | A number denoting the lexicographical sort order of this string relative to the other string:
|
CompareTo(string)
Returns the lexicographical sort order of this string relative to another.
Declaration
[ExcludeFromBurstCompatTesting("Takes managed string")]
public int CompareTo(string other)
Parameters
Type | Name | Description |
---|---|---|
string | other | Another string to compare with. |
Returns
Type | Description |
---|---|
int | A number denoting the lexicographical sort order of this string relative to the other string:
|
CompareTo(FixedString32Bytes)
Returns the lexicographical sort order of this string relative to another.
Declaration
public int CompareTo(FixedString32Bytes other)
Parameters
Type | Name | Description |
---|---|---|
FixedString32Bytes | other | Another string to compare with. |
Returns
Type | Description |
---|---|
int | A number denoting the lexicographical sort order of this string relative to the other string:
|
CompareTo(FixedString64Bytes)
Returns the lexicographical sort order of this string relative to another.
Declaration
public int CompareTo(FixedString64Bytes other)
Parameters
Type | Name | Description |
---|---|---|
FixedString64Bytes | other | Another string to compare with. |
Returns
Type | Description |
---|---|
int | A number denoting the lexicographical sort order of this string relative to the other string:
|
CompareTo(FixedString128Bytes)
Returns the lexicographical sort order of this string relative to another.
Declaration
public int CompareTo(FixedString128Bytes other)
Parameters
Type | Name | Description |
---|---|---|
FixedString128Bytes | other | Another string to compare with. |
Returns
Type | Description |
---|---|
int | A number denoting the lexicographical sort order of this string relative to the other string:
|
CompareTo(FixedString512Bytes)
Returns the lexicographical sort order of this string relative to another.
Declaration
public int CompareTo(FixedString512Bytes other)
Parameters
Type | Name | Description |
---|---|---|
FixedString512Bytes | other | Another string to compare with. |
Returns
Type | Description |
---|---|
int | A number denoting the lexicographical sort order of this string relative to the other string:
|
CompareTo(FixedString4096Bytes)
Returns the lexicographical sort order of this string relative to another.
Declaration
public int CompareTo(FixedString4096Bytes other)
Parameters
Type | Name | Description |
---|---|---|
FixedString4096Bytes | other | Another string to compare with. |
Returns
Type | Description |
---|---|
int | A number denoting the lexicographical sort order of this string relative to the other string:
|