| 456 | } |
| 457 | |
| 458 | std::string TokenFunc::asString(const Token& token) { |
| 459 | if (isString(token) || isEnumeration(token) || isBinary(token)) { |
| 460 | return asStringRef(token); |
| 461 | } |
| 462 | throw IfcInvalidTokenException(token.startPos, toString(token), "string"); |
| 463 | } |
| 464 | |
| 465 | boost::dynamic_bitset<> TokenFunc::asBinary(const Token& token) { |
| 466 | const std::string& str = asStringRef(token); |
nothing calls this directly
no test coverage detected