Ejemplo n.º 1
0
        public static RubySymbol /*!*/ ToSymbol(RubyContext /*!*/ context, string /*!*/ self)
        {
            // Cannot convert a string that contains \0 to a symbol
            if (self.IndexOf('\0') >= 0)
            {
                throw RubyExceptions.CreateArgumentError("symbol string may not contain '\0'");
            }

            return(context.CreateSymbol(self, RubyEncoding.UTF8));
        }
Ejemplo n.º 2
0
 public static RubySymbol/*!*/ ToSymbol(RubyContext/*!*/ context, MutableString/*!*/ self) {
     return context.CreateSymbol(self);
 }
Ejemplo n.º 3
0
 public static object HasKey(RubyContext /*!*/ context, Thread /*!*/ self, [NotNull] MutableString /*!*/ key)
 {
     return(HasKey(self, context.CreateSymbol(key)));
 }
Ejemplo n.º 4
0
 public static object SetElement(RubyContext /*!*/ context, Thread /*!*/ self, [NotNull] MutableString /*!*/ key, object value)
 {
     return(SetElement(self, context.CreateSymbol(key), value));
 }
Ejemplo n.º 5
0
 public static object SetElement(RubyContext/*!*/ context, Thread/*!*/ self, [NotNull]MutableString/*!*/ key, object value)
 {
     return SetElement(self, context.CreateSymbol(key), value);
 }
Ejemplo n.º 6
0
 public static object HasKey(RubyContext/*!*/ context, Thread/*!*/ self, [NotNull]MutableString/*!*/ key)
 {
     return HasKey(self, context.CreateSymbol(key));
 }
Ejemplo n.º 7
0
 public static RubySymbol/*!*/ Succ(RubyContext/*!*/ context, RubySymbol/*!*/ self) {
     return context.CreateSymbol(MutableStringOps.Succ(self.String));
 }
Ejemplo n.º 8
0
 public static RubySymbol/*!*/ Capitalize(RubyContext/*!*/ context, RubySymbol/*!*/ self) {
     return context.CreateSymbol(MutableStringOps.Capitalize(self.String));
 }
Ejemplo n.º 9
0
        public static RubySymbol/*!*/ ToSymbol(RubyContext/*!*/ context, string/*!*/ self) {
            // Cannot convert a string that contains \0 to a symbol
            if (self.IndexOf('\0') >= 0) {
                throw RubyExceptions.CreateArgumentError("symbol string may not contain '\0'");
            }

            return context.CreateSymbol(self, RubyEncoding.UTF8);
        }
Ejemplo n.º 10
0
 public static RubySymbol /*!*/ Succ(RubyContext /*!*/ context, RubySymbol /*!*/ self)
 {
     return(context.CreateSymbol(MutableStringOps.Succ(self.String)));
 }
Ejemplo n.º 11
0
 public static RubySymbol /*!*/ Capitalize(RubyContext /*!*/ context, RubySymbol /*!*/ self)
 {
     return(context.CreateSymbol(MutableStringOps.Capitalize(self.String)));
 }