summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
Commit message (Collapse)AuthorAgeFilesLines
* optimize TclUtfToUCS4 for single code units (non high surrogates), ↵sebres2024-03-201-3/+3
| | | | especially for ascii; fixes performance regression [6811a0081940b76c]
* Fix [d63061a1ac]: PRIVATE != CONTROL in Unicodejan.nijtmans2024-03-031-1/+1
|\
| * Bug [d63061a1ac]: "PRIVATE != CONTROL in Unicode". Leave out "Co" ↵jan.nijtmans2024-01-151-4/+1
| | | | | | | | (private-use characters) from "string is control".
| * Leave out Tcl_UtfNcmp/Tcl_UtfNcasecmp from -DTCL_NO_DEPRECATED builds, ↵jan.nijtmans2024-01-121-19/+24
| |\ | | | | | | | | | because it's part of the UTF16 compatibility layer
| * | Fix [4e38c347a4] Changed contract for Tcl_UtfN(case)cmp in Tcl 8.7jan.nijtmans2024-01-101-11/+82
| | |
| * | Merge 8.6jan.nijtmans2023-12-291-65/+182
| |\ \ | | |/
| * | More progressjan.nijtmans2023-05-011-2/+0
| | |
| * | Remove internal use of TCL_UTF_MAX=3 as much as possible, without ↵jan.nijtmans2023-05-011-136/+18
| | | | | | | | | | | | compromizing existing TIP's
| * | Correct spelling errors in comments and documentation, but also a non-comment pooryorick2023-04-121-1/+1
| | | | | | | | | corrections in history.tcl and tcltest.test.
| * | Merge 8.6jan.nijtmans2023-03-221-2/+2
| |\ \
* | | | Optimize Tcl_UniCharIsControl(). Don't worry about range >= U+F0000, that's ↵jan.nijtmans2024-01-211-7/+1
| |_|/ |/| | | | | | | | for TCL_UTF_MAX>3, which is unsupported for 8.6.
* | | Proposed fix for [abd489a1c]: TclStringCmp() calls functions through pointer ↵jan.nijtmans2023-10-131-0/+57
| | | | | | | | | | | | to incorrect type. Modified, swapping the wrapping-order
* | | Correct spelling errors in comments and documentation, but also non-comment pooryorick2023-04-121-1/+1
| |/ |/| | | corrections in history.tcl and tcltest.test.
* | Fix [0265750233]: invalid read in cmdAH-4.3.13.C1.solo.utf-8.tcl8jan.nijtmans2023-03-221-1/+1
|\ \
| * | Proposed fix for [0265750233]: invalid read in cmdAH-4.3.13.C1.solo.utf-8.tcl8.jan.nijtmans2023-03-221-1/+1
| |/
| * (cherry-pick) Make Tcl_UniCharToUtf more readable and add test to exercise ↵jan.nijtmans2023-02-011-8/+6
| | | | | | | | surrogate handling. (test-case was still missing, which cannot be used in Tcl 8.6)
| * (cherry-pick) Make Tcl_UniCharToUtf more readable and add test to exercise ↵jan.nijtmans2023-02-011-27/+30
| |\ | |/ |/| | | surrogate handling.
| * Merge 8.7. Clean-up tclWinConsole.c the same wayjan.nijtmans2022-07-121-4/+2
| |\
| * | Implement PANIC when the UTF16 compatibility layer is used in combination ↵jan.nijtmans2022-03-241-3/+3
| | | | | | | | | | | | with -DTCL_NO_DEPRECATED
| * | When compiled with TCL_NO_DEPRECATED, remove the UTF16 compatibility layer. ↵jan.nijtmans2022-03-241-2/+2
| | | | | | | | | | | | So, we make sure that it is never used internally for the Core. This means that extensions using the compatibility layer won't work any more in this mode; extensions should be compiled using TCL_UTF_MAX=4 then they work again.
| * | Fix Tcl_UniCharAtIndex() for UTF-16 compabitility layerjan.nijtmans2022-03-231-4/+2
| | |
| * | Feature-completejan.nijtmans2022-03-221-1/+56
| | |
| * | More progressjan.nijtmans2022-03-221-0/+1
| | |
| * | Handle Tcl_UtfAtIndexjan.nijtmans2022-03-161-5/+33
| | |
| * | More progressjan.nijtmans2022-03-141-20/+26
| | |
| * | 2 more functionsjan.nijtmans2022-03-111-10/+196
| | |
| * | Handle TclUniCharNcmp()jan.nijtmans2022-03-111-5/+29
| | |
| * | 3 more files with TCL_UTF_MAX checksjan.nijtmans2022-02-241-8/+8
| | |
| * | TIP #617: Tcl_WCharLen/Tcl_Char16Lenjan.nijtmans2022-02-031-1/+32
| | |
| * | Merge 8.7jan.nijtmans2021-03-171-36/+31
| |\ \
| | * \ Implement TIP #575: Switchable Tcl_UtfCharComplete()/Tcl_UtfNext()/Tcl_UtfPrev()jan.nijtmans2021-03-151-35/+14
| | |\ \
| | | * \ Merge 8.7jan.nijtmans2020-12-131-1/+1
| | | |\ \
| | | * \ \ Merge 8.7jan.nijtmans2020-11-051-50/+18
| | | |\ \ \
| | | * | | | Finish implementation of "string nextchar|nextword|prevchar|prevword". Not ↵jan.nijtmans2020-05-251-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | thourougly test yet, but seems OK at first sight.
| | | * | | | Split more "string" functions. New helper function TclUniCharToUCS4(), not ↵jan.nijtmans2020-05-221-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | used yet but that's the next step.
| | | * | | | Merge 8.7jan.nijtmans2020-05-221-19/+51
| | | |\ \ \ \ | | | | | | | | | | | | | | | | Add function Tcl_UniCharFold(). It's the same as Tcl_UniCharToLower() for now, but that will change.
| | | * \ \ \ \ Merge 8.7. Further progress with TIP implementation.jan.nijtmans2020-05-131-25/+26
| | | |\ \ \ \ \
| | | * | | | | | First, experimental implementation of TIP #575. Barely tested, will fail. WIPjan.nijtmans2020-05-121-10/+4
| | | | | | | | |
| | * | | | | | | Merge 8.6jan.nijtmans2021-03-101-0/+17
| | |\ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ Merge 8.6jan.nijtmans2021-03-101-9/+8
| | |\ \ \ \ \ \ \ \
| * | | | | | | | | | TIP #597 implementation: "string is unicode" and new wtf-8 encodingjan.nijtmans2021-03-101-0/+30
| |/ / / / / / / / /
| * | | | | | | | | Merge 8.6jan.nijtmans2021-03-021-0/+6
| |\ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ / | |/| | | | | | | |
| * | | | | | | | | Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
| * | | | | | | | | More usage of TclUtfToUCS4/TclUniCharToUCS4 in stead of it's UniChar ↵jan.nijtmans2020-11-181-1/+14
| | |_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | variants: This handles surrogate pairs better.
| * | | | | | | | Fix compiled "string is <class>" for characters > U+FFFF. Add testcase ↵jan.nijtmans2020-05-251-0/+14
| |\ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | exposing this bug.
| * | | | | | | | Adapt some comments, which are not correct for Tcl 8.7 any morejan.nijtmans2020-05-201-1/+1
| | |_|_|_|_|/ / | |/| | | | | |
| * | | | | | | Little tweak to Tcl_UniCharAtIndex(): Protect against negative index, return ↵jan.nijtmans2020-05-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -1 in that case.
| * | | | | | | Merge 8.6jan.nijtmans2020-05-121-3/+14
| |\ \ \ \ \ \ \ | | |_|_|_|_|/ / | |/| | | | | |
| * | | | | | | Merge 8.6jan.nijtmans2020-05-111-2/+8
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ Merge 8.6jan.nijtmans2020-05-111-3/+3
| |\ \ \ \ \ \ \ \