[#BloombergLP-ball-Severity-fromAscii] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Severity.adoc[Severity]::fromAscii :relfileprefix: ../../../ :mrdocs: Load into the specified `level` the severity matching the specified `string`. == Synopsis Declared in `<ball_severity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int fromAscii( xref:BloombergLP/ball/Severity/Level.adoc[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 [cols="1,4"] |=== | Name| Description | *level* | severity level to set | *string* | case‐insensitive severity name | *stringLength* | length of `string` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#