polygonal/core — pull request #2 by Dr-Emann (2012-08-16 07:04:58+00:00)
Title: Compile-time tokenization of Sprintf format string

Depending on how important it is to you, it wouldn't be hard to use code similar to the original implementation if the format string is unknown at compile time. Currently, when the format string is known at compile time (would occur 90% of the time) pre-tokenizing speeds the process by double.

I'm thinking of also adding numbered parameter access:
```as3
Sprintf.format("%d+%1$d=%d", 5, 5*2)
```
and possibly object property access:
```as3
var obj = {name:"joe", age:32, job:"dentist"};
Sprintf.format("%(name) is %(age), and is a %(job)", obj);
```