| 2559 | return newString; |
| 2560 | } |
| 2561 | inline static void decodePrefixedString( |
| 2562 | bool isPrefixed, char const* prefixed, |
| 2563 | unsigned* length, char const** value) |
| 2564 | { |
| 2565 | if (!isPrefixed) { |
| 2566 | *length = static_cast<unsigned>(strlen(prefixed)); |
| 2567 | *value = prefixed; |
| 2568 | } else { |
| 2569 | *length = *reinterpret_cast<unsigned const*>(prefixed); |
| 2570 | *value = prefixed + sizeof(unsigned); |
| 2571 | } |
| 2572 | } |
| 2573 | /** Free the string duplicated by duplicateStringValue()/duplicateAndPrefixStringValue(). |
| 2574 | */ |
| 2575 | static inline void releaseStringValue(char* value) { free(value); } |
no outgoing calls
no test coverage detected