swaymux/util/StringUtil.h

13 lines
240 B
C
Raw Permalink Normal View History

2024-03-02 22:33:27 +01:00
//
// Created by grimmauld on 25.02.24.
//
#include <iostream>
#include <algorithm>
#include <cctype>
#include <string>
inline void trim(std::string & s) {
s.erase(std::remove_if(s.begin(), s.end(), ::isspace),
s.end());
}