-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
string and char questions #309
Comments
I believe this behavior is by design; see here. Generating strings of specific character classes is easy, however:
This example shows that a string can be thought of as a representation of a character class from which both characters, and thus strings, can then be generated. From this perspective, string concatenation acts as a set theoretic union of character classes. Moreover, by repetition of certain characters in the the string can be used to affect the frequency with which they occur in generated strings. Hope this helps, Jonathon |
I have some questions about strings and chars.
gen::character
sometimes returns the null character\0
. Is this expected ? [edit] ignore, it does not, achar
generator does.Most of the characters in the strings generated by
gen::string
are not printable. Is this expected ?Is the generator generating valid ASCII chars, or any char at all (full 255 values) ?
thanks.
The text was updated successfully, but these errors were encountered: