Unified · Split
| @@ -281,7 +281,7 @@ bool GSF::ParseBoolean(const string& value) · 280 unmodified lines | |||
| 281 | 281 | ||
| 282 | const string result = Trim(value); | 282 | const string result = Trim(value); |
| 283 | 283 | ||
| 284 | if (result.empty()) | 284 | if (!result.empty()) |
| 285 | { | 285 | { |
| 286 | if (IsEqual(result, "true")) | 286 | if (IsEqual(result, "true")) |
| 287 | return true; | 287 | return true; |
| @@ -25,6 +25,7 @@ · 24 unmodified lines | |||
| 25 | #define __COMMON_CONVERT_H | 25 | #define __COMMON_CONVERT_H |
| 26 | 26 | ||
| 27 | #include "CommonTypes.h" | 27 | #include "CommonTypes.h" |
| 28 | #include "EndianConverter.h" | ||
| 28 | 29 | ||
| 29 | namespace GSF | 30 | namespace GSF |
| 30 | { | 31 | { |
| @@ -77,7 +78,7 @@ namespace GSF · 46 unmodified lines | |||
| 77 | std::string RegExEncode(char value); | 78 | std::string RegExEncode(char value); |
| 78 | 79 | ||
| 79 | // Converts 16 contiguous bytes of character data into a globally unique identifier | 80 | // Converts 16 contiguous bytes of character data into a globally unique identifier |
| 80 | Guid ParseGuid(const uint8_t* data, bool swapBytes); | 81 | Guid ParseGuid(const uint8_t* data, bool swapBytes = EndianConverter::Default.NativeOrder() == EndianConverter::LittleEndian); |
| 81 | Guid ParseGuid(const char* data); | 82 | Guid ParseGuid(const char* data); |
| 82 | 83 | ||
| 83 | // Returns a non-empty nor null value | 84 | // Returns a non-empty nor null value |