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