| 2585 | return newString; |
| 2586 | } |
| 2587 | inline static void decodePrefixedString( |
| 2588 | bool isPrefixed, char const* prefixed, |
| 2589 | unsigned* length, char const** value) |
| 2590 | { |
| 2591 | if (!isPrefixed) { |
| 2592 | *length = static_cast<unsigned>(strlen(prefixed)); |
| 2593 | *value = prefixed; |
| 2594 | } else { |
| 2595 | *length = *reinterpret_cast<unsigned const*>(prefixed); |
| 2596 | *value = prefixed + sizeof(unsigned); |
| 2597 | } |
| 2598 | } |
| 2599 | /** Free the string duplicated by duplicateStringValue()/duplicateAndPrefixStringValue(). |
| 2600 | */ |
| 2601 | #if JSONCPP_USING_SECURE_MEMORY |
no outgoing calls
no test coverage detected