Eight.String.format

Formats a string, similar to String.Format in C#, by replacing tokens such as {0} with their counterparts in the arguments of the function call.

Example

var message = Eight.String.format("{0}/{1} is a fraction representing {2}%!", "1", "2", "50");

// message now equals "1/2 is a fraction representing 50%!"

Last edited Feb 2, 2013 at 4:35 PM by gotdibbs, version 2

Comments

No comments yet.