| 2606 | return newString; |
| 2607 | } |
| 2608 | inline static void decodePrefixedString( |
| 2609 | bool isPrefixed, char const* prefixed, |
| 2610 | unsigned* length, char const** value) |
| 2611 | { |
| 2612 | if (!isPrefixed) { |
| 2613 | *length = static_cast<unsigned>(strlen(prefixed)); |
| 2614 | *value = prefixed; |
| 2615 | } else { |
| 2616 | *length = *reinterpret_cast<unsigned const*>(prefixed); |
| 2617 | *value = prefixed + sizeof(unsigned); |
| 2618 | } |
| 2619 | } |
| 2620 | /** Free the string duplicated by duplicateStringValue()/duplicateAndPrefixStringValue(). |
| 2621 | */ |
| 2622 | #if JSONCPP_USING_SECURE_MEMORY |
no outgoing calls
no test coverage detected