forked from Alepha/Alepha
Allow for setting of delimiters.
This commit is contained in:
@ -27,6 +27,9 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: delimiters_m
|
|||||||
explicit
|
explicit
|
||||||
Delimiter( const std::string dflt )
|
Delimiter( const std::string dflt )
|
||||||
: state( [dflt] { return dflt; } ) {}
|
: state( [dflt] { return dflt; } ) {}
|
||||||
|
|
||||||
|
void set( const std::string s ) { state.setDefault( s ); }
|
||||||
|
void set( const char c ) { set( std::string{ c } ); }
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace exports
|
namespace exports
|
||||||
|
|||||||
Reference in New Issue
Block a user