commit | e784f5770f0dc2b452a66556ce1a321dab84b1f8 | [log] [tgz] |
---|---|---|
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Wed Feb 03 19:30:20 2016 +0000 |
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Wed Feb 03 19:30:20 2016 +0000 |
tree | 5b46f4200a774288ce46a0daff3a13c670466319 | |
parent | d118e3219bc20ed2a8d4383d3bd0423d1e1c3fb3 [diff] |
re.results.form: Format out-of-range subexpression references as null Rather than crashing in match_results::format() when a reference to a marked subexpression is out of range, format the subexpression as empty (i.e., replace it with an empty string). Note that match_results::operator[]() has a range-check and returns a null match in this case, so this just re-uses that logic. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@259682 91177308-0d34-0410-b5e6-96231b3b80d8