parse struct and union sequences

This commit is contained in:
Jan
2021-02-18 21:55:13 +01:00
parent 57547854c4
commit fb55cdb468
24 changed files with 316 additions and 19 deletions

View File

@ -0,0 +1,17 @@
#include "NameUtils.h"
#include <random>
#include <sstream>
std::string NameUtils::GenerateRandomName()
{
static constexpr auto ALPHABET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
std::ostringstream str;
std::random_device random;
for (auto i = 0u; i < 32u; i++)
str << ALPHABET[random() % std::char_traits<char>::length(ALPHABET)];
return str.str();
}