aboutsummaryrefslogtreecommitdiff
path: root/utf8.h
AgeCommit message (Collapse)AuthorFilesLines
2019-10-28utf8_strlen: Improve performanceSteve Bennett1-3/+2
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>
2016-09-05Add utf-8 display width infoSteve Bennett1-0/+15
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>
2016-09-05Update linenoise to the latest versionSteve Bennett1-2/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2014-01-21many comment changes, some small code changesSteve Bennett1-0/+9
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>
2013-11-06Fix [string tolower] buffer overflow for non-utf8Steve Bennett1-0/+4
Reported-by: Andy <jimdevel@hummypkg.org.uk> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-12-12Add support for lightweight namespacesSteve Bennett1-1/+1
See README.namespaces Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-12-02Extend UTF-8 support past the BMPSteve Bennett1-8/+11
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>
2011-11-28Add support for [string totitle]Steve Bennett1-0/+10
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-26Missing parens in non-utf8 version of utf8_strlenSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-14Minor linenoise improvementsSteve Bennett1-1/+1
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
2011-09-13Fix a compilation problem with the bootstrap jimshSteve Bennett1-2/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-12Remove all trailing whitespace in sourceSteve Bennett1-5/+5
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-12Trim the size of the boostrap jimsh sourceSteve Bennett1-2/+2
By removing comments and some large blocks of unnecessary code Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-21More efficient [string trimright] and [string last]Steve Bennett1-0/+10
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>
2010-12-21All Jim source should include jimautoconf.hSteve Bennett1-0/+1
This ensures that everything picks up the autoconf settings
2010-11-17Update documentation to cover UTF-8 support for regexpSteve Bennett1-0/+7
Also create README.utf-8 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Add UTF-8 support to JimSteve Bennett1-0/+90
Signed-off-by: Steve Bennett <steveb@workware.net.au>