Load into the specified level the severity matching the specified string.
Declared in <ball_severity.h>
static
int
fromAscii(
Severity::Level* level,
char const* string,
int stringLength);
Load into the specified level the severity matching the specified case-insensitive string of the specified stringLength. Return 0 on success, and a non-zero value with no effect on level otherwise (i.e., string does not match any Level enumerator).
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| level | severity level to set |
| string | case-insensitive severity name |
| stringLength | length of string |