Fossil

Changes On Branch comment-formatter-wcwidth
Login

Changes On Branch comment-formatter-wcwidth

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch comment-formatter-wcwidth Excluding Merge-Ins

This is equivalent to a diff from 725af94791 to cc8a3116d1

2024-10-06
04:32
Merge another update to the comment formatter. ... (check-in: 9ae999d74f user: florian tags: trunk)
04:23
Restore an error handling path deleted by an optimization. ... (Closed-Leaf check-in: cc8a3116d1 user: florian tags: comment-formatter-wcwidth)
2024-10-05
13:29
Merge updates to the character width measurements of the comment formatter. Note that multi-byte and wide characters are not handled in the comment prefix, which is entirely controlled by the application and only contains ASCII text. ... (check-in: 725af94791 user: florian tags: trunk)
13:27
Fix some compiler warnings reported by clang 17.0.6 on FreeBSD. ... (Closed-Leaf check-in: b9e34fa9d2 user: florian tags: comment-formatter-wcwidth)
2024-09-30
18:21
Fix the unicode code-point width estimating function to align with the SQLite CLI. ... (check-in: e483b3b15f user: drh tags: trunk)

Changes to src/comformat.c.
292
293
294
295
296
297
298



299
300
301
302
303
304
305
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308







+
+
+







        ( (z[2] & 0x3f)<< 0 ) ;
      break;
    case 2:
      *pUtf32 =
        ( (z[0] & 0x1f)<< 6 ) | 
        ( (z[1] & 0x3f)<< 0 ) ;
      break;
    default:
      *pUtf32 = 0xfffd;                   /* U+FFFD Replacement Character */
      break;
  }
#ifdef FOSSIL_DEBUG
  assert(
    *pUtf32>=0 && *pUtf32<=0x10ffff &&    /* Valid range U+0000 to U+10FFFF. */
    *pUtf32<0xd800 && *pUtf32>0xdfff      /* Non-scalar (UTF-16 surrogates). */
  );
#endif