| 2550 | return newString; |
| 2551 | } |
| 2552 | inline static void decodePrefixedString(bool isPrefixed, char const *prefixed, |
| 2553 | unsigned *length, char const **value) { |
| 2554 | if (!isPrefixed) { |
| 2555 | *length = static_cast<unsigned>(strlen(prefixed)); |
| 2556 | *value = prefixed; |
| 2557 | } else { |
| 2558 | *length = *reinterpret_cast<unsigned const *>(prefixed); |
| 2559 | *value = prefixed + sizeof(unsigned); |
| 2560 | } |
| 2561 | } |
| 2562 | /** Free the string duplicated by |
| 2563 | * duplicateStringValue()/duplicateAndPrefixStringValue(). |
| 2564 | */ |
no outgoing calls
no test coverage detected