libyui-ncurses
 
Loading...
Searching...
No Matches
NCstring Class Reference

#include <NCstring.h>

Public Member Functions

 NCstring (const NCstring &nstr)
 
 NCstring (const std::wstring &wstr)
 
 NCstring (const std::string &str)
 Init from a UTF-8 string.
 
 NCstring (const char *cstr)
 Init from a UTF-8 string.
 
std::string Str () const
 Get a UTF-8 string.
 
NCstringoperator= (const NCstring &nstr)
 
NCstringoperator+= (const NCstring &nstr)
 
const std::wstring & str () const
 
void getHotkey () const
 (mutates the const object)
 

Static Public Member Functions

static bool RecodeToWchar (const std::string &in, const std::string &from_encoding, std::wstring *out)
 
static bool RecodeFromWchar (const std::wstring &in, const std::string &to_encoding, std::string *out)
 
static const std::string & terminalEncoding ()
 
static bool setTerminalEncoding (const std::string &encoding="")
 

Friends

class NClabel
 
std::ostream & operator<< (std::ostream &str, const NCstring &obj)
 

Detailed Description

A string with an optional hot key.

The current implementation stores a std::wstring.


The documentation for this class was generated from the following files: