相关文章推荐
细心的苹果  ·  Android ...·  3 月前    · 
茫然的雪糕  ·  超分之VESPCN-CSDN博客·  6 月前    · 
坚强的葫芦  ·  使用 AWS CLI ...·  1 年前    · 

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge
[Android.Runtime.Register("compareToIgnoreCase", "(Ljava/lang/String;)I", "")]
public int CompareToIgnoreCase (string str);
[<Android.Runtime.Register("compareToIgnoreCase", "(Ljava/lang/String;)I", "")>]
member this.CompareToIgnoreCase : string -> int

Parameters

a negative integer, zero, or a positive integer as the specified String is greater than, equal to, or less than this String, ignoring case considerations.

Attributes
RegisterAttribute

Remarks

Compares two strings lexicographically, ignoring case differences. This method returns an integer whose sign is that of calling compareTo with normalized versions of the strings where case differences have been eliminated by calling Character.toLowerCase(Character.toUpperCase(character)) on each character.

Note that this method does <em>not</em> take locale into account, and will result in an unsatisfactory ordering for certain locales. The java.text.Collator class provides locale-sensitive comparison.

Added in 1.2.

Java documentation for java.lang.String.compareToIgnoreCase(java.lang.String) .

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.