14 IStringList(std::vector<string> &&in) { reserve(in.size());
for (
auto &&v : in) emplace_back(v); in.clear(); }
15 IStringList(
const std::vector<string> &in) { reserve(in.size());
for (
auto &v : in) emplace_back(v); }
26 void operator+=(
const string &s) { push_back(s); }
27 void operator+=(
const QString &s) { push_back(s); }
28 void operator+=(
const char *str) { push_back(
string(str)); }
32 BASE_EXPORT void operator+=(
const std::vector<string> &s);
35 IStringList &operator<<(
const string &s) { push_back(s);
return *
this; }
40 void append(
const IString &s) { push_back(s); }
46 int length()
const {
return size(); }
47 int size()
const {
return to<int>(std::vector<IString>::size()); }
48 int count()
const {
return size(); }
49 IString value(
int index,
const IString &def={})
const {
if (index<0 or index>=to<int>(size()))
return def;
return at(index); }
50 IString join(
const IString &sep)
const { return ::join(*
this,sep); }
51 BASE_EXPORT bool contains(
const IString &sep,IString::Case c=IString::Case::Sensitive)
const;
POPWARNING QDataStream & operator<<(QDataStream &ds, const Orientation2 &o)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition basetoqt.cpp:107