Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Common/Convert.cpp (1 of 13 files). Show all
Unified · Split
| @@ -273,6 +273,13 @@ string GSF::ToUTF8(const wstring& value) · 272 unmodified lines | |||
| 273 | return converter.to_bytes(value); | 273 | return converter.to_bytes(value); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | std::string GSF::RegExEncode(const char value) | ||
| 277 | { | ||
| 278 | std::stringstream stream; | ||
| 279 | stream << std::hex << static_cast<int>(value); | ||
| 280 | return "\\u" + PadLeft(stream.str(), 4, '0'); | ||
| 281 | } | ||
| 282 | |||
| 276 | Guid GSF::ParseGuid(const uint8_t* data, bool swapBytes) | 283 | Guid GSF::ParseGuid(const uint8_t* data, bool swapBytes) |
| 277 | { | 284 | { |
| 278 | Guid id; | 285 | Guid id; |