New upstream version 24.0.1+dfsg1
This commit is contained in:
parent
b14f9eae6d
commit
5a730d6ec3
842 changed files with 42245 additions and 33385 deletions
|
|
@ -21,15 +21,12 @@
|
|||
class DStr {
|
||||
dstr str;
|
||||
|
||||
DStr(DStr const&) = delete;
|
||||
DStr &operator=(DStr const&) = delete;
|
||||
DStr(DStr const &) = delete;
|
||||
DStr &operator=(DStr const &) = delete;
|
||||
|
||||
public:
|
||||
inline DStr() {dstr_init(&str);}
|
||||
inline DStr(DStr &&other) : DStr()
|
||||
{
|
||||
dstr_move(&str, &other.str);
|
||||
}
|
||||
inline DStr() { dstr_init(&str); }
|
||||
inline DStr(DStr &&other) : DStr() { dstr_move(&str, &other.str); }
|
||||
|
||||
inline DStr &operator=(DStr &&other)
|
||||
{
|
||||
|
|
@ -37,13 +34,13 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
inline ~DStr() {dstr_free(&str);}
|
||||
inline ~DStr() { dstr_free(&str); }
|
||||
|
||||
inline operator dstr*() {return &str;}
|
||||
inline operator const dstr*() const {return &str;}
|
||||
inline operator dstr *() { return &str; }
|
||||
inline operator const dstr *() const { return &str; }
|
||||
|
||||
inline operator char*() {return str.array;}
|
||||
inline operator const char*() const {return str.array;}
|
||||
inline operator char *() { return str.array; }
|
||||
inline operator const char *() const { return str.array; }
|
||||
|
||||
inline dstr *operator->() {return &str;}
|
||||
inline dstr *operator->() { return &str; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue