| 194 | } |
| 195 | |
| 196 | std::string toThreeUUID(const std::string& uuid) { |
| 197 | // uuid.to_s.gsub('{','').gsub('}','') |
| 198 | if (uuid.size() > 2) { |
| 199 | if ((uuid[0] == '{') && (uuid[uuid.size() - 1] == '}')) { |
| 200 | return uuid.substr(1, uuid.size() - 2); |
| 201 | } |
| 202 | } |
| 203 | return uuid; |
| 204 | } |
| 205 | |
| 206 | std::string fromThreeUUID(const std::string& uuid) { |
| 207 | if (uuid.size() > 2) { |
no test coverage detected