We don't use strchr() because our strings are usually very short and often start with '%'
| 3169 | |
| 3170 | // We don't use strchr() because our strings are usually very short and often start with '%' |
| 3171 | const char* ImParseFormatFindStart(const char* fmt) |
| 3172 | { |
| 3173 | while (char c = fmt[0]) |
| 3174 | { |
| 3175 | if (c == '%' && fmt[1] != '%') |
| 3176 | return fmt; |
| 3177 | else if (c == '%') |
| 3178 | fmt++; |
| 3179 | fmt++; |
| 3180 | } |
| 3181 | return fmt; |
| 3182 | } |
| 3183 | |
| 3184 | const char* ImParseFormatFindEnd(const char* fmt) |
| 3185 | { |
no outgoing calls
no test coverage detected