nice spotify notification
This commit is contained in:
@@ -37,4 +37,11 @@ public:
|
||||
tokens.push_back(input.substr(start));
|
||||
return tokens;
|
||||
}
|
||||
|
||||
static std::string trimToSize(const std::string &input, size_t maxSize) {
|
||||
if (input.length() <= maxSize) {
|
||||
return input;
|
||||
}
|
||||
return input.substr(0, maxSize) + "...";
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user