Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::widgets::skeletons::textbase< CharT > Class Template Reference
Inheritance diagram for nana::widgets::skeletons::textbase< CharT >:
nana::noncopyable

Public Types

using char_type = CharT
 
using string_type = std::basic_string< CharT >
 
using size_type = typename string_type::size_type
 
using path_type = std::filesystem::path
 

Public Member Functions

 textbase ()
 
void set_event_agent (textbase_event_agent_interface *evt)
 
bool empty () const
 
bool load (const path_type &file)
 
bool load (const path_type &file, nana::unicode encoding)
 
void store (const path_type &filename, bool is_unicode,::nana::unicode encoding) const
 
void text_changed ()
 
size_type lines () const
 
const string_typegetline (size_type pos) const
 
std::pair< size_t, size_t > max_line () const
 
void replace (size_type pos, string_type &&text)
 
void insert (upoint pos, string_type &&str)
 
void insertln (size_type pos, string_type &&str)
 
void erase (size_type line, size_type pos, size_type count)
 
bool erase (size_type pos, std::size_t n)
 
void erase_all ()
 
void merge (size_type pos)
 
const path_typefilename () const
 
bool edited () const
 
void reset_status (bool remain_saved_filename)
 
bool saved () const
 

Static Public Member Functions

static void byte_order_translate_2bytes (std::string &str)
 
static void byte_order_translate_4bytes (std::string &str)
 

Additional Inherited Members

- Protected Member Functions inherited from nana::noncopyable
 noncopyable ()=default
 

Member Typedef Documentation

template<typename CharT>
using nana::widgets::skeletons::textbase< CharT >::char_type = CharT
template<typename CharT>
using nana::widgets::skeletons::textbase< CharT >::path_type = std::filesystem::path
template<typename CharT>
using nana::widgets::skeletons::textbase< CharT >::size_type = typename string_type::size_type
template<typename CharT>
using nana::widgets::skeletons::textbase< CharT >::string_type = std::basic_string<CharT>

Constructor & Destructor Documentation

template<typename CharT>
nana::widgets::skeletons::textbase< CharT >::textbase ( )
inline

Member Function Documentation

template<typename CharT>
static void nana::widgets::skeletons::textbase< CharT >::byte_order_translate_2bytes ( std::string str)
inlinestatic
template<typename CharT>
static void nana::widgets::skeletons::textbase< CharT >::byte_order_translate_4bytes ( std::string str)
inlinestatic
template<typename CharT>
bool nana::widgets::skeletons::textbase< CharT >::edited ( ) const
inline
template<typename CharT>
bool nana::widgets::skeletons::textbase< CharT >::empty ( ) const
inline
template<typename CharT>
void nana::widgets::skeletons::textbase< CharT >::erase ( size_type  line,
size_type  pos,
size_type  count 
)
inline
template<typename CharT>
bool nana::widgets::skeletons::textbase< CharT >::erase ( size_type  pos,
std::size_t  n 
)
inline
template<typename CharT>
void nana::widgets::skeletons::textbase< CharT >::erase_all ( )
inline
template<typename CharT>
const path_type& nana::widgets::skeletons::textbase< CharT >::filename ( ) const
inline
template<typename CharT>
const string_type& nana::widgets::skeletons::textbase< CharT >::getline ( size_type  pos) const
inline
template<typename CharT>
void nana::widgets::skeletons::textbase< CharT >::insert ( upoint  pos,
string_type &&  str 
)
inline
template<typename CharT>
void nana::widgets::skeletons::textbase< CharT >::insertln ( size_type  pos,
string_type &&  str 
)
inline
template<typename CharT>
size_type nana::widgets::skeletons::textbase< CharT >::lines ( ) const
inline
template<typename CharT>
bool nana::widgets::skeletons::textbase< CharT >::load ( const path_type file)
inline
template<typename CharT>
bool nana::widgets::skeletons::textbase< CharT >::load ( const path_type file,
nana::unicode  encoding 
)
inline
template<typename CharT>
std::pair<size_t, size_t> nana::widgets::skeletons::textbase< CharT >::max_line ( ) const
inline
template<typename CharT>
void nana::widgets::skeletons::textbase< CharT >::merge ( size_type  pos)
inline
template<typename CharT>
void nana::widgets::skeletons::textbase< CharT >::replace ( size_type  pos,
string_type &&  text 
)
inline
template<typename CharT>
void nana::widgets::skeletons::textbase< CharT >::reset_status ( bool  remain_saved_filename)
inline
template<typename CharT>
bool nana::widgets::skeletons::textbase< CharT >::saved ( ) const
inline
template<typename CharT>
void nana::widgets::skeletons::textbase< CharT >::set_event_agent ( textbase_event_agent_interface evt)
inline
template<typename CharT>
void nana::widgets::skeletons::textbase< CharT >::store ( const path_type filename,
bool  is_unicode,
::nana::unicode  encoding 
) const
inline
template<typename CharT>
void nana::widgets::skeletons::textbase< CharT >::text_changed ( )
inline