| 137 | return newString; |
| 138 | } |
| 139 | inline static void decodePrefixedString( |
| 140 | bool isPrefixed, char const* prefixed, |
| 141 | unsigned* length, char const** value) |
| 142 | { |
| 143 | if (!isPrefixed) { |
| 144 | *length = static_cast<unsigned>(strlen(prefixed)); |
| 145 | *value = prefixed; |
| 146 | } else { |
| 147 | *length = *reinterpret_cast<unsigned const*>(prefixed); |
| 148 | *value = prefixed + sizeof(unsigned); |
| 149 | } |
| 150 | } |
| 151 | /** Free the string duplicated by duplicateStringValue()/duplicateAndPrefixStringValue(). |
| 152 | */ |
| 153 | #if JSONCPP_USING_SECURE_MEMORY |
no outgoing calls
no test coverage detected