fixed issue causing hyprctl to output ill-formed json when strings include characters needing escaping

This commit is contained in:
Daniel Gerblick
2022-07-18 14:47:28 -04:00
parent dc1f34c5fa
commit f2c0e6ef02
3 changed files with 47 additions and 22 deletions

View File

@@ -5,6 +5,7 @@
void addWLSignal(wl_signal*, wl_listener*, void* pOwner, std::string ownerString);
void wlr_signal_emit_safe(struct wl_signal *signal, void *data);
std::string getFormat(const char *fmt, ...); // Basically Debug::log to a string
std::string escapeJSONStrings(const std::string& str);
void scaleBox(wlr_box*, float);
std::string removeBeginEndSpacesTabs(std::string);
bool isNumber(const std::string&, bool allowfloat = false);