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
Richard Frith-MacDonald
9fbe3bafef
fixes for tilde handling on windows
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39466 72102866-910b-0410-8b05-ffd578937521
2016-03-05 17:28:06 +00:00
Richard Frith-MacDonald
f8a6a45133
another stub
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39114 72102866-910b-0410-8b05-ffd578937521
2015-11-01 23:28:18 +00:00
Richard Frith-MacDonald
d37f8fb30c
String comparison fixup for case insensitive combined with literal string.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39109 72102866-910b-0410-8b05-ffd578937521
2015-10-31 20:17:07 +00:00
Richard Frith-MacDonald
3bbe9ff957
more tweaks ... move base64 encoding to shared private function
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38954 72102866-910b-0410-8b05-ffd578937521
2015-08-30 09:23:27 +00:00
Richard Frith-MacDonald
3b02814665
more updates
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38803 72102866-910b-0410-8b05-ffd578937521
2015-07-16 08:44:15 +00:00
Richard Frith-MacDonald
841ddf78e0
memory usage interrogation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38799 72102866-910b-0410-8b05-ffd578937521
2015-07-15 14:14:21 +00:00
Richard Frith-MacDonald
d7a6170f24
optimise search for a range for the case of a single character.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38573 72102866-910b-0410-8b05-ffd578937521
2015-05-27 05:18:47 +00:00
Richard Frith-MacDonald
70e0b51ae6
Fix error in range check
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38566 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:07:41 +00:00
Richard Frith-MacDonald
493a170d6a
Another small optimisation for string creation ...
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38540 72102866-910b-0410-8b05-ffd578937521
2015-05-25 11:47:13 +00:00
Richard Frith-MacDonald
1fbfe0cdf6
Small optimisation for creating NSString from UTF8 C string
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38539 72102866-910b-0410-8b05-ffd578937521
2015-05-25 11:11:24 +00:00
Richard Frith-MacDonald
19ba70e988
Another tiny string optimisation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38525 72102866-910b-0410-8b05-ffd578937521
2015-05-22 16:24:27 +00:00
Richard Frith-MacDonald
6297efeec9
optimisation and compatiblity tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38524 72102866-910b-0410-8b05-ffd578937521
2015-05-22 15:34:25 +00:00
Richard Frith-MacDonald
d8e9f81945
Some string optimisation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38518 72102866-910b-0410-8b05-ffd578937521
2015-05-22 14:28:08 +00:00
Richard Frith-MacDonald
8556e8e744
Some optimisation for searcvhes in strings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38517 72102866-910b-0410-8b05-ffd578937521
2015-05-22 08:34:36 +00:00
Richard Frith-MacDonald
5244db9446
fix for bug #41626
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37757 72102866-910b-0410-8b05-ffd578937521
2014-03-19 08:26:48 +00:00
Richard Frith-MacDonald
a0c0b25aa8
make string standardisation more consistent
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37675 72102866-910b-0410-8b05-ffd578937521
2014-02-03 13:30:46 +00:00
Riccardo Mottola
ab3f7c47d8
On GLIBC and FreeBSD use sysconf(_SC_SYMLOOP_MAX) instead of just MAXSYMLINKS.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37665 72102866-910b-0410-8b05-ffd578937521
2014-02-02 00:47:01 +00:00
Richard Frith-MacDonald
b955c25bb1
revert to get -isAbsolutePath regression tests to pass
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37600 72102866-910b-0410-8b05-ffd578937521
2014-01-13 21:28:49 +00:00
Marcus Müller
ff1df3a7eb
[NSString isAbsolutePath] fixed for __MINGW__
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37599 72102866-910b-0410-8b05-ffd578937521
2014-01-13 19:45:30 +00:00