rfm
d6c1d36985
simplify life of charset
2024-12-19 21:02:44 +00:00
rfm
088b76bed1
Fix leaks
2024-11-15 21:21:41 +00:00
rfm
8209fa428f
Lazy initialisation of nonBase charset info to avoid recursion during startup
2024-11-15 18:47:45 +00:00
rfm
43484b2c34
Fix deallocation of placeholder strings at exit.
2024-11-14 16:18:26 +00:00
rfm
dd3367de3b
atexit improvements
2024-11-14 12:52:43 +00:00
rfm
9df544fffc
Fix for issue 459
2024-11-08 10:10:20 +00:00
rfm
6667842dd5
Update FSF address as requested by Gregory
2024-11-07 13:37:59 +00:00
Hugo Melder
cf4c985e46
NSString: Fix -commonPrefixWithString:options: behaviour ( #455 )
...
* Update changelog
* NSString: fix -commonPrefixWithString:options: behaviour
* NSString: More test cases
2024-10-28 14:42:41 +01:00
Hugo Melder
5cd19978d5
NSString: Cache ICU collator in thread-local storage ( #450 )
...
* Add ICU collator caching
* Update ChangeLog
2024-09-23 14:32:36 +02:00
rfm
7cf59e475a
avoid compiler warning
2024-08-19 11:05:54 +01:00
rfm
b91ff38636
issue 424
2024-07-09 17:03:39 +01:00
rfm
a541a467bf
cosmetic fixes (indentation etc)
2024-06-11 13:41:08 +01:00
rfm
3bcb484691
Merge pull request #416 from gnustep/enumerateSubstringInRange
...
Fix broken enumerateSubstringsInRange:options:usingBlock: implementation
2024-06-11 13:29:48 +01:00
Hugo Melder
4d3926d250
Implement -[NSString enumerateLinesUsingBlock:] ( #407 )
...
* Implement -[NSString enumerateLinesUsingBlock:]
* Fix formatting
* Use GNUstep CALL_BLOCK macro
2024-06-04 22:19:45 +02:00
hmelder
0c69d096ca
NSString: Fix broken enumerateSubstringsInRange:options:usingBlock: implementation
2024-06-04 12:10:20 +02:00
Frederik Seiffert
94a6cb9919
Fix Unicode includes in NSString.m
...
Fixes compilation using ICU bundled with Windows.
2024-05-15 17:09:00 +02:00
rfm
35bb9f48ef
regular expression range search
2024-05-12 10:03:15 +01:00
rfm
1fdf6395bd
Merge pull request #370 from ethanc8/ethanc8-3
...
Implement +[NSRegularExpression escapedPatternForString:] and -[NSString enumerateSubstringsInRange:options:usingBlock]
2024-05-12 09:32:34 +01:00
ethanc8
a15fa66276
Stylistic changes in -[NSString enumerateSubstringsInRange:options:usingBlock:]
2024-02-17 19:11:05 -06:00
rfm
d6bb6deff6
fix small bug and add optimisation
2024-02-02 15:40:44 +00:00
ethanc8
b8239f604f
Implement -[NSString enumerateSubstringsInRange:options:usingBlock]
2023-12-31 22:41:45 -06: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
e48cfb9587
Minor mutability corrections
2022-09-15 14:52:15 +01:00
Richard Frith-Macdonald
c76ebf2962
Replaced IF_NO_GC() macro calls with the more descriptive IF_NO_ARC()
...
and deprecate it. Searched for and removed obsolete references to
garbage collection in comments and documentation.
2022-02-17 10:08:18 +00:00
Frederik Seiffert
4c1b2ef7d6
Fix Unicode checks for Windows using icu.h
2021-12-26 11:43:43 +01:00
Richard Frith-Macdonald
85711ee5f8
coding standard tweaks
2021-11-27 10:59:15 +00: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
Frederik Seiffert
abfe4e2a04
Use native threading and locking APIs on Windows
...
Removes dependency on pthread library and uses fast Slim Reader/Writer (SRW) locks for NSLock/NSRecursiveLock/NSCondition/NSConditionLock as well as all internal locks. Adds GS_MUTEX_*() macros in GSPThread.h, that are being used for all internal locking instead of pthread APIs.
Also adds support for thread priorities on Windows, fixes method signature of +[NSThread setThreadPriority:] to match Apple platforms, and adds error handling in same method.
2021-07-29 14:22:27 +02:00
Frederik Seiffert
813ae35d39
Export GSPathHandling() in GNUstep headers.
...
Fixes linker errors for some tests under Windows MSVC.
2021-07-14 10:09:45 +02:00
Richard Frith-Macdonald
bd5f2909e6
Simplify conversion of a string to data (use base class code) and fix to handle the insertion of BOM consistently (as on OSX) for encodings where the byte order matters but is not specified by the encoding.
2021-04-14 09:57:11 +01:00
Richard Frith-Macdonald
3dc437524e
Use new private method to scan double values.
2020-12-30 12:25:18 +00:00
Richard Frith-Macdonald
aa0beb0758
Minor tidyup for clearer indentation
2020-11-19 08:33:20 -05:00
Richard Frith-Macdonald
8e97401783
Replace temporarty hack with a rewrite of whitespace checking to use our own
...
characterset data (derived from unicode data) on which characters are counted
as whitespace for the purpose of capitalising strings.
counted as white space
2020-06-27 08:33:13 +01:00
Richard Frith-Macdonald
b7882e3194
Simple fix to check for whitespace characters using strchr since the old
...
mechanism using characterset bitmap representations was broken by the
change to reduce waste in bintmaps (the code assumed the bitmap was
bigger than it really is).
2020-06-24 11:35:29 +01:00
Richard Frith-Macdonald
e8a62e0e5e
Check for nil arugment to -isEqualToString:
2020-06-23 07:03:55 +01:00
Richard Frith-Macdonald
0aeaee68da
Fixup -stringByAddingPercentEncodingWithAllowedCharacters: to ignore membership
...
of the supplied set if the character is not in the ASCII range.
2020-04-27 20:25:24 +01:00
Richard Frith-Macdonald
9eb0fd4e1a
Fix typo spotted by 'alotrev'
2020-04-27 09:14:36 +01:00
Richard Frith-Macdonald
ebaf23e295
Fix boundary error removing percent escapes
2020-04-05 10:26:28 +01:00
fredkiefer
8794339073
* Source/NSString.m: Attempt to make calls to GSICUCollatorOpen()
...
more consistent and correct for ICU 65.
2020-03-07 23:36:30 +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
3f7d54a33f
improve reportingn of memory usage
2019-06-11 14:07:10 +01:00
Richard Frith-Macdonald
8ed7ccea9e
Cleanups to avoid code conflicts and buffer overrun fixes.
2019-04-16 08:07:16 +01:00
Gregory John Casamento
665bdcf952
Add test for emoji's back in.
2019-04-13 04:52:48 -04:00
Gregory John Casamento
298f87d24e
All tests passing. Implementation of string and nscharacterset methods completed
2019-04-12 08:46:41 -04:00
Gregory John Casamento
51e0e3f45e
Some additional changes to the test
2019-04-10 05:43:25 -04:00
Gregory John Casamento
574fc45c0b
Initial, untested implementation of stringByRemovingPercentEncoding.
2019-04-09 04:39:55 -04:00
Gregory John Casamento
fc13419877
Correct implementation of method.
2019-04-09 03:51:41 -04:00
Gregory John Casamento
9e960dfcd2
Correct method names
2019-04-09 03:28:35 -04:00
Gregory John Casamento
613d90c193
Initial/untested implementation of new string function.
2019-04-09 02:28:54 -04:00
Gregory John Casamento
41f4fa411a
Skeletal implementation of new characterset and screen methods.
2019-04-08 07:36:38 -04:00