Commit graph

287 commits

Author SHA1 Message Date
jmdavis
70b211a511 Renamed splitlines to splitLines. 2011-06-12 16:59:50 -07:00
jmdavis
42e4f932d1 Renamed capwords to capWords. 2011-06-12 16:59:50 -07:00
jmdavis
2fd2531add Renamed tolower/upper and tolower/upperInPlace functions. 2011-06-12 16:59:49 -07:00
jmdavis
feb840d198 Rearranged a few functions and improved some unit tests. 2011-06-12 16:59:49 -07:00
jmdavis
12bc142454 Changed toStringz toStringZ. 2011-06-12 16:59:49 -07:00
jmdavis
722db297c6 Improved std.string.icmp. 2011-06-12 16:59:49 -07:00
jmdavis
b67fd548b5 Adjusted deprecation messages for stuff which was previously scheduled for deprecation. 2011-06-12 16:59:49 -07:00
jmdavis
885d21a1e3 Removed functions which have been deprecated for quite awhile now. 2011-06-12 16:59:48 -07:00
jmdavis
27678613f1 Updated std.string to match recent changes to std.ctype and std.uni. 2011-06-12 16:59:48 -07:00
Andrei Alexandrescu
5a0134dd10 Fixed 672 broken links 2011-06-09 09:48:53 -05:00
jmdavis
d043103cde Fixed startsWith and endsWith with regards to the default predicate and strings.
I also fixed std.string.icmp and std.algorithm.cmp, since they had
incorrect code for checking the default predicate.
2011-06-02 21:42:24 -07:00
jmdavis
fcb672f55f Improved startsWith and endsWith.
1. startsWith and endsWith now have similar implementations.

2. They work with strings of different character sizes, whereas before
they treated strings as arrays regardless of whether they had the same
character size or not.

