major 'firzifikation'
This commit is contained in:
@@ -17,6 +17,9 @@
|
||||
|
||||
|
||||
|
||||
|
||||
//! firz
|
||||
|
||||
void inspect( const XQNodePtr& node, int indent )
|
||||
{
|
||||
qDebug() << std::string(indent * 2, ' ').c_str() << node.use_count() << ": " << node->to_string();
|
||||
@@ -31,6 +34,10 @@ void inspect( const XQNodePtr& node, int indent )
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//! firz
|
||||
|
||||
// Overload the operator<< for MyClass and std::ostream
|
||||
std::ostream& operator<<(std::ostream& os, const QString& obj)
|
||||
{
|
||||
@@ -40,8 +47,7 @@ std::ostream& operator<<(std::ostream& os, const QString& obj)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//! firz
|
||||
template<>
|
||||
bool znode::zpayload<QString>::xstr_split_by(const QString& entry, const QString& sep, QString& key, QString& value )
|
||||
{
|
||||
@@ -53,12 +59,18 @@ bool znode::zpayload<QString>::xstr_split_by(const QString& entry, const QString
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
|
||||
template<>
|
||||
QString znode::zpayload<QString>::xstr_sub_str( const QString& entry, int pos ) const
|
||||
{
|
||||
return entry.mid(pos);
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
|
||||
template<>
|
||||
bool znode::zpayload<QString>::xstr_is_empty(const QString& entry ) const
|
||||
{
|
||||
@@ -66,6 +78,8 @@ bool znode::zpayload<QString>::xstr_is_empty(const QString& entry ) const
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
|
||||
template<>
|
||||
const QString znode::zpayload<QString>::cType = "Type";
|
||||
|
||||
|
Reference in New Issue
Block a user