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