3. endsWith now actually works when mixing ranges and elements in the
endsWith portion like the documentation claims it does.
2011-05-30 04:13:27 -07:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Andrei Alexandrescu
272ceaa9a6 Improvements to replicate(); documented splitter() for strings; renamed replace() in place to replaceInPlace(); removed replace() that takes void* in the last position; moved replace() from string to array and generalized it; attached constraint to functional.not; more cleanup of std.string; improved std.algorithm.util and count to accept ranges; improved constraint in std.algorithm.remove 2011-01-21 08:39:39 +00:00
Andrei Alexandrescu
8b361fb217 Moved replace from string to array 2011-01-19 09:04:29 +00:00
Andrei Alexandrescu
331dd3a489 Moved split from string to array, made one more pass through array 2011-01-19 06:44:46 +00:00
Andrei Alexandrescu
cf33c1999a Moved join from std.string to std.array, plus a few cosmetic changes 2011-01-17 20:43:54 +00:00
Andrei Alexandrescu
a0ecf2a10e Moved cmp to std.algorithm 2011-01-17 16:46:35 +00:00
Andrei Alexandrescu
b2bf0bc48c Moved count from std.string to std.algorithm, which works toward fixing 4883 2011-01-17 03:31:12 +00:00
Brad Roberts
6ef7e6baae fix std.string to pass it's unittests on 64 bit and remove it from the disabled list. 2011-01-12 08:41:31 +00:00
Andrei Alexandrescu
8bcce1a59a Minor optimization in cmp and icmp 2011-01-11 09:37:17 +00:00
Andrei Alexandrescu
de9ce5c3fe Reverted cmp and icmp to return int, take 2 2011-01-11 08:13:59 +00:00
Andrei Alexandrescu
603aadbc0e Reverted cmp and icmp to return int 2011-01-11 07:10:42 +00:00
Andrei Alexandrescu
e33609bb1f Made replace more general 2011-01-11 05:11:37 +00:00
Andrei Alexandrescu
391850ebe2 Fixes and improvements to cmp 2011-01-11 03:21:31 +00:00
Andrei Alexandrescu
09ee12db23 Fixes for bugzilla 3313 and 5443 2011-01-11 00:50:45 +00:00
Brad Roberts
f368104f37 A bunch of 64 bit fixes, including disabling tests that don't pass 2010-12-23 20:39:22 +00:00
Don Clugston
84477a5d3e Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output. 2010-11-24 19:34:47 +00:00
David Simcha
8331c70969 More 64 fixes for semantic errors that only show up when templates are instantiated via unittests. Now I'm actually serious about Phobos passing semantic analysis, except for a few modules due to weird druntime issues. 2010-11-10 05:25:50 +00:00
Andrei Alexandrescu
460c844b4f Fix for bugzilla 2718 2010-09-26 21:19:14 +00:00
David Simcha
b597d23f83 Bug 4888: Heavy reliance on Bug 3534 in Phobos range usage. I used a different approach here than the first one I tried. I only did what was necessary to make Phobos work instead of trying to fix the deeper issue of making std.algorithm to work w/ const/immutable arrays. 2010-09-18 21:00:52 +00:00
Don Clugston
d9cd5b19d0 Fix a regression caused by svn 1923. Broke 'createlink.d' in the test suite. Compiler doesn't like auto returns. 2010-09-13 14:28:36 +00:00
David Simcha
d3614c89be Bug 4748: Shadowing declaration error in std.string.tolower 2010-09-04 15:23:54 +00:00
Andrei Alexandrescu
3f2b8c12ea 64-bit compatibility work 2010-08-22 20:55:22 +00:00
Lars T. Kyllingstad
b2563f8fb7 Bug 3312: std.string.count should use const(char)[], not immutable. 2010-08-13 10:21:44 +00:00
Andrei Alexandrescu
536cb93d9c Fixed issue in Appender 2010-07-06 05:34:59 +00:00
Andrei Alexandrescu
432e3fdfc8 Replaced std.contracts with std.exception throughout 2010-07-04 22:09:03 +00:00
Lars T. Kyllingstad
e89be73a46 Made std.string.icmp() a template function and fixed issue 3386, "to!bool(string) is not implemented" 2010-06-15 08:40:50 +00:00
Lars T. Kyllingstad
9b426a8add One more unittest for std.string.cmp() 2010-06-14 19:41:03 +00:00
Lars T. Kyllingstad
6ae2dd14d8 3355 - std.string.cmp works incorrectly for mixed-type and different-length strings 2010-06-14 14:07:27 +00:00
Andrei Alexandrescu
f86beec03b Improved indexOf(), tolower(), splitter(), chomp(). 2010-06-08 17:35:54 +00:00
Shin Fujishiro
b1d9516aac Fixed bugzilla 3786: bug in std.string.removechars.
Thanks to Igor Lesik for the fix!
2010-05-26 05:59:30 +00:00
SHOO
3948396b96 Mark deprecated to unittest 2010-05-23 02:07:56 +00:00
Walter Bright
53a3eec534 invariant => immutable 2010-05-05 22:19:49 +00:00
Andrei Alexandrescu
2a9a6e336c string, wstring are now bidirectional (not random) ranges
std.algorithm: defined move with one argument; levenshtein distance generalized to with all forward ranges; take now has swapped arguments
std.array: empty for arrays is now a @property; front and back for a string and wstring automatically decodes the first/last character; popFront, popBack for string and wstring obey the UTF stride
std.conv: changed the default array formatting from "[a, b, c]" to "a b c"
std.range: swapped order of arguments in take
std.stdio: added readln template
std.variant: now works with statically-sized arrays and const data
std.traits: added isNarrowString
2010-02-22 15:52:31 +00:00
Andrei Alexandrescu
4c57189000 Optimization in replace: if the searched string is not found, return the original string 2009-11-30 01:10:18 +00:00
Don Clugston
0ecae3a354 Change [length] to [$] throughout Phobos. 2009-11-03 07:55:49 +00:00
Don Clugston
5f3996a579 Workaround for bug 2479. 2009-11-02 07:55:27 +00:00
Andrei Alexandrescu
32a62b20d2 bugzilla 3385 2009-10-10 10:46:42 +00:00
Andrei Alexandrescu
d90a1a94e0 fixes to tolower/toupper, indexOf, split 2009-10-03 21:43:33 +00:00