29 #ifndef LIB_QUERY_DIAGNOSTICS_H 30 #define LIB_QUERY_DIAGNOSTICS_H 47 _Fmt predicatePattern (
"%s_%02i( %s )");
48 const string garbage (
"asanisimasabibeddiboom");
50 const uint MAX_DEGREE_RAND = 9;
59 return predicatePattern
60 % char (
'a'+ rand() % 26)
62 % garbage.substr(rand() % 19 , 3);
70 degree = 1 + rand() % MAX_DEGREE_RAND;
72 fake += garbage_term() +
", ";
73 fake += garbage_term() +
".";
A front-end for using printf-style formatting.
Implementation namespace for support and library code.
string garbage_query(int degree=0)