Load into the specified level the severity matching the specified string.
Synopsis
Declared in <ball_severity.h>
static
int
fromAscii(
Severity::Level* level,
char const* string,
int stringLength);
Description
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).
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
level |
severity level to set |
string |
case‐insensitive severity name |
stringLength |
length of |
Created with MrDocs