release 2015-08-01
Remove the capture name copies from the coalesce and simplify logic.

The capture name isn't needed for compilation and checking that it was
copied doesn't mean that the capture number was copied. Unfortunately,
neither ToString() nor Dump() surfaces the capture number, so I've set
"tripwires" to catch kRegexpCapture cap() == 0 in debug binary tests.

Change-Id: I0737d6aaef6fbb3138df95d697ca110e51d8b029
Reviewed-on: https://code-review.googlesource.com/3275
Reviewed-by: Paul Wankadia <junyer@google.com>
4 files changed