forked from Alepha/Alepha
Relocate StackableStreambuf
to IOStreams.
This commit is contained in:
@ -2,3 +2,9 @@ add_subdirectory( IStreamable.test )
|
||||
add_subdirectory( OStreamable.test )
|
||||
add_subdirectory( streamable.test )
|
||||
add_subdirectory( OutUnixFileBuf.test )
|
||||
add_subdirectory( StackableStreambuf.test )
|
||||
|
||||
target_sources( alepha PRIVATE
|
||||
StackableStreambuf.cc
|
||||
)
|
||||
|
||||
|
@ -4,7 +4,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <cassert>
|
||||
|
||||
namespace Alepha::Hydrogen::Utility::detail::stackable_streambuf
|
||||
namespace Alepha::Hydrogen::IOStreams::detail::stackable_streambuf
|
||||
{
|
||||
namespace
|
||||
{
|
@ -10,7 +10,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include <memory>
|
||||
#include <stack>
|
||||
|
||||
namespace Alepha::Hydrogen::Utility ::detail:: stackable_streambuf
|
||||
namespace Alepha::Hydrogen::IOStreams ::detail:: stackable_streambuf
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
@ -63,7 +63,7 @@ namespace Alepha::Hydrogen::Utility ::detail:: stackable_streambuf
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::Utility::inline exports::inline stackable_streambuf
|
||||
namespace Alepha::Hydrogen::IOStreams::inline exports::inline stackable_streambuf
|
||||
{
|
||||
using namespace detail::stackable_streambuf::exports;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
target_sources( alepha PRIVATE
|
||||
StackableStreambuf.cc
|
||||
)
|
||||
|
||||
add_subdirectory( StackableStreambuf.test )
|
||||
|
@ -22,7 +22,7 @@ namespace Alepha::Hydrogen ::detail:: string_algorithms
|
||||
}
|
||||
|
||||
struct VariableExpansionStreambuf
|
||||
: public Utility::StackableStreambuf
|
||||
: public IOStreams::StackableStreambuf
|
||||
{
|
||||
public:
|
||||
VarMap substitutions;
|
||||
|
@ -18,7 +18,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <Alepha/Concepts.h>
|
||||
|
||||
#include <Alepha/Utility/StackableStreambuf.h>
|
||||
#include <Alepha/IOStreams/StackableStreambuf.h>
|
||||
|
||||
namespace Alepha::Hydrogen ::detail:: string_algorithms
|
||||
{
|
||||
@ -51,11 +51,11 @@ namespace Alepha::Hydrogen ::detail:: string_algorithms
|
||||
{}
|
||||
};
|
||||
|
||||
using StartSubstitutions= Utility::PushStack< StartSubstitutions_params >;
|
||||
using StartSubstitutions= IOStreams::PushStack< StartSubstitutions_params >;
|
||||
|
||||
// Note that these function as a stack -- so `EndSubstitutions` will
|
||||
// terminate the top of that stack.
|
||||
constexpr Utility::PopStack EndSubstitutions;
|
||||
constexpr IOStreams::PopStack EndSubstitutions;
|
||||
|
||||
inline namespace impl
|
||||
{
|
||||
|
@ -41,7 +41,7 @@ namespace Alepha::Hydrogen ::detail:: word_wrap_m
|
||||
}
|
||||
|
||||
struct WordWrapStreambuf
|
||||
: public Utility::StackableStreambuf
|
||||
: public IOStreams::StackableStreambuf
|
||||
{
|
||||
public:
|
||||
std::size_t maximumWidth= 0;
|
||||
|
@ -9,7 +9,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include <string>
|
||||
#include <streambuf>
|
||||
|
||||
#include <Alepha/Utility/StackableStreambuf.h>
|
||||
#include <Alepha/IOStreams/StackableStreambuf.h>
|
||||
|
||||
namespace Alepha::Hydrogen ::detail:: word_wrap_m
|
||||
{
|
||||
@ -25,9 +25,9 @@ namespace Alepha::Hydrogen ::detail:: word_wrap_m
|
||||
explicit StartWrap_params( const std::size_t width, const std::size_t nextLineOffset= 0 ) : width( width ), nextLineOffset( nextLineOffset ) {}
|
||||
};
|
||||
|
||||
using StartWrap= Utility::PushStack< StartWrap_params >;
|
||||
using StartWrap= IOStreams::PushStack< StartWrap_params >;
|
||||
|
||||
constexpr Utility::PopStack EndWrap;
|
||||
constexpr IOStreams::PopStack EndWrap;
|
||||
}
|
||||
|
||||
inline namespace impl
|
||||
|
Reference in New Issue
Block a user