mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-14 00:18:58 +01:00
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
|
/*
|
||
|
* Copyright (C) Nemirtingas
|
||
|
* This file is part of System.
|
||
|
*
|
||
|
* System is free software; you can redistribute it
|
||
|
* and/or modify it under the terms of the GNU Lesser General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 3 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* System is distributed in the hope that it will be
|
||
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Lesser General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Lesser General Public
|
||
|
* License along with the System; if not, see
|
||
|
* <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
namespace System {
|
||
|
namespace Encoding {
|
||
|
|
||
|
std::wstring Utf8ToWChar(std::string const& str);
|
||
|
|
||
|
std::u16string Utf8ToUtf16(std::string const& str);
|
||
|
|
||
|
std::u32string Utf8ToUtf32(std::string const& str);
|
||
|
|
||
|
std::string WCharToUtf8(std::wstring const& str);
|
||
|
|
||
|
std::string Utf16ToUtf8(std::u16string const& str);
|
||
|
|
||
|
std::string Utf32ToUtf8(std::u32string const& str);
|
||
|
|
||
|
// Size of UTF8 chars (not the size of the byte buffer).
|
||
|
size_t EncodedLength(std::string const& str);
|
||
|
|
||
|
}
|
||
|
}
|