| 75 | } |
| 76 | |
| 77 | bool Json::unique() const { |
| 78 | if (m_data.is<StringConstPtr>()) |
| 79 | return m_data.get<StringConstPtr>().unique(); |
| 80 | else if (m_data.is<JsonArrayConstPtr>()) |
| 81 | return m_data.get<JsonArrayConstPtr>().unique(); |
| 82 | else if (m_data.is<JsonObjectConstPtr>()) |
| 83 | return m_data.get<JsonObjectConstPtr>().unique(); |
| 84 | else |
| 85 | return true; |
| 86 | } |
| 87 | |
| 88 | Json Json::ofType(Type t) { |
| 89 | switch (t) { |
no outgoing calls
no test coverage detected