CompareTo
Returns the lexicographical sort order of this string relative to another.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
CompareTo(string)
Returns the lexicographical sort order of this string relative to another.
[ExcludeFromBurstCompatTesting("Takes managed string")]public int CompareTo(string other)
Parameters
A to compare with.
System.StringReturns
Type | Description |
|---|---|
| int | An integer denoting the lexicographical sort order of this string relative to the other: |
CompareTo(FixedString32Bytes)
Returns the lexicographical sort order of this string relative to another.
public int CompareTo(FixedString32Bytes other)
Parameters
A string to compare with.
Returns
Type | Description |
|---|---|
| int | A number denoting the lexicographical sort order of this string relative to the other: |
CompareTo(FixedString64Bytes)
Returns the lexicographical sort order of this string relative to another.
public int CompareTo(FixedString64Bytes other)
Parameters
A string to compare with.
Returns
Type | Description |
|---|---|
| int | A number denoting the lexicographical sort order of this string relative to the other: |
CompareTo(FixedString128Bytes)
Returns the lexicographical sort order of this string relative to another.
public int CompareTo(FixedString128Bytes other)
Parameters
A string to compare with.
Returns
Type | Description |
|---|---|
| int | A number denoting the lexicographical sort order of this string relative to the other: |
CompareTo(FixedString512Bytes)
Returns the lexicographical sort order of this string relative to another.
public int CompareTo(FixedString512Bytes other)
Parameters
A string to compare with.
Returns
Type | Description |
|---|---|
| int | A number denoting the lexicographical sort order of this string relative to the other: |
CompareTo(FixedString4096Bytes)
Returns the lexicographical sort order of this string relative to another.
public int CompareTo(FixedString4096Bytes other)
Parameters
A string to compare with.
Returns
Type | Description |
|---|---|
| int | A number denoting the lexicographical sort order of this string relative to the other: |