Simplify string object printing to reduce code duplication

This commit is contained in:
Michael Hansen
2023-06-09 09:09:03 -07:00
parent 4b4f9f8edb
commit 753d42d94a
5 changed files with 54 additions and 77 deletions

View File

@@ -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