Reformat á la VS2022

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2023-06-07 12:06:43 +02:00
parent 5d46888dc2
commit 067cbddf64

View File

@ -92,7 +92,7 @@ namespace stdex
///
template <class T>
inline void sgml2str(
_Inout_ std::wstring &dst,
_Inout_ std::wstring& dst,
_In_reads_or_z_opt_(count_src) const T* src, _In_ size_t count_src,
_In_ int skip = 0,
_In_ const mapping<size_t>& offset = mapping<size_t>(0, 0),
@ -133,7 +133,8 @@ namespace stdex
if (unicode < 0x10000) {
chr[0] = (wchar_t)unicode;
chr[1] = 0;
} else {
}
else {
ucs4_to_surrogate_pair(chr, unicode);
chr[2] = 0;
}
@ -233,7 +234,7 @@ namespace stdex
/// \param[in] what Bitwise flag of stdex::sgml_* constants that force extra characters otherwise not converted to SGML
///
inline void str2sgml(
_Inout_ std::string &dst,
_Inout_ std::string& dst,
_In_reads_or_z_opt_(count_src) const wchar_t* src,
_In_ size_t count_src,
_In_ size_t what = 0)
@ -312,7 +313,8 @@ namespace stdex
if (i + 1 < end && is_surrogate_pair(src + i)) {
unicode = surrogate_pair_to_ucs4(src + i);
i += 2;
} else
}
else
#endif
{
unicode = src[i++];