public static object Match(RubyScope /*!*/ scope, ClrName /*!*/ self, [NotNull] RubyRegex /*!*/ regex) { return(MutableStringOps.Match(scope, GetRubyName(scope.RubyContext, self), regex)); }
public static int Compare(RubyContext /*!*/ context, ClrName /*!*/ self, [NotNull] RubySymbol /*!*/ other) { // TODO: do not create MS return(-Math.Sign(other.CompareTo(GetRubyName(context, self)))); }
public static object Compare(BinaryOpStorage /*!*/ comparisonStorage, RespondToStorage /*!*/ respondToStorage, ClrName /*!*/ self, object other) { return(MutableStringOps.Compare(comparisonStorage, respondToStorage, self.MangledName, other)); }
public static int Compare(ClrName /*!*/ self, [DefaultProtocol, NotNull] string /*!*/ other) { return(Math.Sign(String.CompareOrdinal(self.MangledName, other))); }
public static int Compare(ClrName /*!*/ self, [NotNull] ClrName /*!*/ other) { return(String.CompareOrdinal(self.MangledName, other.MangledName)); }
public static bool IsEmpty(ClrName /*!*/ self) { return(self.MangledName.Length == 0); }
public static bool IsEqual(ClrName /*!*/ self, [NotNull] ClrName /*!*/ other) { return(self.Equals(other)); }
public static RubySymbol /*!*/ ToSymbol(RubyContext /*!*/ context, ClrName /*!*/ self) { return(context.EncodeIdentifier(self.MangledName)); }
public static bool IsEqual(ClrName /*!*/ self, [DefaultProtocol, NotNull] string /*!*/ other) { return(self.MangledName == other); }
public static MutableString /*!*/ Dump(ClrName /*!*/ self) { return(ClrString.Dump(self.MangledName)); }
public static MutableString /*!*/ GetRubyName(RubyContext /*!*/ context, ClrName /*!*/ self) { return(MutableString.Create(self.MangledName, context.GetIdentifierEncoding())); }
public static MutableString /*!*/ Inspect(ClrName /*!*/ self) { return(ClrString.Inspect(self.MangledName)); }
public static int GetLength(ClrName /*!*/ self) { return(self.MangledName.Length); }
public static RubyEncoding /*!*/ GetEncoding(ClrName /*!*/ self) { return(RubyEncoding.UTF8); }
public static object Match(ClrName /*!*/ self, [NotNull] ClrName /*!*/ str) { throw RubyExceptions.CreateTypeError("type mismatch: ClrName given"); }
public static bool IsEqual(ClrName /*!*/ self, [NotNull] MutableString /*!*/ other) { return(self.MangledName == other.ConvertToString()); }
public static object Match(BinaryOpStorageWithScope /*!*/ storage, RubyScope /*!*/ scope, ClrName /*!*/ self, object obj) { return(MutableStringOps.Match(storage, scope, GetRubyName(scope.RubyContext, self), obj)); }
public static object Match(BinaryOpStorageWithScope /*!*/ storage, RubyScope /*!*/ scope, ClrName /*!*/ self, [DefaultProtocol, NotNull] MutableString /*!*/ pattern) { return(MutableStringOps.Match(storage, scope, GetRubyName(scope.RubyContext, self), pattern)); }