fixes for 2b39e6ed42
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user