#include "Stroika/Foundation/StroikaPreComp.h"
#include <optional>
#include <span>
#include "Stroika/Foundation/Characters/CodeCvt.h"
#include "TextConvert.inl"
Go to the source code of this file.
Namespaces | |
namespace | Stroika::Foundation |
namespace | Stroika::Foundation::Characters |
Enumerations | |
enum class | Stroika::Foundation::Characters::ByteOrderMark |
Functions | |
constexpr span< const byte > | Stroika::Foundation::Characters::GetByteOrderMark (UnicodeExternalEncodings e) noexcept |
constexpr optional< tuple< UnicodeExternalEncodings, size_t > > | Stroika::Foundation::Characters::ReadByteOrderMark (span< const byte > d) noexcept |
span< byte > | Stroika::Foundation::Characters::WriteByteOrderMark (UnicodeExternalEncodings e, span< byte > into) |
Variables | |
constexpr size_t | Stroika::Foundation::Characters::kMaxBOMSize = 3 |
Wrappers and extensions to the CodeCvt/std::codecvt<> logic. Often when reading/writing files (or a series of bytes) you have no, or limited knowledge of the code page. This contains logic to help with that case.
Definition in file TextConvert.h.