/ string res;/ bool skipNext = false;// foreach(ch; fmt) {/ if (ch == '%') {/ res ~= "1024"; //to!string(value);/ skipNext = true;/ } else if (!skipNext) {/ res ~= ch;/ skipNext = false;/ }/ }/ return res;/ if (hasPercentSign(fmt))/ return format(fmt, value);/ else/ return fmt;
See Implementation
/ string res;/ bool skipNext = false;// foreach(ch; fmt) {/ if (ch == '%') {/ res ~= "1024"; //to!string(value);/ skipNext = true;/ } else if (!skipNext) {/ res ~= ch;/ skipNext = false;/ }/ }/ return res;/ if (hasPercentSign(fmt))/ return format(fmt, value);/ else/ return fmt;