BloombergLP::bsls::AssertTest::isValidAssertBuild

Return true if the specified specString represents a valid textual description of an assertion build type, and false otherwise. specString is valid if it refers to a null-terminated character string of length either 1 or 2, where the first character is an (UPPERCASE) S, A, O, or I, and the second character, if present, is the numeral 2. Note that S, A, O, and I are intended to represent the respective assertion types BSLS_ASSERT_SAFE, BSLS_ASSERT, BSLS_ASSERT_OPT, and BSLS_ASSERT_INVOKE, and the optional 2 is intended to indicate that the component (and program as a whole) was built with BDE_BUILD_TARGET_SAFE_2 defined. The behavior is undefined unless specString points to a null terminated string (C string).

Synopsis

Declared in <bsls_asserttest.h>

static
bool
isValidAssertBuild(char const* specString);