Пример #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));
        }
Пример #2
0
 public static RubySymbol/*!*/ ToSymbol(RubyContext/*!*/ context, MutableString/*!*/ self) {
     return context.CreateSymbol(self);
 }
Пример #3
0
 public static object HasKey(RubyContext /*!*/ context, Thread /*!*/ self, [NotNull] MutableString /*!*/ key)
 {
     return(HasKey(self, context.CreateSymbol(key)));
 }
Пример #4
0
 public static object SetElement(RubyContext /*!*/ context, Thread /*!*/ self, [NotNull] MutableString /*!*/ key, object value)
 {
     return(SetElement(self, context.CreateSymbol(key), value));
 }
Пример #5
0
 public static object SetElement(RubyContext/*!*/ context, Thread/*!*/ self, [NotNull]MutableString/*!*/ key, object value)
 {
     return SetElement(self, context.CreateSymbol(key), value);
 }
Пример #6
0
 public static object HasKey(RubyContext/*!*/ context, Thread/*!*/ self, [NotNull]MutableString/*!*/ key)
 {
     return HasKey(self, context.CreateSymbol(key));
 }
Пример #7
0
 public static RubySymbol/*!*/ Succ(RubyContext/*!*/ context, RubySymbol/*!*/ self) {
     return context.CreateSymbol(MutableStringOps.Succ(self.String));
 }
Пример #8
0
 public static RubySymbol/*!*/ Capitalize(RubyContext/*!*/ context, RubySymbol/*!*/ self) {
     return context.CreateSymbol(MutableStringOps.Capitalize(self.String));
 }
Пример #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);
        }
Пример #10
0
 public static RubySymbol /*!*/ Succ(RubyContext /*!*/ context, RubySymbol /*!*/ self)
 {
     return(context.CreateSymbol(MutableStringOps.Succ(self.String)));
 }
Пример #11
0
 public static RubySymbol /*!*/ Capitalize(RubyContext /*!*/ context, RubySymbol /*!*/ self)
 {
     return(context.CreateSymbol(MutableStringOps.Capitalize(self.String)));
 }