We don't use strchr() because our strings are usually very short and often start with '%'
| 3241 | |
| 3242 | // We don't use strchr() because our strings are usually very short and often start with '%' |
| 3243 | const char* ImParseFormatFindStart(const char* fmt) |
| 3244 | { |
| 3245 | while (char c = fmt[0]) |
| 3246 | { |
| 3247 | if (c == '%' && fmt[1] != '%') |
| 3248 | return fmt; |
| 3249 | else if (c == '%') |
| 3250 | fmt++; |
| 3251 | fmt++; |
| 3252 | } |
| 3253 | return fmt; |
| 3254 | } |
| 3255 | |
| 3256 | const char* ImParseFormatFindEnd(const char* fmt) |
| 3257 | { |
no outgoing calls
no test coverage detected