public SqlChars(SqlString value) { if (value.IsNull) { this.notNull = false; this.buffer = null; } else { this.notNull = true; this.buffer = value.Value.ToCharArray(); this.storage = StorageState.Buffer; } }
public int CompareTo(SqlString value) { return this.CompareSqlString(value); }
public static SqlBoolean NotEquals(SqlString x, SqlString y) { return (x != y); }
public static SqlString Add(SqlString x, SqlString y) { return (x + y); }
public static SqlBoolean LessThan(SqlString x, SqlString y) { return (x < y); }
public static SqlBoolean LessThanOrEqual(SqlString x, SqlString y) { return (x <= y); }
public static SqlBoolean GreaterThanOrEqual(SqlString x, SqlString y) { return (x >= y); }
public static SqlBoolean GreaterThan(SqlString x, SqlString y) { return (x > y); }
public static SqlBoolean Equals(SqlString x, SqlString y) { return (x == y); }
public static SqlString Concat(SqlString x, SqlString y) { return (x + y); }
private int CompareSqlString(SqlString value) { if (value.IsNull) { return 1; } else if (value.CompareOptions != this.CompareOptions) { throw new SqlTypeException(Locale.GetText("Two strings to be compared have different collation")); } // else // return String.Compare (this.value, ((SqlString)value).Value, (this.SqlCompareOptions & SqlCompareOptions.IgnoreCase) != 0, this.CultureInfo); return this.CultureInfo.CompareInfo.Compare(this.value, value.Value, this.CompareOptions); }