Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
TextConvert.h File Reference
#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
 

Detailed Description

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.