Ejemplo n.º 1
0
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();
}
Ejemplo n.º 2
0
bool DragLine::isShort() const {
  return isShort(startPoint(), endPoint());
}
Ejemplo n.º 3
0
bool Type::isIntegral() const {
	return isAnyChar() || isShort() || isUnsignedShort() || isInt()
		|| isUnsignedInt() || isLong() || isUnsignedLong() || isLongLong() || isUnsignedLongLong();
}
Ejemplo n.º 4
0
bool Type::isSigned() const { //XXX what about plain char?
	return isSignedChar() || isShort() || isInt() || isLong() || isLongLong();
}
bool Course::isLong() const {
  return !isShort();
}