Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -4,7 +4,6 @@
#include "base/assert.hpp"
#include "base/string_utils.hpp"
namespace url
{
using namespace std;
@@ -12,9 +11,7 @@ using namespace std;
Url::Url(std::string const & url)
{
if (!Parse(url))
{
ASSERT(m_scheme.empty() && m_host.empty() && m_path.empty() && !IsValid(), ());
}
}
Url Url::FromString(std::string const & url)
@@ -122,8 +119,8 @@ string UrlEncode(string const & rawUrl)
for (size_t i = 0; i < count; ++i)
{
char const c = rawUrl[i];
if (c < '-' || c == '/' || (c > '9' && c < 'A') || (c > 'Z' && c < '_') ||
c == '`' || (c > 'z' && c < '~') || c > '~')
if (c < '-' || c == '/' || (c > '9' && c < 'A') || (c > 'Z' && c < '_') || c == '`' || (c > 'z' && c < '~') ||
c > '~')
{
result += '%';
result += NumToHex(c);