Module Tk::Encoding
In: tk/lib/tk.rb

Methods

Constants

TkCommandNames = ['encoding'.freeze].freeze

Public Instance methods

[Source]

# File tk/lib/tk.rb, line 2043
      def encoding
        nil
      end

[Source]

# File tk/lib/tk.rb, line 1973
      def encoding
        TkCore::INTERP.encoding
      end

[Source]

# File tk/lib/tk.rb, line 1969
      def encoding=(name)
        TkCore::INTERP.encoding = name
      end

[Source]

# File tk/lib/tk.rb, line 2040
      def encoding=(name)
        nil
      end
encoding_convert_from(str, enc=nil)
encoding_convert_from(str, enc=nil)
encoding_convert_to(str, enc=nil)

Alias for encoding_convertto

encoding_convert_to(str, enc=nil)

Alias for encoding_convertto

[Source]

# File tk/lib/tk.rb, line 1989
      def encoding_convertfrom(str, enc=nil)
        # str must be a Tcl's internal string expression in enc. 

        # the return value is a UTF-8 string.

        enc = encoding_system unless enc
        TkCore::INTERP.__invoke('encoding', 'convertfrom', enc, str)
      end

[Source]

# File tk/lib/tk.rb, line 2056
      def encoding_convertfrom(str, enc=None)
        str
      end

[Source]

# File tk/lib/tk.rb, line 2061
      def encoding_convertto(str, enc=None)
        str
      end

[Source]

# File tk/lib/tk.rb, line 1997
      def encoding_convertto(str, enc=nil)
        # str must be a UTF-8 string.

        # The return value is a Tcl's internal string expression in enc. 

        # To get an usual enc string, use Tk.fromUTF8(ret_val, enc).

        enc = encoding_system unless enc
        TkCore::INTERP.__invoke('encoding', 'convertto', enc, str)
      end

[Source]

# File tk/lib/tk.rb, line 1977
      def encoding_names
        tk_split_simplelist(tk_call('encoding', 'names'))
      end

[Source]

# File tk/lib/tk.rb, line 2046
      def encoding_names
        nil
      end

[Source]

# File tk/lib/tk.rb, line 1981
      def encoding_system
        tk_call('encoding', 'system')
      end

[Source]

# File tk/lib/tk.rb, line 2049
      def encoding_system
        nil
      end

[Source]

# File tk/lib/tk.rb, line 2052
      def encoding_system=(enc)
        nil
      end

[Source]

# File tk/lib/tk.rb, line 1985
      def encoding_system=(enc)
        tk_call('encoding', 'system', enc)
      end

[Validate]