summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.7jan.nijtmans2022-07-121-4/+2
|\
| * Merge 8.7. Clean-up tclWinConsole.c the same wayjan.nijtmans2022-07-121-4/+2
| |\
| | * Code cleanup (use {} in if/else statemenets)jan.nijtmans2022-07-121-2/+1
| | |
| * | 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
| | |
* | | Merge 9.0jan.nijtmans2022-04-081-4/+4
|\ \ \
* \ \ \ Merge 9.0jan.nijtmans2022-04-011-2/+1
|\ \ \ \ | |/ / /
| * | | Add UTF-16 versions of Tcl_GetCharLength/Tcl_GetRange/Tcl_GetUniChar to the ↵jan.nijtmans2022-04-011-2/+1
| | | | | | | | | | | | | | | | stub table. Should have been part of TIP #542. Needed for Tk's "glyph_indexing_2" branch
* | | | Merge 9.0. Fix CONTINUATION macro, and testcasesjan.nijtmans2022-03-291-15/+76
|\ \ \ \ | |/ / /
| * | | Add UTF-16 versions of Tcl_NumUtfChars/Tcl_UtfAtIndex to the stub table. ↵jan.nijtmans2022-03-291-15/+76
| | | | | | | | | | | | | | | | Should have been part of TIP #542. Needed for Tk's "glyph_indexing_2" branch
* | | | TIP #619 implementation. tests not working yetjan.nijtmans2022-03-031-3/+15
|/ / /
* | | Merge 8.7jan.nijtmans2022-02-241-14/+45
|\ \ \ | |/ /
| * | TIP #617: Tcl_WCharLen/Tcl_Char16Lenjan.nijtmans2022-02-031-1/+32
| | |
* | | Merge 8.7. Remove "string bytelength" completely. Also fix some TIP #595 ↵jan.nijtmans2021-04-301-0/+30
|\ \ \ | |/ / | | | | | | leftover testcases, which were skipped
| * | Merge 8.7jan.nijtmans2021-03-171-36/+31
| |\ \
| * | | TIP #597 implementation: "string is unicode" and new wtf-8 encodingjan.nijtmans2021-03-101-0/+30
| | | |
* | | | Merge 8.7 (this is the TIP #575 implementation for Tcl 9.0)jan.nijtmans2021-03-151-35/+14
|\ \ \ \ | | |/ / | |/| |
| * | | 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.7jan.nijtmans2021-03-101-0/+17
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / /
| * | | | | | | | Merge 8.6jan.nijtmans2021-03-101-0/+17
| |\ \ \ \ \ \ \ \ | | | |_|_|_|_|_|/ | | |/| | | | | |
| | * | | | | | | Repair Tcl_UniCharNcasecmp() in the same way as Tcl_UniCharNcmp() for fix ↵jan.nijtmans2021-03-101-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [4c591fa487]. Also put back minor optimization for big-endian machines removed in the previous commit
* | | | | | | | | Merge 8.7jan.nijtmans2021-03-101-9/+8
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / /
| * | | | | | | | Merge 8.6jan.nijtmans2021-03-101-9/+8
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | | | | | | | | / | | |_|_|_|_|_|/ | |/| | | | | |
| | * | | | | | Fix [4c591fa487]: [string compare] EIAS violationjan.nijtmans2021-03-101-9/+8
| | | | | | | |
| | * | | | | | Using 0xFC00 is more readable here than ~0x3FF. It's sufficient becauwe ch1 ↵jan.nijtmans2021-03-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and ch2 are only 16-bit. Backported from 8.7
* | | | | | | | Merge 8.7jan.nijtmans2021-03-021-0/+6
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Merge 8.6jan.nijtmans2021-03-021-0/+6
| |\ \ \ \ \ \ \ | | |/ / / / / / | | | | | | | / | | |_|_|_|_|/ | |/| | | | |
| | * | | | | Backport some UTF-8-related changed from 8.7 to 8.6, only for TCL_UTF_MAX > ↵jan.nijtmans2021-03-021-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3. No change for TCL_UTF_MAX=3. Also adapt test-cases accordingly, and add comments why the changes were done.
| | * | | | | Fix Tcl_UtfPrev for TCL_UTF_MAX>3, so it can jump back over Emoji. ↵jan.nijtmans2021-02-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backported from 8.7, no change for TCL_UTF_MAX=3. This way, the previous fix can be slightly more simplified, and working for TCL_UTF_MAX>3 too.
* | | | | | | Merge 8.7jan.nijtmans2020-12-081-1/+1
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | 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
* | | | | | | Merge 8.7jan.nijtmans2020-11-181-1/+14
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | More usage of TclUtfToUCS4/TclUniCharToUCS4 in stead of it's UniChar ↵jan.nijtmans2020-11-181-1/+14
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | variants: This handles surrogate pairs better.
* | | | | | Merge 8.7. Use more TCL_INDEX_NONE in documentation/headers/code.jan.nijtmans2020-06-041-6/+6
|\ \ \ \ \ \ | |/ / / / /
* | | | | | Merge 8.7jan.nijtmans2020-05-251-0/+14
|\ \ \ \ \ \ | |/ / / / /