| 151 | return newString; |
| 152 | } |
| 153 | inline static void decodePrefixedString(bool isPrefixed, char const* prefixed, |
| 154 | unsigned* length, char const** value) { |
| 155 | if (!isPrefixed) { |
| 156 | *length = static_cast<unsigned>(strlen(prefixed)); |
| 157 | *value = prefixed; |
| 158 | } else { |
| 159 | *length = *reinterpret_cast<unsigned const*>(prefixed); |
| 160 | *value = prefixed + sizeof(unsigned); |
| 161 | } |
| 162 | } |
| 163 | /** Free the string duplicated by |
| 164 | * duplicateStringValue()/duplicateAndPrefixStringValue(). |
| 165 | */ |
no test coverage detected
searching dependent graphs…