1
0
forked from Alepha/Alepha

Relocate StackableStreambuf to IOStreams.

This commit is contained in:
2023-11-10 13:30:08 -05:00
parent 6d8e503562
commit db70cb3b08
10 changed files with 17 additions and 16 deletions

View File

@ -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
)

View File

@ -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
{

View File

@ -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;
}

View File

@ -1,5 +0,0 @@
target_sources( alepha PRIVATE
StackableStreambuf.cc
)
add_subdirectory( StackableStreambuf.test )

View File

@ -22,7 +22,7 @@ namespace Alepha::Hydrogen ::detail:: string_algorithms
}
struct VariableExpansionStreambuf
: public Utility::StackableStreambuf
: public IOStreams::StackableStreambuf
{
public:
VarMap substitutions;

View File

@ -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
{

View File

@ -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;

View File

@ -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