| 2792 | return newString; |
| 2793 | } |
| 2794 | inline static void decodePrefixedString(bool isPrefixed, char const *prefixed, unsigned *length, |
| 2795 | char const **value) |
| 2796 | { |
| 2797 | if (!isPrefixed) |
| 2798 | { |
| 2799 | *length = static_cast<unsigned>(strlen(prefixed)); |
| 2800 | *value = prefixed; |
| 2801 | } |
| 2802 | else |
| 2803 | { |
| 2804 | *length = *reinterpret_cast<unsigned const *>(prefixed); |
| 2805 | *value = prefixed + sizeof(unsigned); |
| 2806 | } |
| 2807 | } |
| 2808 | /** Free the string duplicated by |
| 2809 | * duplicateStringValue()/duplicateAndPrefixStringValue(). |
| 2810 | */ |
no outgoing calls
no test coverage detected