Differences From Artifact [e28fe4a740]:
- File generic/tclUtf.c — part of check-in [d15b9cb99e] at 2020-05-12 18:59:04 on branch tip-575 — First, experimental implementation of TIP #575. Barely tested, will fail. WIP (user: jan.nijtmans size: 66518)
To Artifact [5f36d4015f]:
- File generic/tclUtf.c — part of check-in [afe207f116] at 2020-05-13 22:07:13 on branch tip-575 — Merge 8.7. Further progress with TIP implementation. (user: jan.nijtmans size: 66452) [more...]
| ︙ | |||
60 61 62 63 64 65 66 | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | - - + + - - - + - - - - - - - + - + |
*/
static const unsigned char totalBytes[256] = {
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
| ︙ | |||
1054 1055 1056 1057 1058 1059 1060 | 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 | - + | /* * We've seen no trailing context to use to check * anything. From what we know, this non-trail byte * is a prefix of a previous character, and accepting * it (the fallback) is correct. */ |
| ︙ | |||
1095 1096 1097 1098 1099 1100 1101 | 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 | - + - + - + - - - - - | * and exit this loop before we run past the start of the string. */ return fallback; } /* Continue the search backwards... */ look--; |
| ︙ | |||
1132 1133 1134 1135 1136 1137 1138 | 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 | - + + + + + + + + + + + + + + + - - + + |
*/
int
Tcl_UniCharAtIndex(
const char *src, /* The UTF-8 string to dereference. */
int index) /* The position of the desired character. */
{
|
| ︙ |