From f7296a1f9acf04c91420a9bd011f3726f394eaf7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 23 May 2014 22:20:13 -0400 Subject: Renamed `io.set_buffer_encoding()` to `buffer:set_encoding()`. --- core/.buffer.luadoc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/.buffer.luadoc') diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc index dd13b8e5..9170dc37 100644 --- a/core/.buffer.luadoc +++ b/core/.buffer.luadoc @@ -2697,6 +2697,14 @@ function new() end -- @param end_pos The end position of the range of text to get in *buffer*. function text_range(buffer, start_pos, end_pos) end +--- +-- Converts the current buffer's contents to encoding *encoding*. +-- @param buffer A buffer. +-- @param encoding The string encoding to set. Valid encodings are ones that GNU +-- iconv accepts. +-- @usage io.set_buffer_encoding('ASCII') +function set_encoding(buffer, encoding) end + --- -- Returns the buffer's lexer name. -- If *current* is `true`, returns the name of the lexer under the caret in -- cgit v1.2.3