diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-12-22 21:00:48 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-12-22 21:15:38 (GMT) |
commit | 308ff634379e73a0c8668ffb0593d23f95b4dfa5 (patch) | |
tree | 21b0dd5fd9cbd90e141fd32449e298b65a40e04c /Swiften/Base/String.h | |
parent | 333136df0bf355ef3ae3566f12bbdaf2795bcdaf (diff) | |
download | swift-contrib-308ff634379e73a0c8668ffb0593d23f95b4dfa5.zip swift-contrib-308ff634379e73a0c8668ffb0593d23f95b4dfa5.tar.bz2 |
Add a PreviousStatusStore.
Diffstat (limited to 'Swiften/Base/String.h')
-rw-r--r-- | Swiften/Base/String.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Base/String.h b/Swiften/Base/String.h index 0a5530c..7a6a9cc 100644 --- a/Swiften/Base/String.h +++ b/Swiften/Base/String.h @@ -94,6 +94,10 @@ namespace Swift { return *this; } + bool contains(const String& o) { + return data_.find(o.data_) != std::string::npos; + } + char operator[](size_t i) const { return data_[i]; } |