mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user