PrevUpHomeNext

Struct template replace_result

boost::text::replace_result

Synopsis

// In header: <boost/text/normalize_algorithm.hpp>

template<typename Iter> 
struct replace_result : public boost::text::subrange< Iter > {
  // types
  typedef Iter iterator;

  // construct/copy/destruct
  replace_result() = default;
  replace_result(iterator, iterator);

  // public member functions
  operator iterator() const;
};

Description

The result of inserting a sequence of code points S into another sequence of code points D, ensuring proper normalization. Since the insertion operation may need to change some code points just before and/or just after the insertion due to normalization, the code points bounded by this range may be longer than S. Values of this type represent the entire sequence of of code points in D that have changed.

Note that the iterator type refers to the underlying sequence, which may not itself be a sequence of code points. For example, the underlying sequence may be a sequence of char which is interpreted as UTF-8.

replace_result public construct/copy/destruct

  1. replace_result() = default;
  2. replace_result(iterator first, iterator last);

replace_result public member functions

  1. operator iterator() const;

PrevUpHomeNext