Commit graph

216 commits

Author SHA1 Message Date
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
Walter Bright
dbf4772242 wrong return type in std.utf 2009-09-30 02:25:14 +00:00
Sean Kelly
747f3cf1e4 Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Andrei Alexandrescu
245086c374 Fixed bug 3132 as reopened on 2009-09-03 07:56:25 PDT 2009-09-03 16:11:30 +00:00
Andrei Alexandrescu
0c142994d9 See changelog - bunch of bug fixes and a couple additions for release 2.032 2009-08-31 19:46:33 +00:00
Andrei Alexandrescu
dcbbb068c9 added ifind, rfind, and irfind for (in char[], in char[]) for backwards compatibility 2009-07-04 19:00:40 +00:00
Andrei Alexandrescu
7ef3c4b50f added find(in char[], in char[]) for backwards compatibility 2009-07-04 18:59:04 +00:00
Andrei Alexandrescu
a4c244f2a8 deprecated std.string.find and std.string.find, replaced with std.string.indexOf; deprecated std.string.rfind and std.string.irfind, replaced with std.string.lastIndexOf; added flag CaseSensitive for indexOf and lastIndexOf; removed startsWith and endsWith because std.algorithm defines them; defined std.string.byDchar. 2009-07-04 07:07:26 +00:00
Walter Bright
cf644a325a add shared 2009-05-08 05:00:12 +00:00
Andrei Alexandrescu
25075d3d43 readded toString and atoi, albeit as deprecated 2009-04-19 17:18:27 +00:00
Andrei Alexandrescu
7b631c942e Readded atoi as deprecated inside std.string 2009-04-13 21:58:42 +00:00
Andrei Alexandrescu
d763ccf80b readded (as deprecated) functions std.string.toString, std.random.rand_seed, and std.random.random 2009-04-13 20:46:04 +00:00
Andrei Alexandrescu
dfef2a7214 Replaced next, retreat, head, and toe with (respectively) popFront, popBack, front, and back 2009-04-13 19:10:58 +00:00
Andrei Alexandrescu
cc1440f20d strip, stripl, stripr, startsWith, endsWith now work with any string type 2009-04-06 05:04:47 +00:00
Don Clugston
4937d6c6f1 Removed unnecessary assert(0) to allow compilation with -w. 2009-03-30 08:12:36 +00:00
Brad Roberts
22c437c8b3 Apply attachment from bug 2570 from Aziz to cleanup some bad html in ddoc comments 2009-03-29 06:32:11 +00:00
Walter Bright
095813650f comment out unittests 2009-03-05 06:45:47 +00:00
Walter Bright
d57e203dc9 fold in some OSX changes 2009-02-10 02:21:15 +00:00
Walter Bright
203f6debf5 fix scope 2008-11-06 09:57:35 +00:00
Walter Bright
3d1b760496 update to reflect this is now a reference type 2008-11-04 22:08:40 +00:00
Walter Bright
2310bb2577 rename onArrayBoundsError to onRangeError 2008-11-03 04:42:46 +00:00
Sean Kelly
5eeb591a95 Modified Phobos to reference the new core package in druntime. 2008-10-17 01:01:18 +00:00