[#BloombergLP-ball-SeverityUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::SeverityUtil :relfileprefix: ../../ :mrdocs: This `struct` provides a namespace for non‐primitive procedures on the `Severity::Level` enumeration. == Synopsis Declared in `<ball_severityutil.h>` [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::Level` enumerator corresponding to the specified `name` (without regard to the case of the characters in `name`). Return 0 on success, and a non‐zero value with no effect on `level` otherwise. The behavior is undefined unless `level` is non‐null and `name` is a null‐terminated (C‐style) string. Note that this procedure will fail unless `isValidName(name)` is `true`. | xref:BloombergLP/ball/SeverityUtil/fromAsciiCaseless.adoc[`fromAsciiCaseless`] | Load into the specified `level` the value of the `Severity::Level` enumerator corresponding to the specified `name` (without regard to the case of the characters in `name`). Return 0 on success, and a non‐zero value with no effect on `level` otherwise. The behavior is undefined unless `level` is non‐null and `name` is a null‐terminated (C‐style) string. Note that this procedure will fail unless `isValidName(name)` is 'true. | xref:BloombergLP/ball/SeverityUtil/isValidName.adoc[`isValidName`] | Return `true` if the specified `name` corresponds to an enumerator in the `Severity::Level` enumeration, and `false` otherwise. The behavior is undefined unless `name` is a null‐terminated (C‐style) string. Note that the names corresponding to `Severity::Level` enumerators are case _insensitive_. | xref:BloombergLP/ball/SeverityUtil/isValidNameCaseless.adoc[`isValidNameCaseless`] | Return `true` if the specified `name` corresponds to an enumerator in the `Severity::Level` enumeration (without regard to the characters in `name`), and `false` otherwise. The behavior is undefined unless `name` is a null‐terminated (C‐style) string. Note that the names corresponding to `Severity::Level` enumerators are case _insensitive_. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#