renamed "isNamedCapture" to "is_named_capture"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:52:08 +02:00
parent 2dc9022aa6
commit fbcd3dd893
7 changed files with 13 additions and 6 deletions

View File

@@ -245,3 +245,8 @@ deprecated predicate rangeQuantifierUpperBound(RegExpRange id, int hi) { range_q
* Use `RegExpGroup#isCapture()` instead.
*/
deprecated predicate isCapture(RegExpGroup id, int number) { is_capture(id, number) }
/**
* Alias for the predicate `is_named_capture` defined in the .dbscheme.
* Use `RegExpGroup#isNamed()` instead.
*/
deprecated predicate isNamedCapture(RegExpGroup id, string name) { is_named_capture(id, name) }

View File

@@ -579,10 +579,10 @@ class RegExpGroup extends RegExpTerm, @regexp_group {
int getNumber() { is_capture(this, result) }
/** Holds if this is a named capture group. */
predicate isNamed() { isNamedCapture(this, _) }
predicate isNamed() { is_named_capture(this, _) }
/** Gets the name of this capture group, if any. */
string getName() { isNamedCapture(this, result) }
string getName() { is_named_capture(this, result) }
override predicate isNullable() { getAChild().isNullable() }

View File

@@ -881,7 +881,7 @@ is_greedy (int id: @regexp_quantifier ref);
range_quantifier_lower_bound (unique int id: @regexp_range ref, int lo: int ref);
range_quantifier_upper_bound (unique int id: @regexp_range ref, int hi: int ref);
is_capture (unique int id: @regexp_group ref, int number: int ref);
isNamedCapture (unique int id: @regexp_group ref, string name: string ref);
is_named_capture (unique int id: @regexp_group ref, string name: string ref);
isInverted (int id: @regexp_char_class ref);
regexpConstValue (unique int id: @regexp_constant ref, varchar(1) value: string ref);
charClassEscape (unique int id: @regexp_char_class_escape ref, varchar(1) value: string ref);

View File

@@ -20338,7 +20338,7 @@
</dependencies>
</relation>
<relation>
<name>isNamedCapture</name>
<name>is_named_capture</name>
<cardinality>1280</cardinality>
<columnsizes>
<e>