~ubuntu-branches/debian/experimental/libtorrent/experimental

« back to all changes in this revision

Viewing changes to rak/string_manip.h

  • Committer: Bazaar Package Importer
  • Author(s): Jose Luis Rivas
  • Date: 2007-03-31 10:31:05 UTC
  • mto: (4.1.4 gutsy) (6.2.1 squeeze) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20070331103105-jzpp1rml6ud0ff75
Tags: upstream-0.11.4
ImportĀ upstreamĀ versionĀ 0.11.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
265
265
}
266
266
 
267
267
template <typename Sequence>
268
 
Sequence
 
268
inline Sequence
269
269
transform_hex(const Sequence& src) {
270
270
  Sequence dest;
271
271
  transform_hex(src.begin(), src.end(), std::back_inserter(dest));
273
273
  return dest;
274
274
}
275
275
 
 
276
template <typename Iterator>
 
277
inline std::string
 
278
transform_hex(Iterator first, Iterator last) {
 
279
  std::string dest;
 
280
  transform_hex(first, last, std::back_inserter(dest));
 
281
 
 
282
  return dest;
 
283
}
 
284
 
276
285
template <typename Sequence>
277
286
Sequence
278
287
generate_random(size_t length) {