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