Age | Commit message (Collapse) | Author | Files | Lines |
|
Use utf8_charlen() rather than utf8_tounicode()
Note that utf8_charlen() now returns 1 instead of -1 for an invalid
utf-8 start byte.
Reported-by: dbohdan <dbohdan@dbohdan.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Needed when using linenoise line editing with utf-8 support
Note that variable width support is not yet added to linenoise
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Sweep through and clean up all (most) of the comments in the code.
While there, adjust some variable and function names to be more consistent,
and make a few small code changes - again, mostly for consistency.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Reported-by: Andy <jimdevel@hummypkg.org.uk>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
See README.namespaces
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now codepoints up to U+1FFFFF are supported, including
as literals with the new \u{NNNNNN} syntax (up to six hex digits)
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
From github:
- CHA is 1-based
- Added some casts to make it easier to include in a c++
- const correctness
- chars are unsigned if not utf-8
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
By removing comments and some large blocks of unnecessary code
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
By searching backwards in [string trimright], even in utf-8 strings.
And using binary comparison in [string list]
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This ensures that everything picks up the autoconf settings
|
|
Also create README.utf-8
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|