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