[#BloombergLP-ball-SeverityUtil-fromAscii]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/SeverityUtil.adoc[SeverityUtil]::fromAscii
:relfileprefix: ../../../
:mrdocs:

Load into the specified `level` the severity corresponding to `name`&period;

== Synopsis

Declared in `&lt;ball&lowbar;severityutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
fromAscii(
    xref:BloombergLP/ball/Severity/Level.adoc[Severity::Level]* level,
    char const* name);
----

== Description

Load into the specified `level` the value of the `Severity&colon;&colon;Level` enumerator corresponding to the specified `name` (without regard to the case of the characters in `name`)&period; Return 0 on success, and a non&hyphen;zero value with no effect on `level` otherwise&period; The behavior is undefined unless `level` is non&hyphen;null and `name` is a null&hyphen;terminated (C&hyphen;style) string&period; Note that this procedure will fail unless `isValidName(name)` is `true`&period;

DEPRECATED&colon; Use `fromAsciiCaseless` instead&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *level*
| severity level to set
| *name*
| case&hyphen;insensitive severity name
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
