BloombergLP::ball::Severity::fromAscii

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

NameDescription
levelseverity level to set
stringcase-insensitive severity name
stringLengthlength of string