Changeset e0a52a4 in rtems-tools for rtemstoolkit/ConvertUTF.c
- Timestamp:
- 04/30/18 05:50:03 (6 years ago)
- Branches:
- 5, master
- Children:
- 3e187ba
- Parents:
- 4bb3996
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rtemstoolkit/ConvertUTF.c
r4bb3996 re0a52a4 447 447 switch (bytesToWrite) { /* note: everything falls through. */ 448 448 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; 449 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; 450 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; 451 case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]); 449 /* fall-thru */ 450 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; /* fall-thru */ 451 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; /* fall-thru */ 452 case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]); /* fall-thru */ 452 453 } 453 454 target += bytesToWrite; … … 481 482 */ 482 483 switch (extraBytesToRead) { 483 case 5: ch += *source++; ch <<= 6; 484 case 4: ch += *source++; ch <<= 6; 485 case 3: ch += *source++; ch <<= 6; 486 case 2: ch += *source++; ch <<= 6; 487 case 1: ch += *source++; ch <<= 6; 488 case 0: ch += *source++; 484 case 5: ch += *source++; ch <<= 6; /* fall-thru */ 485 case 4: ch += *source++; ch <<= 6; /* fall-thru */ 486 case 3: ch += *source++; ch <<= 6; /* fall-thru */ 487 case 2: ch += *source++; ch <<= 6; /* fall-thru */ 488 case 1: ch += *source++; ch <<= 6; /* fall-thru */ 489 case 0: ch += *source++; /* fall-thru */ 489 490 } 490 491 ch -= offsetsFromUTF8[extraBytesToRead];
Note: See TracChangeset
for help on using the changeset viewer.