aboutsummaryrefslogtreecommitdiff
path: root/libutf.h
AgeCommit message (Collapse)AuthorFilesLines
2026-01-06replace oversized libutf with smaller versionRandy Palamar1-34/+0
this is taken from one of my other projects. there was no reason for there to be 2x the code tests checking for surrogate characters and non characters were removed. I see no reason why the user shouldn't be allowed to insert those characters in text (they exist in the standard). Also, in the case of non-characters only the first two were being checked and not the other 64.
2025-12-16mark all functions in headers with VIS_EXPORT or VIS_INTERNALRandy Palamar1-2/+2
if vis actually wants to be a library exported symbols may need mark up depending on the platform (eg. __declspec(dllexport)). This needs to be hidden behind a macro because the way you export is not the same on every platform. I did this based on the assumption that vis.h was supposed to be the only interface to the "vis" library. Since nobody actually uses vis as a library I have no idea if this is actually correct. Anyway marking up all prototypes like this allows for one to convert all functions to static if a single translation unit is used by inserting at the start: #define VIS_INTERNAL static #define VIS_EXPORT static
2017-02-10vis: introduce vis_keys_utf8Marc André Tanner1-1/+1
2015-10-05vis: cleanup keyboard handling implementationMarc André Tanner1-2/+0
2015-09-15Add utfnext utility functionMarc André Tanner1-0/+2
2015-07-20vis: improve insertion of verbatim characters via CTRL-V in insert modeMarc André Tanner1-0/+34
Recognized formats are: CTRL-V nnn decimal value nnn CTRL-V onnn or CTRL-V Onnn octal value nnn CTRL-V xnn or CTRL-V Xnn hex value nn CTRL-V unnnn Unicode codepoint nnnn CTRL-V Unnnnnnnn Unicode codepoint nnnnnnnn Leading zeros can be omitted, any illegal character for the given format will be ignored and terminates the numerical code.