Class RegexCountValue
Counts the non-overlapping matches of the regular expression Pattern in
Subject. Produced by Regex.Count(input, pattern).
[MessagePackObject(false)]
public sealed class RegexCountValue : Value, IEquatable<Value>
- Inheritance
-
RegexCountValue
- Implements
- Inherited Members
Remarks
As with RegexCondition, the regex grammar is backend-specific.
Constructors
RegexCountValue(Value, Value, bool)
public RegexCountValue(Value input, Value pattern, bool ignoreCase = false)
Parameters
Fields
IgnoreCase
[Key(2)]
public readonly bool IgnoreCase
Field Value
Pattern
[Key(1)]
public readonly Value Pattern
Field Value
Subject
[Key(0)]
public readonly Value Subject
Field Value
Properties
IsLiteral
Whether the value is self-paranthesing.
[IgnoreMember]
public override bool IsLiteral { get; }
Property Value
IsNullable
Whether the value can be NULL at runtime.
[IgnoreMember]
public override bool IsNullable { get; }
Property Value
Joins
Joins required to reach this value.
[IgnoreMember]
public override IEnumerable<Join> Joins { get; }
Property Value
Methods
Equals(Value?)
Indicates whether the current object is equal to another object of the same type.
public override bool Equals(Value? obj)
Parameters
objValue
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Update(Value, Value, bool)
public RegexCountValue Update(Value input, Value pattern, bool ignoreCase)
Parameters
Returns
WithSource(Table, Table)
public override Value WithSource(Table oldSource, Table newSource)