MCPcopy Create free account
hub / github.com/SOUI2/soui / decodePrefixedString

Function decodePrefixedString

third-part/jsoncpp/src/lib_json/json_value.cpp:139–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 return newString;
138}
139inline static void decodePrefixedString(
140 bool isPrefixed, char const* prefixed,
141 unsigned* length, char const** value)
142{
143 if (!isPrefixed) {
144 *length = static_cast<unsigned>(strlen(prefixed));
145 *value = prefixed;
146 } else {
147 *length = *reinterpret_cast<unsigned const*>(prefixed);
148 *value = prefixed + sizeof(unsigned);
149 }
150}
151/** Free the string duplicated by duplicateStringValue()/duplicateAndPrefixStringValue().
152 */
153#if JSONCPP_USING_SECURE_MEMORY

Callers 9

ValueMethod · 0.85
operator<Method · 0.85
operator==Method · 0.85
asCStringMethod · 0.85
getCStringLengthMethod · 0.85
getStringMethod · 0.85
asStringMethod · 0.85
asConstStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected