Data Structures | Macros | Functions | Variables
encode.h File Reference
#include <stddef.h>
#include <msgpack.h>
#include "nvim/eval.h"
#include "nvim/garray.h"
#include "nvim/vim.h"

Go to the source code of this file.

Data Structures

struct  ListReaderState
 Structure defining state for read_from_list() More...
 

Macros

#define SURROGATE_HI_START   0xD800
 First codepoint in high surrogates block. More...
 
#define SURROGATE_HI_END   0xDBFF
 Last codepoint in high surrogates block. More...
 
#define SURROGATE_LO_START   0xDC00
 First codepoint in low surrogates block. More...
 
#define SURROGATE_LO_END   0xDFFF
 Last codepoint in low surrogates block. More...
 
#define SURROGATE_FIRST_CHAR   0x10000
 First character that needs to be encoded as surrogate pair. More...
 

Functions

int encode_vim_to_msgpack (msgpack_packer *const packer, typval_T *const tv, const char *const objname)
 
int encode_vim_to_echo (garray_T *const packer, typval_T *const tv, const char *const objname)
 

Variables

const char *const encode_special_var_names []
 Array mapping values from SpecialVarValue enum to names. More...
 

Macro Definition Documentation

#define SURROGATE_FIRST_CHAR   0x10000

First character that needs to be encoded as surrogate pair.

#define SURROGATE_HI_END   0xDBFF

Last codepoint in high surrogates block.

#define SURROGATE_HI_START   0xD800

First codepoint in high surrogates block.

#define SURROGATE_LO_END   0xDFFF

Last codepoint in low surrogates block.

#define SURROGATE_LO_START   0xDC00

First codepoint in low surrogates block.

Function Documentation

int encode_vim_to_echo ( garray_T *const  packer,
typval_T *const  tv,
const char *const  objname 
)

Convert VimL value to :echo output

Parameters
[out]packerPacker to save results in.
[in]tvDumped value.
[in]objnameObject name, used for error message.
Returns
OK in case of success, FAIL otherwise.
int encode_vim_to_msgpack ( msgpack_packer *const  packer,
typval_T *const  tv,
const char *const  objname 
)

Convert VimL value to msgpack string

Parameters
[out]packerPacker to save results in.
[in]tvDumped value.
[in]objnameObject name, used for error message.
Returns
OK in case of success, FAIL otherwise.

Variable Documentation

const char* const encode_special_var_names[]

Array mapping values from SpecialVarValue enum to names.