Add character functions like is_alpha(), is_digit(), is_alnum(), etc. The full list is available at http://www.cplusplus.com/reference/cctype/ (tolower() and toupper() are already available).
The functions shall be able to return a set of logicals for the passed string, where each logical shall indicate, whether the corresponding character is of the checked type:
is_digit("4u93a")
ans = {1, 0, 1, 1, 0}
The implementation of most of these functions is quite straightforward. They'll have the standard signature VAL__STR or STR(like strfnc_ascii()). One can use the standard C library functions as indicated by the provided link. These functions have to be applied to each character of the passed string (the ascii() function is a quite good example).
Additionally, one has to keep in mind, that the german umlauts are probably not detected by the standard C library functions. If the test fails, then these have to be implemented manually (the functions to_uppercase() and to_lowercase() will provide the corresponding character codes).
Functionality was added to the automatic software tests. Remaining issues were fixed.
Anonymous
Diff:
Diff:
Diff:
Related
Commit: [r630]
Diff: