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:
13
word_wrap.h
Normal file
13
word_wrap.h
Normal 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 );
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user