std::string UUID::str(bool forceLong) const { std::stringstream ss; if (!forceLong && isShort()) { ss << boost::format("%02X") % static_cast<int>(uuid.value[2]); ss << boost::format("%02X") % static_cast<int>(uuid.value[3]); } else { for (int i = 0; i < UUID_LEN; i++) { if (i == 4 || i == 6 || i == 8 || i == 10) { ss << '-'; } ss << boost::format("%02X") % static_cast<int>(uuid.value[i]); } } return ss.str(); }
bool DragLine::isShort() const { return isShort(startPoint(), endPoint()); }
bool Type::isIntegral() const { return isAnyChar() || isShort() || isUnsignedShort() || isInt() || isUnsignedInt() || isLong() || isUnsignedLong() || isLongLong() || isUnsignedLongLong(); }
bool Type::isSigned() const { //XXX what about plain char? return isSignedChar() || isShort() || isInt() || isLong() || isLongLong(); }
bool Course::isLong() const { return !isShort(); }