From 711e499c703c5bd3a12183c2cbbd3910c7aba99b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 12 Jan 2003 23:55:59 +0000 Subject: start on otk::ustring (unicode/utf8) --- otk/ustring.cc | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 otk/ustring.cc (limited to 'otk/ustring.cc') diff --git a/otk/ustring.cc b/otk/ustring.cc new file mode 100644 index 00000000..571f9773 --- /dev/null +++ b/otk/ustring.cc @@ -0,0 +1,44 @@ +// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- + +#ifdef HAVE_CONFIG_H +# include "../config.h" +#endif // HAVE_CONFIG_H + +#include "ustring.hh" + +extern "C" { +#include +} + +namespace otk { + +ustring::ustring() +{ +} + +ustring::~ustring() +{ +} + +ustring::ustring(const ustring& other) + : _string(other._string) +{ +} + +ustring& ustring::operator=(const ustring& other) +{ + _string = other._string; + return *this; +} + +ustring::ustring(const std::string& src) + : _string(src) +{ +} + +ustring::ustring(const char* src) + : _string(src) +{ +} + +} -- cgit v1.2.3