]> granicus.if.org Git - re2c/commit
Now range internals are only visible to union/difference functions.
authorUlya Trofimovich <skvadrik@gmail.com>
Mon, 15 Jun 2015 13:31:26 +0000 (14:31 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Mon, 15 Jun 2015 13:31:26 +0000 (14:31 +0100)
commita4c87b8fc640a61d2e9802cbe203dc15cf2ecb47
treed24ac0993731eff0489d923c379edcf39eb997fb
parentf56196d29f6c29b37e3e95a6777714c237e1c71c
Now range internals are only visible to union/difference functions.

Ranges must be constructed so that linked ranges don't overlap and
are monotonous. This is always true for one-link ranges created by
range constructor, and we construct larger ranges from them using
union and difference functions (that maintain the invariant).
re2c/src/ir/bytecode/calc_size.cc
re2c/src/ir/bytecode/compile.cc
re2c/src/ir/bytecode/split.cc
re2c/src/ir/regexp/encoding/utf16/utf16_regexp.cc
re2c/src/ir/regexp/encoding/utf8/utf8_regexp.cc
re2c/src/util/range.cc
re2c/src/util/range.h