Data Structures | Macros | Typedefs | Functions
digraph.c File Reference
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <inttypes.h>
#include "nvim/vim.h"
#include "nvim/ascii.h"
#include "nvim/digraph.h"
#include "nvim/charset.h"
#include "nvim/ex_cmds2.h"
#include "nvim/ex_docmd.h"
#include "nvim/ex_getln.h"
#include "nvim/getchar.h"
#include "nvim/mbyte.h"
#include "nvim/message.h"
#include "nvim/memory.h"
#include "nvim/garray.h"
#include "nvim/normal.h"
#include "nvim/screen.h"
#include "nvim/strings.h"
#include "nvim/os/input.h"

Data Structures

struct  digraph
 
struct  kmap_T
 structure used for b_kmap_ga.ga_data More...
 

Macros

#define KMAP_MAXLEN   20
 
#define KMAP_LLEN   200
 

Typedefs

typedef int result_T
 
typedef struct digraph digr_T
 

Functions

int do_digraph (int c)
 
char_uget_digraph_for_char (int val)
 
int get_digraph (int cmdline)
 
int getdigraph (int char1, int char2, int meta_char)
 
void putdigraph (char_u *str)
 
void listdigraphs (void)
 
char_ukeymap_init (void)
 
void ex_loadkeymap (exarg_T *eap)
 
void keymap_ga_clear (garray_T *kmap_ga)
 Frees the buf_T.b_kmap_ga field of a buffer. More...
 

Detailed Description

code for digraphs

Macro Definition Documentation

#define KMAP_LLEN   200
#define KMAP_MAXLEN   20

Typedef Documentation

typedef struct digraph digr_T
typedef int result_T

Function Documentation

int do_digraph ( int  c)

handle digraphs after typing a character

Parameters
c
Returns
The digraph.
void ex_loadkeymap ( exarg_T eap)

":loadkeymap" command: load the following lines as the keymap.

Parameters
eap
int get_digraph ( int  cmdline)

Get a digraph. Used after typing CTRL-K on the command line or in normal mode.

Parameters
cmdlineTRUE when called from the cmdline
Returns
composed character, or NUL when ESC was used.
char_u* get_digraph_for_char ( int  val)

Find a digraph for "val". If found return the string to display it. If not found return NULL.

int getdigraph ( int  char1,
int  char2,
int  meta_char 
)

Get digraph. Allow for both char1-char2 and char2-char1

Parameters
char1
char2
meta_char
Returns
The digraph.
void keymap_ga_clear ( garray_T kmap_ga)

Frees the buf_T.b_kmap_ga field of a buffer.

char_u* keymap_init ( void  )

Set up key mapping tables for the 'keymap' option.

Returns
NULL if OK, an error message for failure. This only needs to be used when setting the option, not later when the value has already been checked.
void listdigraphs ( void  )
void putdigraph ( char_u str)

Add the digraphs in the argument to the digraph table. format: {c1}{c2} char {c1}{c2} char ...

Parameters
str