public BString ToLower() { byte[] b = new byte[this.Length]; for (int i = 0; i < this.Length; i++) { b[i] = BStringEncoding.ToLower(this._elements[i]); } return(new BString(b)); }
public static int CompareWeakIgnoreCase(BString A, BString B) { if (object.ReferenceEquals(A, null) || object.ReferenceEquals(B, null)) { return(-1); } for (int i = 0; i < Math.Min(A.Length, B.Length); i++) { if (A[i] != B[i]) { return(BStringEncoding.ToLower(A[i]) < BStringEncoding.ToLower(B[i]) ? -1 : 1); } } return(0); }