Exemple #1
0
 public int CompareTo(RubySymbol other)
 {
     return(_string.CompareTo(other._string));
 }
Exemple #2
0
 public static int Compare(string /*!*/ self, [NotNull] MutableString /*!*/ other)
 {
     // TODO: do not create MS
     return(-Math.Sign(other.CompareTo(MutableString.Create(self, RubyEncoding.UTF8))));
 }
Exemple #3
0
 public static int Compare(RubyContext /*!*/ context, ClrName /*!*/ self, [NotNull] MutableString /*!*/ other)
 {
     // TODO: do not create MS
     return(-Math.Sign(other.CompareTo(GetRubyName(context, self))));
 }
 public static int Compare(string /*!*/ self, [NotNull] MutableString /*!*/ other)
 {
     return(-Math.Sign(other.CompareTo(self)));
 }