~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201210021442

« back to all changes in this revision

Viewing changes to services/plugins/dndcp/stringxx/string.hh

  • Committer: Package Import Robot
  • Author(s): Nate Muench
  • Date: 2012-06-20 15:59:51 UTC
  • mfrom: (1.4.8)
  • Revision ID: package-import@ubuntu.com-20120620155951-6rupmpb0f70b52zr
Tags: 2012.05.21-724730-0ubuntu1
* Merging upstream version 2012.05.21-724730.
  - Fixes building against the current Quantal kernel. (LP: #1000344)
  - Fixes Quantal installation issues. (LP: #1019031)

* Sync with Debian
  - Updating to debhelper version 9.
  - Updating to standards version 3.9.3.
  - Updating copyright file machine-readable format version 1.0.
  - Building without multiarch paths for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
#ifdef _WIN32
104
104
   string(const ubstr_t &s);
105
105
   explicit string(const _bstr_t &s);
106
 
   string(const uvariant_t &v);
107
 
   explicit string(const _variant_t &v);
108
106
#endif
109
107
 
110
108
   string(const utf16string &s);
201
199
   // Some helper functions that are nice to have
202
200
   bool startsWith(const string &s, bool ignoreCase = false) const;
203
201
   bool endsWith(const string &s, bool ignoreCase = false) const;
204
 
   std::vector<string> split(const string &sep) const;
 
202
   std::vector<string> split(const string &sep, size_t maxStrings = 0) const;
205
203
 
206
204
   // Overloaded operators
207
205
   string operator+(const string &rhs) const;
220
218
   // Cache accessors
221
219
   const utf16_t *GetUtf16Cache() const;
222
220
 
223
 
#ifdef _WIN32
224
 
   // Private utility constructor.
225
 
   void init_bstr_t(const _bstr_t &s);
226
 
#endif
227
 
 
228
221
   // utf::string is internally backed by Glib::ustring.
229
222
   Glib::ustring mUstr;
230
223
 
288
281
   return strm;
289
282
}
290
283
 
 
284
inline std::wostream&
 
285
operator<<(std::wostream& strm, const string& s)
 
286
{
 
287
   strm << s.w_str();
 
288
   return strm;
 
289
}
 
290
 
291
291
// ConversionError class for exception
292
292
 
293
293
class ConversionError {};