| 354 | } |
| 355 | |
| 356 | void IfcLoader::PushDouble(double input) |
| 357 | { |
| 358 | std::string numberString = std::format("{}", input); |
| 359 | size_t eLoc = numberString.find_first_of('e'); |
| 360 | if (eLoc != std::string::npos) numberString[eLoc]='E'; |
| 361 | else if (std::floor(input) == input) numberString+='.'; |
| 362 | uint16_t length = numberString.size(); |
| 363 | Push<uint16_t>((uint16_t)length); |
| 364 | Push((void*)numberString.c_str(), numberString.size()); |
| 365 | } |
| 366 | |
| 367 | void IfcLoader::PushInt(int input) |
| 368 | { |
no test coverage detected