Commit graph

52 commits

Author SHA1 Message Date
monarch dodra
f011a9535f Merge pull request #891 from Kozzi11/master
Fix Issue 8877 - std.encoding.transcode is extremely slow
2013-12-05 00:30:04 -08:00
monarchdodra
87c71e6e14 Further improve put 2013-11-22 21:41:54 +01:00
Kozzi11
46dc7b557e Fix Issue 8877 - std.encoding.transcode is extremely slow 2013-11-22 11:00:50 +01:00
monarch dodra
60187c9d83 Merge pull request #1536 from lionello/bug10893
Fix issue 10893: added missing or renamed DDoc parameters
2013-09-08 08:37:19 -07:00
Lionello Lunesu
b4074054ba Fix issue 10893: added missing or renamed DDoc parameters (found by fix to 10236) 2013-08-31 15:36:29 +08:00
Orvid King
f594980aad Added a set of unit tests to ensure all branches of encode(E, R) get exercised. 2013-08-28 15:58:17 -05:00
Orvid King
e3ecef9419 Changed an assert to a static assert, to cause an error at compile time rather than runtime, 2013-08-28 15:47:17 -05:00
Orvid King
628c5e8198 It appears that whoever changed the name of the range parameter to encode didn't rename the parameter everywhere in the function. 2013-08-23 08:51:51 -05:00
Hackerpilot
4ad35bae86 Revert "Removed implicit string concatenation"
This reverts commit a659c62400.
2013-07-05 00:58:47 +00:00
Hackerpilot
a659c62400 Removed implicit string concatenation 2013-07-04 16:14:08 -07:00
Hackerpilot
56bef0807b Removed empty declarations. 2013-07-03 14:05:27 -07:00
Hackerpilot
5cc095ee3f Removed empty declarations 2013-07-03 10:36:53 -07:00
alexrp
b202180295 Remove all uses of sizediff_t in favor of ptrdiff_t. 2012-10-15 04:24:09 +02:00
jmdavis
28781bfb9f Old deprecations which were not properly taken care of previously. 2012-07-07 02:03:49 -07:00
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
Daniel Murphy
1590a5cc38 Issue 6572 - Deprecate typedef
Remove use of deprecated typedef from phobos.  This mostly consists of changing typedef to alias, and disabling unittests that require typedef.  One change to std.registry is needed to work around a bug in typedef (6571).
2011-08-30 13:22:10 +10:00
XTZGZoReX
4f124108ab Remove executable bit on two files. 2011-07-31 22:27:54 +02:00
jmdavis
654f35a677 Replaced calls to std.string and std.ctype's tolower with their toLower counterparts. 2011-06-12 16:59:52 -07:00
k-hara
a6b4ae4937 More conversions. 2011-06-08 19:57:38 +09:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08: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
Andrei Alexandrescu
3f2b8c12ea 64-bit compatibility work 2010-08-22 20:55:22 +00:00
Masahiro Nakagawa
adf941f657 Replace static opCall with Constructor. static opCall for struct construction is old style. 2010-06-01 19:44:00 +00:00
Masahiro Nakagawa
cab2b77249 opApply's delegate needs to be 'scope' for avoiding heap allocation 2010-05-18 10:58:01 +00:00
Walter Bright
e790058bf4 invariant => immutable 2010-05-05 18:25:44 +00:00
Sean Kelly
9be950356b Converted "static this" to "shared static this" where appropriate. 2010-03-09 03:54:06 +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
Walter Bright
78d04c9566 static array initializers still have old behavior 2009-11-21 10:10:28 +00:00
Walter Bright
9d92f3b3af so phobos unittests work again 2009-11-21 07:53:47 +00:00
Andrei Alexandrescu
449025e4d7 Added function count() 2009-10-26 22:45:37 +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
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
f291706be8 minor 2009-07-04 06:56:23 +00:00
Walter Bright
2b49121d3f fix implicit casting 2009-06-04 23:40:27 +00:00
Walter Bright
cf644a325a add shared 2009-05-08 05:00:12 +00:00
Andrei Alexandrescu
f22c3a8e97 Fixed unlisted bugs in encoding(). 2009-04-29 21:32:03 +00:00
Andrei Alexandrescu
460afaba4e minor 2009-04-06 06:00:11 +00:00
Walter Bright
d5a4d17c40 commented out failing unit test 2009-03-05 09:17:17 +00:00
Don Clugston
d3b2166a1b Allow phobos to compile with -w. 2009-02-27 15:31:48 +00:00
Walter Bright
953f133539 2009-01-03 00:58:17 +00:00
Sean Kelly
edb5c5003e This commit includes all the changes necessary for Phobos to run against druntime. Here is a sucinct list of the changes made:
* Removed gcstats.  Garbage collector statistics will be avaialable in durintime's 'memory' module.
    * Removed object.d.  This module is replaced by the object.d provided by druntime.
    * Removed std.array.  To trap an array bounds error, import 'exception' from druntime and catch ArrayBoundsException.
    * Removed std.asserterror.  To trap an asertion failure, import 'exception' from druntime and catch AssertException.
    * Removed std.gc.  To interact with the garbage collector, import 'memory' from druntime.
    * Removed std.hiddenfunc.  No equivalent exception is currently exposed by druntime, but if one is exposed it will be called HiddenFuncException and be declared in 'exception'.
    * Removed std.moduleinit.  druntime declares ModuleInfo in object.d, so it is implicitly availble without importing.
    * Removed std.outofmemory.  To trap an out of memory error, import 'exception' from druntime and catch OutOfMemoryException.
    * Removed std.switcherr.  To trap a switch error, import 'exception' from druntime and catch SwitchException.
    * Removed std.synchro.  This functionality will exist within druintime.
    * Removed std.thread.  A Thread class is available within druntime's 'thread' module.  An interface comparison will be provided separately.
    * Removed std.typeinfo.  The classes defined in this package are for runtime use and should not be visible to the user.

