17template <
typename... Args>
28 const int digits_in_format_specifier = std::count_if(format_string.begin(), format_string.end(),
IsDigit);
37 if (format_string.find(
'%') != std::string::npos && digits_in_format_specifier >= 7) {
45 if (format_string.find(
'%') != std::string::npos && format_string.find(
'$') != std::string::npos && format_string.find(
'*') != std::string::npos && digits_in_format_specifier > 0) {
80 if (format_string.find(
'%') != std::string::npos && format_string.find(
'c') != std::string::npos) {
87 if (format_string.find(
'%') != std::string::npos && format_string.find(
'*') != std::string::npos) {
std::string ConsumeRandomLengthString(size_t max_length)
constexpr bool IsDigit(char c)
Tests if the given character is a decimal digit.
void fuzz_fmt(const std::string &fmt, const Args &... args)
size_t CallOneOf(FuzzedDataProvider &fuzzed_data_provider, Callables... callables)