Format and .clang-format

This commit is contained in:
faumaray committed 2026-01-19 19:52:30 +03:00
1 parent 6aed7b0027
commit b94b634a87
47 files changed
+42341 -39711

No files matched your search

+13 -12
View File
@@ -3,20 +3,21 @@
#include <cstdint>
#include <string>
namespace ts6bot::url {
namespace ts6bot::url
{
// Percent-encode a string for use as a query parameter value.
std::string EncodeComponent(const std::string& s);
// Percent-encode a string for use as a query parameter value.
std::string EncodeComponent(const std::string& s);
struct HttpUrl {
std::string host;
uint16_t port{};
std::string path; // begins with '/'
};
struct HttpUrl {
std::string host;
uint16_t port{};
std::string path; // begins with '/'
};
// Minimal parser for redirect URIs.
// Supports: http://<host>:<port>/<path>
// Throws std::runtime_error on invalid input.
HttpUrl ParseHttpUrl(const std::string& httpUrl);
// Minimal parser for redirect URIs.
// Supports: http://<host>:<port>/<path>
// Throws std::runtime_error on invalid input.
HttpUrl ParseHttpUrl(const std::string& httpUrl);
} // namespace ts6bot::url