The prior version of Phobos has been archived in tags/phobos-2.019 if needed.
2008-10-11 00:56:40 +00:00
Janice Caron
b8b8098efb Got rid of types Utf8, Utf16, Utf32, Ascii, Latin1, Windows1252.
Introduced new types AsciiChar, AsciiString, Latin1Char, Latin1String, Windows1252Char, Windows1252 String.
Added new function encodedLength().
Added new function encode().
Deprecated Buffer!
2008-05-07 17:09:00 +00:00
Janice Caron
ab4da381b0 Renamed std.encoding.Exception to EncodingException 2008-05-06 16:38:17 +00:00
Andrei Alexandrescu
1ae5300f52 * std.algorithm: Changed the map() function so that it deduces the return type
* std.contracts: Added file and line information to enforce. Added errnoEnforce that reads and formats a message according to errno. Added corresponding ErrnoException class.

* std.encoding: For now commented out std.encoding.to. 

* std.file: Fixed bug 2065

* std.format: Fixed bug in raw write for arrays

* std.getopt: Added new option stopOnFirstNonOption. Also automatically expand dubious option groups with embedded in them (useful for shebang scripts)

* std.math: improved integral powers

* std.md5: Improved signature of sum so it takes multiple arrays. Added getDigestString.

* std.path: changed signatures of test functions from bool to int. Implemented rel2abs for Windows. Improved join so that it accepts multiple paths. Got rid of some gotos with the help of scope statements.

* std.process: added getenv and setenv. Improved system() so it returns the exit code correctly on Linux.

* std.random: added the dice function - a handy (possibly biased) dice.

* std.file: added support for opening large files (not yet tested)

* std.utf: added the codeLength function. Got rid of some gotos.
2008-05-06 05:08:52 +00:00
Walter Bright
c7b8755f49 added WIKI address 2008-04-24 09:50:09 +00:00
Janice Caron
689198d3c0 Can now do encodings not known until runtime, thanks to EncodingScheme class 2008-03-23 16:17:44 +00:00
Andrei Alexandrescu
bacf9b6a2a moved docsrc where it belongs 2008-03-09 07:49:49 +00:00
Gregor Richards
a0a8527408 Automatic newline fixup. 2008-03-07 07:11:35 +00:00
Walter Bright
cc8fbb97f1 fixed problem compiling with unittest 2008-03-07 01:03:54 +00:00
Janice Caron
28f4b4a615 Added in contract to safeDecode(). 2008-02-28 19:49:57 +00:00