html: cleanup

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2024-01-24 18:19:01 +01:00
parent 4a8ba9eb60
commit 10830d5583

View File

@ -1998,7 +1998,7 @@ namespace stdex
size_t append_tag(_Inout_ std::basic_string<char, TR, AX>& str) const size_t append_tag(_Inout_ std::basic_string<char, TR, AX>& str) const
{ {
size_t n = str.size(); size_t n = str.size();
// Use %X instead of %p to ommit leading zeros and save space. // Use %X instead of %p to omit leading zeros and save space.
stdex::appendf(str, "%c%zX%c", stdex::locale_C, token_tag_start, reinterpret_cast<uintptr_t>(this), token_tag_end); stdex::appendf(str, "%c%zX%c", stdex::locale_C, token_tag_start, reinterpret_cast<uintptr_t>(this), token_tag_end);
return str.size() - n; return str.size() - n;
} }
@ -2013,7 +2013,7 @@ namespace stdex
template<class TR = std::char_traits<wchar_t>, class AX = std::allocator<wchar_t>> template<class TR = std::char_traits<wchar_t>, class AX = std::allocator<wchar_t>>
size_t append_tag(_Inout_ std::basic_string<wchar_t, TR, AX>& str) const size_t append_tag(_Inout_ std::basic_string<wchar_t, TR, AX>& str) const
{ {
// Use %X instead of %p to ommit leading zeros and save space. // Use %X instead of %p to omit leading zeros and save space.
return stdex::appendf(str, L"%c%zX%c", stdex::locale_C, static_cast<wchar_t>(token_tag_start), reinterpret_cast<uintptr_t>(this), static_cast<wchar_t>(token_tag_end)); return stdex::appendf(str, L"%c%zX%c", stdex::locale_C, static_cast<wchar_t>(token_tag_start), reinterpret_cast<uintptr_t>(this), static_cast<wchar_t>(token_tag_end));
} }
@ -2420,7 +2420,7 @@ namespace stdex
/// \param[in] end Parse sequences on [`m_offset`, `end`) interval /// \param[in] end Parse sequences on [`m_offset`, `end`) interval
/// \param[in] text_type Text flags of the sequences being parsed /// \param[in] text_type Text flags of the sequences being parsed
/// ///
/// \returns Token represening sequences parsed /// \returns Token representing sequences parsed
/// ///
text_token<T, TR, AX>* parse(_In_ const sequence_store::const_iterator& end, _In_ uint32_t text_type = 0) text_token<T, TR, AX>* parse(_In_ const sequence_store::const_iterator& end, _In_ uint32_t text_type = 0)
{ {