Mercurial > projects > ddmd
comparison dmd/Module.d @ 16:5c9b78899f5d
Implemented methods for Tuples, fixed some linking issues.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Sun, 04 Apr 2010 22:41:11 +0100 |
parents | 2cc604139636 |
children | fd4acc376c45 |
comparison
equal
deleted
inserted
replaced
15:da741eed6c00 | 16:5c9b78899f5d |
---|---|
454 if (buflen >= 4 && buf[2] == 0 && buf[3] == 0) | 454 if (buflen >= 4 && buf[2] == 0 && buf[3] == 0) |
455 { // UTF-32LE | 455 { // UTF-32LE |
456 le = 1; | 456 le = 1; |
457 | 457 |
458 Lutf32: | 458 Lutf32: |
459 OutBuffer dbuf; | 459 OutBuffer dbuf = new OutBuffer(); |
460 uint* pu = cast(uint*)buf; | 460 uint* pu = cast(uint*)buf; |
461 uint* pumax = &pu[buflen / 4]; | 461 uint* pumax = &pu[buflen / 4]; |
462 | 462 |
463 if (buflen & 3) | 463 if (buflen & 3) |
464 { error("odd length of UTF-32 char source %u", buflen); | 464 { error("odd length of UTF-32 char source %u", buflen); |
489 // UTF-16LE (X86) | 489 // UTF-16LE (X86) |
490 // Convert it to UTF-8 | 490 // Convert it to UTF-8 |
491 le = 1; | 491 le = 1; |
492 | 492 |
493 Lutf16: | 493 Lutf16: |
494 OutBuffer dbuf; | 494 OutBuffer dbuf = new OutBuffer(); |
495 ushort* pu = cast(ushort*)(buf); | 495 ushort* pu = cast(ushort*)(buf); |
496 ushort *pumax = &pu[buflen / 2]; | 496 ushort *pumax = &pu[buflen / 2]; |
497 | 497 |
498 if (buflen & 1) | 498 if (buflen & 1) |
499 { error("odd length of UTF-16 char source %u", buflen); | 499 { error("odd length of UTF-16 char source %u", buflen); |