Simplify string object printing to reduce code duplication
This commit is contained in:
@@ -27,11 +27,11 @@ public:
|
||||
|
||||
void setValue(std::string str) { m_value = std::move(str); }
|
||||
|
||||
void print(std::ostream& stream, class PycModule* mod, bool triple = false,
|
||||
const char* parent_f_string_quote = nullptr);
|
||||
|
||||
private:
|
||||
std::string m_value;
|
||||
};
|
||||
|
||||
void OutputString(std::ostream& stream, PycRef<PycString> str, char prefix,
|
||||
bool triple = false, const char* parent_f_string_quote = nullptr);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user