|
◆ generate_random_record()
Generate a random record.
- Template Parameters
-
- Parameters
-
typename | The type name as a string, e.g. "unsigned long int" . |
In "unsigned long int" , "unsigned" and "long" are prefixes, and "int" is the suffix. The generated record is as follows:
- The keyword is made of the first letter of the prefixes and the suffix, capitalized, e.g.
"ULINT" ;
- The value is random;
- The unit is made of the first letter of the prefixes, e.g.
"ul" ;
- The comment is made of the first letter of the prefixes, a space, and the suffix, e.g.
"ul int" .
|