diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-12 23:55:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-12 23:55:59 +0000 |
| commit | 711e499c703c5bd3a12183c2cbbd3910c7aba99b (patch) | |
| tree | e611fda45ce1093482d5734a59c5b888a03b0132 /otk/ustring.cc | |
| parent | bc99e6a420c04b4607bffc90e528d9572649f95f (diff) | |
start on otk::ustring (unicode/utf8)
Diffstat (limited to 'otk/ustring.cc')
| -rw-r--r-- | otk/ustring.cc | 44 |
1 files changed, 44 insertions, 0 deletions
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 <assert.h> +} + +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) +{ +} + +} |
