 |
|
Revision 2465, 495 bytes
(checked in by sean, 1 year ago)
|
IssueZilla? #1349 inspired me to fix up 'svn:eol-style' on our text files, since we've been a bit lax about it in the past few months. So this terrifyingly large commit sets this property and fixes newlines where appropriate. Nothing to see here. Move along.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
/** |
|---|
| 2 |
|
|---|
| 3 |
Example showing how the alignment component in a format string argument works. |
|---|
| 4 |
|
|---|
| 5 |
Put into public domain by Lars Ivar Igesund |
|---|
| 6 |
|
|---|
| 7 |
*/ |
|---|
| 8 |
|
|---|
| 9 |
import tango.io.Stdout; |
|---|
| 10 |
|
|---|
| 11 |
void main(){ |
|---|
| 12 |
char[] myFName = "Johnny"; |
|---|
| 13 |
Stdout.formatln("First Name = |{0,15}|", myFName); |
|---|
| 14 |
Stdout.formatln("Last Name = |{0,15}|", "Foo de Bar"); |
|---|
| 15 |
|
|---|
| 16 |
Stdout.formatln("First Name = |{0,-15}|", myFName); |
|---|
| 17 |
Stdout.formatln("Last Name = |{0,-15}|", "Foo de Bar"); |
|---|
| 18 |
|
|---|
| 19 |
Stdout.formatln("First name = |{0,5}|", myFName); |
|---|
| 20 |
} |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic