Files
alejo 04fa2b1b20 On branch main
Your branch is up to date with 'origin/main'.

Accounts:
the account panel now sorts from most free to least free. Fewer Busy tasks come first, and ties go alphabetically.

Tasks:
they now sort by status, then account A–Z, then wait time, then task name.

Status order:
Limit reset, Testing, Prompt, Wait, Uploading, Frozen, Done.

Account order: it ignores case. Tasks with no account come last in their status group.
Wait time: it only matters among tasks that have the same status and the same account.

Changes to be committed:
	modified:   README.md
	modified:   include/Status.h
	modified:   include/StringUtil.h
	modified:   src/Display.cpp
	modified:   src/Status.cpp
	modified:   src/StringUtil.cpp
2026-10-17 11:59:35 -03:00

22 lines
700 B
C++

#pragma once
#include <cstddef>
#include <string>
#include <vector>
namespace StringUtil {
std::string lower(const std::string& text);
std::string trim(const std::string& text);
bool equalsIgnoreCase(const std::string& a, const std::string& b);
bool startsWithIgnoreCase(const std::string& text, const std::string& prefix);
std::string join(const std::vector<std::string>& parts, std::size_t from, const std::string& separator);
// Number of characters (UTF-8 code points) in the text.
std::size_t displayWidth(const std::string& text);
// Number of lines in the text, ignoring trailing blank lines (0 for empty text).
std::size_t lineCount(const std::string& text);
} // namespace StringUtil