diff options
author | Christian Brabandt <cb@256bit.org> | 2023-04-24 21:09:54 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-04-24 21:09:54 +0100 |
commit | 67672ef097dd708244ff042a8364994da2b91e75 (patch) | |
tree | 728d6713562555f7917bf5297c6ff27b2bb0c792 /src/proto | |
parent | e1b4822137b74d45fde1d47d2e32b3ae89966092 (diff) |
patch 9.0.1485: no functions for converting from/to UTF-16 indexv9.0.1485
Problem: no functions for converting from/to UTF-16 index.
Solution: Add UTF-16 flag to existing funtions and add strutf16len() and
utf16idx(). (Yegappan Lakshmanan, closes #12216)
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/strings.pro | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proto/strings.pro b/src/proto/strings.pro index 6022088315..a72e1ff5ed 100644 --- a/src/proto/strings.pro +++ b/src/proto/strings.pro @@ -36,12 +36,14 @@ void f_string(typval_T *argvars, typval_T *rettv); void f_strlen(typval_T *argvars, typval_T *rettv); void f_strcharlen(typval_T *argvars, typval_T *rettv); void f_strchars(typval_T *argvars, typval_T *rettv); +void f_strutf16len(typval_T *argvars, typval_T *rettv); void f_strdisplaywidth(typval_T *argvars, typval_T *rettv); void f_strwidth(typval_T *argvars, typval_T *rettv); void f_strcharpart(typval_T *argvars, typval_T *rettv); void f_strpart(typval_T *argvars, typval_T *rettv); void f_strridx(typval_T *argvars, typval_T *rettv); void f_strtrans(typval_T *argvars, typval_T *rettv); +void f_utf16idx(typval_T *argvars, typval_T *rettv); void f_tolower(typval_T *argvars, typval_T *rettv); void f_toupper(typval_T *argvars, typval_T *rettv); void f_tr(typval_T *argvars, typval_T *rettv); |