Esempio n. 1
0
 public int CompareTo(RubySymbol other)
 {
     return(_string.CompareTo(other._string));
 }
Esempio n. 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))));
 }
Esempio n. 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))));
 }
Esempio n. 4
0
 public static int Compare(string /*!*/ self, [NotNull] MutableString /*!*/ other)
 {
     return(-Math.Sign(other.CompareTo(self)));
 }