This commit is contained in:
Andrzej Rybczak
2010-01-31 00:50:43 +01:00
parent a3a40b9ba8
commit 5701853d3a
2 changed files with 14 additions and 7 deletions

View File

@@ -106,6 +106,10 @@ namespace NCurses
void RemoveFormatting(short val_b, std::basic_string<C> pattern, short val_e,
bool case_sensitive, bool for_each = 1);
/// Removes all formating applied to string in buffer.
///
void RemoveFormatting();
/// Sets the pointer to string, that will be passed in operator<<() to window
/// object instead of the internal buffer. This is useful if you took the content
/// of the buffer, modified it somehow and want to print the modified version instead
@@ -253,6 +257,11 @@ template <typename C> void NCurses::basic_buffer<C>::RemoveFormatting( short val
}
}
template <typename C> void NCurses::basic_buffer<C>::RemoveFormatting()
{
itsFormat.clear();
}
template <typename C> void NCurses::basic_buffer<C>::SetTemp(std::basic_string<C> *tmp)
{
itsTempString = tmp;