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
fredkiefer
19c00c43c0
* Source/NSString.m: Add primitive implementation for
...
rangeOfComposedCharacterSequencesForRange:.
2018-07-07 16:51:18 +02:00
fredkiefer
5a72e1cfa8
* Source/GSString.m: Remove GSString copyWithZone:.
...
* Source/NSString.m: Raise exception when no is provided for the
string. This brings our implementation closer to the Cocoa one.
* Source/GSString.m: Add similar exceptions.
2018-07-06 23:53:32 +02:00
fredkiefer
3b63a0d1f4
* Source/NSString.m: Small cleanup for printf registration.
2018-06-28 23:04:45 +02:00
Richard Frith-Macdonald
72ad2656c8
don't create NSLock instances during initialisation
2018-04-12 18:21:19 +01:00
David Chisnall
847c1a54b7
Avoid memory allocation in NSString -hash.
...
Use the incremental hash function for long strings.
2018-04-09 16:49:44 +01:00
Richard Frith-Macdonald
7274cbaa55
Minor unicode range handling improvements
2018-04-09 11:55:46 +01:00
Richard Frith-Macdonald
f72708742a
Avoid compiler warnings
2018-02-11 09:46:07 +00:00
Richard Frith-MacDonald
32eff75b6a
fix stupid typo
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40042 72102866-910b-0410-8b05-ffd578937521
2016-07-28 10:25:18 +00:00
Richard Frith-MacDonald
de3e9739ab
A case insensitive compare with self is always NSOrderedSame
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40041 72102866-910b-0410-8b05-ffd578937521
2016-07-28 05:21:01 +00:00
Richard Frith-MacDonald
c7d295a43f
-stringByResolvingSymlinksInPath should return the expanded string rather than
...
the original string on failure of link resolution. The tilde should get
expanded even if the resulting directory does not actually exist.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39929 72102866-910b-0410-8b05-ffd578937521
2016-06-27 11:52:31 +00:00
Richard Frith-MacDonald
96d39e79bc
If we don't have a home directory, we can't expand a '~' in a path.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39926 72102866-910b-0410-8b05-ffd578937521
2016-06-26 12:04:23 +00:00
Richard Frith-MacDonald
c4b05fa213
Optimise fetching ascii or utf8 from literal string
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39915 72102866-910b-0410-8b05-ffd578937521
2016-06-23 18:27:22 +00:00
Richard Frith-MacDonald
78097d25b0
Improve error message
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39884 72102866-910b-0410-8b05-ffd578937521
2016-06-20 06:38:05 +00:00
Gregory John Casamento
a4200029bd
Add containsString: implementation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39731 72102866-910b-0410-8b05-ffd578937521
2016-05-06 22:04:07 +00:00
Richard Frith-MacDonald
506824d1fd
Use posix locale for numeric sort ... we really need a proper fix so that the
...
system locale works for all collations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39670 72102866-910b-0410-8b05-ffd578937521
2016-04-14 16:10:12 +00:00
Richard Frith-MacDonald
7ecccf47e9
partial revert
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39669 72102866-910b-0410-8b05-ffd578937521
2016-04-14 15:56:08 +00:00
Richard Frith-MacDonald
e3c429dfee
Fix use of locale for numeric sort/comparison
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39668 72102866-910b-0410-8b05-ffd578937521
2016-04-14 15:00:50 +00:00
Richard Frith-MacDonald
d40d219015
removal of garbage collection
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39608 72102866-910b-0410-8b05-ffd578937521
2016-03-25 11:15:28 +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
Richard Frith-MacDonald
d5f56756ac
fix bug #45286
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39501 72102866-910b-0410-8b05-ffd578937521
2016-03-09 14:30:33 +00:00
Richard Frith-MacDonald
2084f2f49b
remove some unused code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39494 72102866-910b-0410-8b05-ffd578937521
2016-03-09 13:24:44 +00:00
Richard Frith-MacDonald
62d2bcbabc
changes for use of _WIN32 define on windows
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39492 72102866-910b-0410-8b05-ffd578937521
2016-03-09 13:16:16 +00:00