move utf8_Error to *.h
This commit is contained in:
@@ -114,6 +114,17 @@ namespace std
|
||||
|
||||
namespace nana
|
||||
{
|
||||
/// move to *.h ??
|
||||
struct utf8_Error : std::runtime_error
|
||||
{
|
||||
static bool use_throw; ///< def { true }; use carefully - it is a global variable !! \todo initialize from a #define ?
|
||||
|
||||
using std::runtime_error::runtime_error;
|
||||
|
||||
void emit();
|
||||
};
|
||||
|
||||
|
||||
/// Checks whether a specified text is utf8 encoding
|
||||
bool is_utf8(const char* str, unsigned len);
|
||||
void throw_not_utf8(const std::string& text);
|
||||
|
||||
Reference in New Issue
Block a user