Modernize TextBuffer's GenHTML() function #2597

Open
opened 2026-01-30 22:59:19 +00:00 by claunia · 0 comments
Owner

Originally created by @carlos-zamora on GitHub (Jul 5, 2019).

Summary of the new feature/enhancement

There's a bit of refactoring that needs to get done for this GenHTML() function. I'm moving it to TextBuffer in PR #1224. So after that goes in, it'll be fair game.

Proposed technical implementation details (optional)

Some of the work suggested by fcharlie and mauve:

  • change some std::string const to constexpr std::wstring_view
  • move some variables to point of first use
  • remove Hungarian notation NL.5: Avoid encoding type information in names
  • resize, format, resize again seems cumbersome. Look into using C++ streams instead
Originally created by @carlos-zamora on GitHub (Jul 5, 2019). # Summary of the new feature/enhancement There's a bit of refactoring that needs to get done for this `GenHTML()` function. I'm moving it to `TextBuffer` in PR #1224. So after that goes in, it'll be fair game. # Proposed technical implementation details (optional) Some of the work suggested by fcharlie and mauve: - change some `std::string const` to `constexpr std::wstring_view` - move some variables to point of first use - remove Hungarian notation [NL.5: Avoid encoding type information in names](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rl-name-type) - resize, format, resize again seems cumbersome. Look into using C++ streams instead
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2597