all repos — openbox @ ecfac5f20c72647b4865a14ccffc307c2b116319

openbox fork - make it a bit more like ryudo

otk/ustring.cc (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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)
{
}

}