version 1.43, 2002/03/21 21:11:19
|
version 1.44, 2002/03/22 02:40:29
|
|
|
if (!isxdigit(*p)) | if (!isxdigit(*p)) |
return false; | return false; |
| |
// Find the first non-zero digit so we have something to negate |
|
while (*p == '0') |
|
p++; |
|
|
|
// If all the digits are zero, the result is zero |
|
if (!*p) |
|
return true; |
|
|
|
// Build the Sint64 as a negative number, regardless of the | // Build the Sint64 as a negative number, regardless of the |
// eventual sign (negative numbers can be bigger than positive ones) | // eventual sign (negative numbers can be bigger than positive ones) |
x = -Sint64(_hexCharToNumeric(*p++)); |
|
| |
// Add on each digit, checking for overflow errors | // Add on each digit, checking for overflow errors |
while (isxdigit(*p)) | while (isxdigit(*p)) |
|
|
| |
// Build the Sint64 as a negative number, regardless of the | // Build the Sint64 as a negative number, regardless of the |
// eventual sign (negative numbers can be bigger than positive ones) | // eventual sign (negative numbers can be bigger than positive ones) |
x = -(*p++ - '0'); |
|
| |
// Add on each digit, checking for overflow errors | // Add on each digit, checking for overflow errors |
while (isdigit(*p)) | while (isdigit(*p)) |
|
|
| |
// The Specification for the Representation of CIM in XML does not indicate | // The Specification for the Representation of CIM in XML does not indicate |
// that a default value should be used when a VALUE element is empty. | // that a default value should be used when a VALUE element is empty. |
//#if 0 |
//#if 0 ATTN-RK-P3-20020321: Take this code out when null qualifiers are fixed |
// If strlen == 0, set to default value for type | // If strlen == 0, set to default value for type |
| |
if (strlen(valueString)==0) | if (strlen(valueString)==0) |
|
|
Boolean translatable = getCimBooleanAttribute( | Boolean translatable = getCimBooleanAttribute( |
lineNumber, entry, tagName, "TRANSLATABLE", false, false); | lineNumber, entry, tagName, "TRANSLATABLE", false, false); |
| |
// ATTN: KS P1 5 Mar 2002 Should this not be CIMFlavor::DEFAULTS?? |
// Start with CIMFlavor::NONE. Defaults are specified in the |
//Uint32 flavor = CIMFlavor::DEFAULTS; |
// getCimBooleanAttribute() calls above. |
// ATTN-RK-P1-20020307: No, Karl. If you initialize to the defaults, |
|
// you have to unset the default flavors that don't apply. The code |
|
// below only adds qualifiers. |
|
Uint32 flavor = CIMFlavor::NONE; | Uint32 flavor = CIMFlavor::NONE; |
| |
if (overridable) | if (overridable) |