Package org.jruby

Examples of org.jruby.RubyString.taint()


            }
        }       

        RubyString output = runtime.newString(result);
        if(taintOutput) {
            output.taint(runtime.getCurrentContext());
        }

        if (runtime.is1_9()) {
            switch (enc_info)
            {
View Full Code Here


                    break;
            }
        }       

        RubyString output = runtime.newString(result);
        if (taintOutput) output.taint(runtime.getCurrentContext());

        if (runtime.is1_9()) {
            switch (enc_info)
            {
                case 1:
View Full Code Here

            toAppendTo.append(output.getBytes(context.runtime.getEncodingService().charsetForEncoding(toAppendTo.getEncoding())));
        }

        RubyString str = context.runtime.newString(toAppendTo);
        if (taint)
            str.taint(context);
        return str;
    }

    /**
     * Ruby always follows Astronomical year numbering,
View Full Code Here

                    break;
            }
        }       

        RubyString output = runtime.newString(result);
        if (taintOutput) output.taint(runtime.getCurrentContext());

        switch (enc_info)
        {
            case 1:
                output.setEncodingAndCodeRange(USASCII, RubyObject.USER8_F);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.