function parseFormat(format){    var parts = [];        var reg = /((^%|.%)(\d+)?(\.)([a-zA-Z]))|((^%|.%)([a-zA-Z]))/;        for (var m = reg.exec(format); m; m = reg.exec(format))    {        if (m[0].substr(0, 2) == "%%")        {            parts.push(format.substr(0, m.index));            parts.push(m[0].substr(1));        }        else        {            var type = m[8] ? m[8] : m[5];            var precision = m[3] ? parseInt(m[3]) : (m[4] == "." ? -1 : 0);            var rep = null;            switch (type)            {                case "s":                    rep = FirebugReps.Text;                    break;                case "f":                case "i":                case "d":                    rep = FirebugReps.Number;                    break;                case "o":                    rep = null;                    break;            }            parts.push(format.substr(0, m[0][0] == "%" ? m.index : m.index+1));            parts.push({rep: rep, precision: precision});        }                format = format.substr(m.index+m[0].length);    }        parts.push(format);        return parts;}
2454	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2454/0fdfc663d6e6e0d4a6043b4035a0f87f31c76c2d/console.js/buggy/extension/content/firebug/console.js