Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

FixedString512Bytes.CompareTo

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public int CompareTo(string other);

Parameters

Parameter Description
other A System.String to compare with.

Returns

int An integer denoting the lexicographical sort order of this string relative to the other:

0 denotes both strings have the same sort position. -1 denotes that this string should be sorted to precede the other string. +1 denotes that this string should be sorted to follow the other string.

Description

Returns the lexicographical sort order of this string relative to another.


Declaration

public int CompareTo(FixedString32Bytes other);

Parameters

Parameter Description
other A string to compare with.

Returns

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

0 denotes that both strings have the same sort position. -1 denotes that this string should be sorted to precede the other. +1 denotes that this string should be sorted to follow the other.

Description

Returns the lexicographical sort order of this string relative to another.


Declaration

public int CompareTo(FixedString64Bytes other);

Parameters

Parameter Description
other A string to compare with.

Returns

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

0 denotes that both strings have the same sort position. -1 denotes that this string should be sorted to precede the other. +1 denotes that this string should be sorted to follow the other.

Description

Returns the lexicographical sort order of this string relative to another.


Declaration

public int CompareTo(FixedString128Bytes other);

Parameters

Parameter Description
other A string to compare with.

Returns

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

0 denotes that both strings have the same sort position. -1 denotes that this string should be sorted to precede the other. +1 denotes that this string should be sorted to follow the other.

Description

Returns the lexicographical sort order of this string relative to another.


Declaration

public int CompareTo(FixedString512Bytes other);

Parameters

Parameter Description
other A string to compare with.

Returns

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

0 denotes that both strings have the same sort position. -1 denotes that this string should be sorted to precede the other. +1 denotes that this string should be sorted to follow the other.

Description

Returns the lexicographical sort order of this string relative to another.


Declaration

public int CompareTo(FixedString4096Bytes other);

Parameters

Parameter Description
other A string to compare with.

Returns

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

0 denotes that both strings have the same sort position. -1 denotes that this string should be sorted to precede the other. +1 denotes that this string should be sorted to follow the other.

Description

Returns the lexicographical sort order of this string relative to another.