(match, value, len)
| 8875 | }, |
| 8876 | // Format a number, with leading zero if necessary |
| 8877 | formatNumber = function(match, value, len) { |
| 8878 | var num = "" + value; |
| 8879 | if (lookAhead(match)) { |
| 8880 | while (num.length < len) { |
| 8881 | num = "0" + num; |
| 8882 | } |
| 8883 | } |
| 8884 | return num; |
| 8885 | }, |
| 8886 | // Format a name, short or long as requested |
| 8887 | formatName = function(match, value, shortNames, longNames) { |
| 8888 | return (lookAhead(match) ? longNames[value] : shortNames[value]); |
no test coverage detected