Changeset 757
- Timestamp:
- 06/24/08 02:56:40 (3 months ago)
- Files:
-
- trunk/phobos/std/format.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/phobos/std/format.d
r689 r757 510 510 int prepad = 0; 511 511 int postpad = 0; 512 int padding = field_width - (strlen(prefix) + s.length);512 int padding = field_width - (strlen(prefix) + toUCSindex(s, s.length)); 513 513 if (padding > 0) 514 514 { … … 1563 1563 r = std.string.format(">%14d<, ", 15, [1,2,3]); 1564 1564 assert(r == "> 15<, [1,2,3]"); 1565 1566 assert(std.string.format("%8s", "bar") == " bar"); 1567 assert(std.string.format("%8s", "b\u00e9ll\u00f4") == " b\u00e9ll\u00f4"); 1565 1568 } 1566 1569
