Re: NSString format specifiers (was: Is Concatenation that complex?)
Re: NSString format specifiers (was: Is Concatenation that complex?)
- Subject: Re: NSString format specifiers (was: Is Concatenation that complex?)
- From: Gwynne <email@hidden>
- Date: Wed, 28 Apr 2004 00:14:36 -0400
On Apr 27, 2004, at 11:45 PM, Allan Odgaard wrote:
That's supported by stdlib as well. You can do some pretty darn neat
things with stuff like %*.*f [...]
I think you mistook my stated "argument re-ordering" for
"length-adjusted output" with the length optionally given as an
argument (in lack of more formal terminology ;) ).
E.g. is there any way you can provide the missing format string in the
following example and have it print "hello world"?
printf(<missing>, "world", "hello");
* by itself is a special case of *n$. All the various forms of argument
re-ordering and parameter-specified field values are supported by both
stdlib and CF/NSString.
printf("%2$s %1$s", "world", "hello");
-- Gwynne, key to the Code that runs us all
Formerly known as Sailor Quasar.
Email: email@hidden
Web:
http://musicimage.plasticchicken.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.