Macros | Enumerations
charset.h File Reference
#include "nvim/types.h"
#include "nvim/pos.h"
#include "nvim/buffer_defs.h"
#include "nvim/eval/typval.h"
#include "nvim/option_defs.h"

Go to the source code of this file.

Macros

#define CH_FOLD(c)
 

Enumerations

enum  ChStr2NrFlags {
  STR2NR_DEC = 0, STR2NR_BIN = (1 << 0), STR2NR_OCT = (1 << 1), STR2NR_HEX = (1 << 2),
  STR2NR_FORCE = (1 << 3), STR2NR_ALL = STR2NR_BIN | STR2NR_OCT | STR2NR_HEX
}
 Flags for vim_str2nr() More...
 

Macro Definition Documentation

#define CH_FOLD (   c)
Value:
utf_fold((sizeof(c) == sizeof(char)) \
?((int)(uint8_t)(c)) \
:((int)(c)))
int utf_fold(int a)
Definition: mbyte.c:1192

Return the folded-case equivalent of the given character

Parameters
[in]cCharacter to transform.
Returns
Folded variant.

Enumeration Type Documentation

Flags for vim_str2nr()

Enumerator
STR2NR_DEC 
STR2NR_BIN 

Allow binary numbers.

STR2NR_OCT 

Allow octal numbers.

STR2NR_HEX 

Allow hexadecimal numbers.

STR2NR_FORCE 

Force one of the above variants.

STR2NR_FORCE|STR2NR_DEC is actually not different from supplying zero as flags, but still present for completeness.

STR2NR_ALL 

Recognize all formats vim_str2nr() can recognize.