jmdavis
b9b8337ccd
Renamed UtfException to UTFException to match other uses of UTF.
...
I created an alias for UtfException and scheduled it for deprecation
(with a fairly short time to deprecation given that it's a simple
renaming).
2011-09-26 22:18:18 -07:00
jmdavis
2ecabfce51
Cleaned up std.utf.
...
The main purpose of these changes was to make as much as possible in
std.utf pure (other than toUTFx, which I'll be replacing with toUTF in a
future pull request), but I also ended up doing a fair bit of
documentation cleanup. Almost everything in std.utf is pure now though,
which should help considerably in making it possible to make
string functions pure.
2011-09-26 22:18:18 -07:00
Iain Buclaw
1f30d04488
Move declaration of invalidSeq to correct place.
2011-09-13 23:41:52 +01:00
Iain Buclaw
9fc8498c17
Move code out of catch block, re-add goto in formatElement.
2011-09-13 22:58:39 +01:00
Iain Buclaw
863d7a6ff6
Remove goto into catch block.
2011-09-12 23:22:20 +01:00
k-hara
e34a7debfd
Issue 5371 - ambiguous stringnize of class with alias this
...
By fixing bug 2777, we can implement StringTypeOf more properly.
2011-09-11 11:33:42 +09:00
k-hara
740f3ec78a
Issue 6640 - More formatting consistency between string and range of char
2011-09-11 11:33:40 +09:00
k-hara
2b67942f52
Split formatElement with template constraint, and change it from private to undocumented
2011-09-06 14:36:15 +09:00
k-hara
a1794d2896
Improve union support
2011-09-06 14:35:59 +09:00
k-hara
7d92be6f93
Add ddoc
2011-09-05 13:55:54 +09:00
k-hara
8c72ce5723
Make FormatError an Exception instead of an Error
2011-09-05 12:54:38 +09:00
Andrei Alexandrescu
4361c633c4
Merge pull request #235 from 9rnsr/fix_sink
...
Change toString signature taking sink
2011-09-04 20:12:47 -07:00
k-hara
1673bc594e
fix sink to scope
2011-09-05 09:32:29 +09:00
k-hara
de0a63f5bf
Add trivial fixes.
2011-09-05 09:19:30 +09:00
k-hara
0a06ddec7a
Add associative array unformatting
2011-09-05 09:19:29 +09:00
k-hara
64a3641f40
Fix string unformatting
2011-09-05 09:19:29 +09:00
k-hara
61b430a379
Fix non-string array unformatting
2011-09-05 09:19:29 +09:00
k-hara
4c38fc9ea4
Fix character unformatting
2011-09-05 09:19:29 +09:00
k-hara
22d8f24120
Add boolean value unformatting
2011-09-05 09:19:28 +09:00
k-hara
1e3b2c09f4
Add auxiliary functions for range unformatting
2011-09-05 09:19:28 +09:00
k-hara
833cbabd8c
Fix template constraints
2011-09-05 09:18:49 +09:00
k-hara
925375d79b
Reorder functions
2011-09-05 09:18:49 +09:00
jmdavis
a447bf81cb
Fixed merged conflict.
...
Conflicts:
std/format.d
2011-09-04 12:38:50 -07:00
jmdavis
57249b4378
Adjustments to std.system.
2011-09-03 21:39:35 -07:00
k-hara
665cc00fb6
Add comma
2011-09-04 13:29:20 +09:00
k-hara
b33f032191
Add keySeparator into FormatSpec for associative array formatting.
2011-09-04 13:26:26 +09:00
k-hara
21e0c4240c
Add character escaping.
2011-09-04 13:26:26 +09:00
k-hara
bbb00a04d1
Escape non-graphical or invalid code points
2011-09-04 13:26:25 +09:00
k-hara
e93d6713b2
Issue 5237 - writefln doesn't respect Complex.toString
...
Add string quotation and escaping feature.
2011-09-04 13:26:25 +09:00
k-hara
7c4e99ccc7
Nested range output is now allowed.
2011-09-04 13:26:24 +09:00
k-hara
b6ec9947a2
Add union support (toString or error message in compile time).
2011-09-04 13:26:24 +09:00
k-hara
a9844d223a
The parameter 'ref FormatSpec!Char f' shouldn't change. If you want, copy it.
2011-09-04 13:26:23 +09:00
k-hara
180bb66014
Reduce inconsistent of Non-string range formatting.
...
Empty range is now formatted like "[]", not "".
2011-09-04 13:26:23 +09:00
k-hara
b08e7c9995
Merge formatValue documents for class and interface.
2011-09-04 13:26:23 +09:00
k-hara
95c16dc075
Issue 3890 - Bad writeln of a nested struct
2011-09-04 13:26:22 +09:00
k-hara
d45b340e98
Improve AssociativeArray formatting.
2011-09-04 13:26:22 +09:00
k-hara
36faf92bd8
Fix word wrapping.
2011-09-04 13:26:21 +09:00
Andrei Alexandrescu
711f7e2e84
Merge pull request #225 from yebblies/issue5825
...
Issue 5825 - write is calling a deprecated function
2011-09-03 06:44:19 -07:00
k-hara
bbd78b33d5
FormatError should take file and line
2011-09-02 20:56:39 +09:00
k-hara
bb9d9823fa
Reduce FormatSpec instantiation
2011-09-02 20:56:39 +09: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
Daniel Murphy
0dd7702994
Issue 5825 - write is calling a deprecated function
...
Un-deprecate formatValue taking a typedef. This is not valid while typedef is not a deprecated declaration inside dmd.
2011-08-30 01:50:46 +10:00
jmdavis
0ec7697819
Fixed enum values in std.traits to follow Phobos naming conventions.
2011-08-13 00:14:13 -07:00
Andrei Alexandrescu
d2541785e7
Merge pull request #151 from cristicbz/iss6194
...
Issue 6194 - [GSoC] Destructor gets called on object before it is copied when calling writeln()
2011-07-20 12:26:48 -07:00
Cristi Cobzarenco
59e0ad77fd
Fixed ISSUE 6194 in std.format.formattedWrite
2011-07-19 15:07:05 +02:00
Daniel Murphy
88e205e70c
The index cannot be ref in a foreach over an array. The check for this is currently broken but this code is wrong anyway.
2011-07-10 03:45:34 +10:00
jmdavis
25b755a843
Reverted isAsciiWhite to isWhite.
2011-06-22 19:20:15 -07:00
jmdavis
34bce538ce
Reverted isAsciiLower and isAsciiUpper to isLower and isUpper.
2011-06-22 19:13:45 -07:00
jmdavis
2d310e5e20
Changed the names of some of the std.ascii functions.
...
isWhite, isLower, isUpper, toLower, and toUpper now have Ascii in their
name, which matches what std.unit does with its versions of those
functions. Hopefully, it should also reduce bugs due to using the wrong
function between the ASCII and unicode versions by making the difference
more obvious.
2011-06-19 18:41:00 -07:00
jmdavis
dd3a0c20a2
Created std.ascii to replace std.ctype.
...
All of the new, properly camelcased functions in std.ctype have been
moved to std.ascii, and std.ctype has been scheduled for deprecation.
2011-06-14 04:06:54 -07:00