Lines Matching refs:value
94 IntegerFormatter::FormatValue(const BVariant& value, integer_format format,
98 if (!value.IsInteger(&isSigned))
107 format = GetFormatForTypeAndFormat(value.Type(), format, formatString,
110 // format the value
114 value.Type() == B_INT8_TYPE ? value.ToInt8() :
115 value.Type() == B_INT16_TYPE ? value.ToInt16() :
116 value.Type() == B_INT32_TYPE ? value.ToInt32() :
117 value.ToInt64());
121 value.Type() == B_INT8_TYPE ? value.ToUInt8() :
122 value.Type() == B_INT16_TYPE ? value.ToUInt16() :
123 value.Type() == B_INT32_TYPE ? value.ToUInt32() :
124 value.ToUInt64());
127 snprintf(buffer, bufferSize, "%#x", (uint8)value.ToUInt64());
130 snprintf(buffer, bufferSize, "%#x", (uint16)value.ToUInt64());
134 (uint32)value.ToUInt64());
138 snprintf(buffer, bufferSize, "%#" B_PRIx64, value.ToUInt64());