Examples of associateEncoding()


Examples of org.jruby.RubyString.associateEncoding()

        else return string; // nothing changed, can return original

        final Ruby runtime = context.runtime;
        final RubyString quoted = runtime.newString(quotedBytes);
        if ( runtime.is1_9() ) { // only due mysql2 compatibility
            quoted.associateEncoding( UTF8Encoding.INSTANCE );
        }
        return quoted;
    }

    @JRubyMethod(name = "quoted_true", required = 0, frame = false)
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.