summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-14 18:57:18 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-14 21:36:32 (GMT)
commitcb05f5a908e20006c954ce38755c2e422ecc2388 (patch)
treea793551a5fe279a57d4330119560e8542f745484 /Swiften/JID/JID.h
parentcad974b45c0fb9355e68d9728e42c9ae3dbcebc7 (diff)
downloadswift-cb05f5a908e20006c954ce38755c2e422ecc2388.zip
swift-cb05f5a908e20006c954ce38755c2e422ecc2388.tar.bz2
Removed Swift::String.
Diffstat (limited to 'Swiften/JID/JID.h')
-rw-r--r--Swiften/JID/JID.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/Swiften/JID/JID.h b/Swiften/JID/JID.h
index 76c2606..78136ff 100644
--- a/Swiften/JID/JID.h
+++ b/Swiften/JID/JID.h
@@ -6,7 +6,7 @@
#pragma once
-#include "Swiften/Base/String.h"
+#include <string>
namespace Swift {
class JID {
@@ -15,22 +15,22 @@ namespace Swift {
WithResource, WithoutResource
};
- explicit JID(const String& = String());
+ explicit JID(const std::string& = std::string());
explicit JID(const char*);
- JID(const String& node, const String& domain);
- JID(const String& node, const String& domain, const String& resource);
+ JID(const std::string& node, const std::string& domain);
+ JID(const std::string& node, const std::string& domain, const std::string& resource);
bool isValid() const {
- return !domain_.isEmpty(); /* FIXME */
+ return !domain_.empty(); /* FIXME */
}
- const String& getNode() const {
+ const std::string& getNode() const {
return node_;
}
- const String& getDomain() const {
+ const std::string& getDomain() const {
return domain_;
}
- const String& getResource() const {
+ const std::string& getResource() const {
return resource_;
}
bool isBare() const {
@@ -44,7 +44,7 @@ namespace Swift {
return result;
}
- String toString() const;
+ std::string toString() const;
bool equals(const JID& o, CompareType compareType) const {
return compare(o, compareType) == 0;
@@ -52,7 +52,7 @@ namespace Swift {
int compare(const JID& o, CompareType compareType) const;
- operator String() const {
+ operator std::string() const {
return toString();
}
@@ -74,13 +74,13 @@ namespace Swift {
}
private:
- void nameprepAndSetComponents(const String& node, const String& domain, const String& resource);
- void initializeFromString(const String&);
+ void nameprepAndSetComponents(const std::string& node, const std::string& domain, const std::string& resource);
+ void initializeFromString(const std::string&);
private:
- String node_;
- String domain_;
+ std::string node_;
+ std::string domain_;
bool hasResource_;
- String resource_;
+ std::string resource_;
};
}