文档

Unity Engine

Unity Engine

CompareTo

Returns the lexicographical sort order of this string relative to another.
阅读时间1 分钟最后更新于 1 个月前

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

other

A
System.String
to compare with.

Returns

Type

Description

intAn 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

intA 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

intA 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

intA 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

intA 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

intA number denoting the lexicographical sort order of this string relative to the other: