mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Small array keyword fixes for NSPredicate
This commit is contained in:
parent
e58b83c1f3
commit
531d3b8559
3 changed files with 32 additions and 3 deletions
|
@ -2634,17 +2634,17 @@ GSICUStringMatchesRegex(NSString *string, NSString *regex, NSStringCompareOption
|
|||
if ([self scanPredicateKeyword: @"FIRST"])
|
||||
{
|
||||
left = [NSExpression expressionForFunction: @"_first"
|
||||
arguments: [NSArray arrayWithObject: [self parseExpression]]];
|
||||
arguments: [NSArray arrayWithObject: left]];
|
||||
}
|
||||
else if ([self scanPredicateKeyword: @"LAST"])
|
||||
{
|
||||
left = [NSExpression expressionForFunction: @"_last"
|
||||
arguments: [NSArray arrayWithObject: [self parseExpression]]];
|
||||
arguments: [NSArray arrayWithObject: left]];
|
||||
}
|
||||
else if ([self scanPredicateKeyword: @"SIZE"])
|
||||
{
|
||||
left = [NSExpression expressionForFunction: @"count"
|
||||
arguments: [NSArray arrayWithObject: [self parseExpression]]];
|
||||
arguments: [NSArray arrayWithObject: left]];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue