Commit graph

80 commits

Author SHA1 Message Date
rfm
d68e8be8ee Fix leaks 2024-11-16 15:45:38 +00:00
rfm
6667842dd5 Update FSF address as requested by Gregory 2024-11-07 13:37:59 +00:00
Gregory Casamento
ced4cd0531
Merge pull request #410 from gnustep/NSExpression_branch 2024-06-11 11:46:56 -04:00
hmelder
c6d288aae9 NSPredicate: Remove whitespace 2024-05-31 14:24:57 +02:00
hmelder
094bc55120 NSPredicate: Fix BETWEEN operation on other data types and constants 2024-05-31 14:24:57 +02:00
Gregory John Casamento
d3d53ab23f Clean up tests 2024-05-31 00:20:09 -04:00
Gregory John Casamento
5c1e4e8eda Update to fix remaining issues with new NSExpression classes 2024-05-28 19:10:11 -04:00
Gregory John Casamento
48ab2e2bc7 Add implementation of expressionValueWithObject:context: to GSAggregateExpression 2024-05-28 15:03:26 -04:00
Gregory John Casamento
a49ae59a79 Add description method and a few minor changes 2024-05-26 16:16:40 -04:00
Gregory John Casamento
0a440a5303 Add missing NSMinusSetExpression 2024-05-26 09:11:21 -04:00
Gregory John Casamento
dc9ff1ff6f Add declarations and skeletons for new subclasses 2024-05-26 08:39:44 -04:00
Gregory John Casamento
392a626444 Add missing enum values, add skeleton implementations for metods, add simple tests 2024-05-25 00:39:34 -04:00
Gregory John Casamento
f6eb49bdf7 Add skeleton for 10.5 methods 2024-05-24 16:55:16 -04:00
Gregory John Casamento
c5defb6f3c Get rid of whitespace 2024-05-24 14:37:24 -04:00
Gregory John Casamento
5eea30b530 Add 10.6 NSExpression methods 2024-05-24 14:28:04 -04:00
Riccardo Mottola
08858caf29 cleanup biolerplate comments, enable autogsdoc comments, cleanup some old RCS/CVS tags, fix emails 2023-12-23 02:44:50 +01:00
Richard Frith-Macdonald
531d3b8559 Small array keyword fixes for NSPredicate 2023-10-08 13:48:33 +01:00
Riccardo Mottola
0547b18d32 remove some useless ; in declarations 2023-09-21 00:55:10 +02:00
Hugo Melder
7fd20d1ae3
NSPredicate Value Fix
* Check if object is an NSExpression object

* Fix Indentation

* Update Changelog

* Add test case
2022-08-24 18:01:30 +02:00
Richard Frith-Macdonald
ae72ee4593 Fix for #243 2022-03-07 10:13:44 +00:00
Richard Frith-Macdonald
3bc05ad580 Patch by Larry Campvell for git #237 2022-02-12 13:06:23 +00:00
Richard Frith-Macdonald
f1b3144209 Rewrite last change to be a little more efficient 2022-01-31 12:18:24 +00:00
Richard Frith-Macdonald
f3344628e5 fix for arrya constant 2022-01-30 17:24:32 +00:00
Levin Li
5b151c5fa0 Do not call handler blocks if they are nil 2021-11-23 18:34:34 +08:00
Frederik Seiffert
b41953d274 More robust check for Windows ICU
Also ensure that we don't include both unicode/*.h and icu.h.
2021-08-08 17:27:40 +02:00
Frederik Seiffert
dc32970502 Add support for using ICU DLL from Windows 10
Requires Windows 10 version 1903 (May 2019 Update):
https://docs.microsoft.com/en-us/windows/win32/intl/international-components-for-unicode--icu-

Also adds missing configure check for unicode/utext.h.
2021-08-03 16:52:38 +02:00
Richard Frith-Macdonald
925023e8c0 Fix leak evaluating a cast 2021-01-18 11:56:44 +00:00
fredkiefer
4d7da7ee80 Allow simple predicates on NSDate. 2020-01-20 21:25:17 +01:00
fredkiefer
88f5cc2444 Add support for NSDate constants in NSPredicate. 2020-01-12 20:56:09 +01:00
Gregory John Casamento
753c907938 Fix address for FSF and License name in all headers in base 2019-12-09 18:36:00 -05:00
Richard Frith-Macdonald
323f9abace cast -scanString: return to void where we don't need to check it. 2018-02-08 06:10:47 +00:00
Richard Frith-Macdonald
033b921903 improve error checking 2018-02-06 18:05:28 +00:00
Richard Frith-Macdonald
ccd2fb1ac0 Tell compiler we don't care about rreturn value 2018-02-06 12:26:32 +00:00
fredkiefer
e69450400a * Source/GSFormat.m: Call va_end with the correct parameter.
* Source/NSObject+NSComparisonMethods.m: Add missing return.
* Source/GSString.m (-replaceCharactersInRange:withString:,
-initWithBytesNoCopy:...freeWhenDone:): Remove dead code.
* Source/NSDistantObject.m (-initWithCoder:): Remove dead code.
* Source/NSPredicate.m (_eval_avg:): Don't devide by zero.
Fix issues found by Coverity.
2018-02-01 22:31:15 +01:00
Richard Frith-MacDonald
1f786ad7a8 fixes for #47618
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40462 72102866-910b-0410-8b05-ffd578937521
2017-04-09 12:45:18 +00:00
Richard Frith-MacDonald
544a43092e attempt fiox for bug #47619
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39776 72102866-910b-0410-8b05-ffd578937521
2016-05-18 13:11:45 +00:00
Richard Frith-MacDonald
a0c97c1ddd deprecate confusing extension in favour of simpler ARC-complient method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39520 72102866-910b-0410-8b05-ffd578937521
2016-03-10 16:50:41 +00:00
Niels Grewe
fcbbe0431f Implement -evaluateWithObject:substitutionVariables: (OS X 10.5 method),
and mark one of the GSBlockPredicate tests as hopeful on OS X.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39506 72102866-910b-0410-8b05-ffd578937521
2016-03-09 15:38:32 +00:00
Niels Grewe
6e6ee05a80 Implement [NSPredicate predicateWithBlock:].
Fixes https://savannah.gnu.org/bugs/?46418


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39493 72102866-910b-0410-8b05-ffd578937521
2016-03-09 13:19:35 +00:00
Richard Frith-MacDonald
bd07f71fbf fix mior leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38559 72102866-910b-0410-8b05-ffd578937521
2015-05-26 13:24:26 +00:00
Richard Frith-MacDonald
60a0f7ce5b minor fixes for 64bit systems using collection with more than 2^32 items
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38295 72102866-910b-0410-8b05-ffd578937521
2015-01-16 15:25:50 +00:00
Richard Frith-MacDonald
95b7ba8812 fix for range issue pointed out by Mathias Bauer <mathias_bauer@gmx.net>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37685 72102866-910b-0410-8b05-ffd578937521
2014-02-13 15:45:06 +00:00
Richard Frith-MacDonald
ea1c58655b add check for NSNotEqualToPredicateOperatorType
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37290 72102866-910b-0410-8b05-ffd578937521
2013-10-27 08:47:03 +00:00
Richard Frith-MacDonald
bc91e4ee4b fix some cases where we were not returning YES or NO as BOOL result
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37282 72102866-910b-0410-8b05-ffd578937521
2013-10-26 07:15:53 +00:00
Richard Frith-MacDonald
6c93004d55 fix erroneous casts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37251 72102866-910b-0410-8b05-ffd578937521
2013-10-18 07:25:32 +00:00
Richard Frith-MacDonald
ed09c55959 leak detection improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37003 72102866-910b-0410-8b05-ffd578937521
2013-08-22 15:44:54 +00:00
Richard Frith-MacDonald
2a05739607 fix for predicate format output of binary operators
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36144 72102866-910b-0410-8b05-ffd578937521
2013-02-15 15:14:50 +00:00
Fred Kiefer
dde8376be9 * Source/NSPredicate.m: Fixup parsing of function expressions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36011 72102866-910b-0410-8b05-ffd578937521
2013-01-22 08:31:40 +00:00
Richard Frith-MacDonald
5537c0239c fix use of preprocessor constants.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31621 72102866-910b-0410-8b05-ffd578937521
2010-11-18 09:46:51 +00:00
Eric Wasylishen
a0f083736c NSPredicate MATCHES and LIKE implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31616 72102866-910b-0410-8b05-ffd578937521
2010-11-17 21:46:31 +00:00