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

This `struct` provides a namespace for non&hyphen;primitive procedures on the `Severity&colon;&colon;Level` enumeration&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct SeverityUtil;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/ball/SeverityUtil/fromAscii.adoc[`fromAscii`] 
| 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;
| xref:BloombergLP/ball/SeverityUtil/fromAsciiCaseless.adoc[`fromAsciiCaseless`] 
| 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 &apos;true&period;
| xref:BloombergLP/ball/SeverityUtil/isValidName.adoc[`isValidName`] 
| Return `true` if the specified `name` corresponds to an enumerator in the `Severity&colon;&colon;Level` enumeration, and `false` otherwise&period; The behavior is undefined unless `name` is a null&hyphen;terminated (C&hyphen;style) string&period; Note that the names corresponding to `Severity&colon;&colon;Level` enumerators are case _insensitive_&period;
| xref:BloombergLP/ball/SeverityUtil/isValidNameCaseless.adoc[`isValidNameCaseless`] 
| Return `true` if the specified `name` corresponds to an enumerator in the `Severity&colon;&colon;Level` enumeration (without regard to the characters in `name`), and `false` otherwise&period; The behavior is undefined unless `name` is a null&hyphen;terminated (C&hyphen;style) string&period; Note that the names corresponding to `Severity&colon;&colon;Level` enumerators are case _insensitive_&period;
|===



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