16 cpIter(
const nchar* begin,
const nchar* from);
18 explicit cpIter(
const std::string& from, nbool isReversed =
false);
19 cpIter(std::string&& from, nbool isReversed =
false) =
delete;
22 me operator+(ncnt step);
25 me& operator+=(ncnt step);
26 std::string operator*()
const;
27 explicit operator nbool()
const;
28 nbool operator==(
const me& rhs)
const;
46 ncnt stepBackward(ncnt step);
48 std::string get()
const;
49 ncnt remainLen()
const;
52 ncnt _step(
const std::function<
const nchar*()>&
closure, ncnt step);
53 const nchar* _nextCodepoint(
const nchar* from)
const;
54 const nchar* _prevCodepoint(
const nchar* e)
const;
55 ncnt _skipBytes(nchar ch)
const;
func closure with captured object scope
Definition: closure.hpp:19
Iterator for codepoint of string.
Definition: cpIter.hpp:12
ncnt stepForward(ncnt step)
cpIter(const std::string &from, nbool isReversed=false)