1
0
forked from Alepha/Alepha

Word wrapping implementation.

This was in my scratch notes.  I have to get it building again.
This commit is contained in:
2023-10-09 18:51:56 -04:00
parent 233f220779
commit 103707367c
2 changed files with 79 additions and 0 deletions

13
word_wrap.h Normal file
View File

@ -0,0 +1,13 @@
static_assert( __cplusplus > 2020'00 );
#pragma once
#include <cstddef>
namespace Alepha::inline Cavorite ::detail:: word_wrap
{
inline namespace exports
{
std::string wordWrap( const std::string &text, std::size_t width, std::size_t nextLineOffset= 0 );
}
}