Doc Comments / Phobos /
Std String
Difference (last change) (no other diffs, normal page display)
Changed: 1c1
=std.string= |
= std.string = |
Changed: 3c3,17
== Compiler "Bug" = |
[[toc]] == Comments == Add your comments here... === D 1.x/2.x Differences === Some changes have been made to the D 2.x version. The ![]() === Compiler "Bug" === |
Changed: 9c23
== Proposed Enhancements = |
=== Proposed Enhancements === |
Changed: 11c25
=== find(dchar[], dchar[]) = |
==== find(dchar[], dchar[]) ===== |
Changed: 19c33
=== Make a Zero terminated String = |
==== Make a Zero terminated String ===== |
Changed: 28c42
== Proposed Enhancements - Done !! = |
=== Proposed Enhancements - Done !! === |
Changed: 30c44
=== std.string.format() = |
==== std.string.format() ==== |
Deleted: 39d52
== Links = |
Deleted: 41d53
See the corresponding page in the D Specification: ![]() |
Added: 42a55,62
== Links = * Corresponding page in the D Specification: ** ![]() ** ![]() |
std.string
Comments
Add your comments here...
D 1.x/2.x Differences
Some changes have been made to the D 2.x version. The std2 project contains a port of D 2.x's std.string for D 1.x.
Compiler "Bug"
char c='Ä'; //(character > 128) does not display a compiler warning (although the char-const does not fit into a byte)
Proposed Enhancements
find(dchar[], dchar[])
this function is needed!!
(only find(char[], char[]) is implemented)
(maybe also the same for wchar[],wchar[])
Make a Zero terminated String
toString( char x ) still does not work, suggest
char x = 'X'; char [] y = toString(x)[0 .. 1]; // strips off null char, problem exists // in std.string , line 1448
Proposed Enhancements - Done !!
std.string.format()
Functionality similar to C's sprintf() function is provided by the function
char[] std.string.format(...)It accepts format strings and parameters in the same way the function std.stdio.writef() does, but instead of writing the string to stdout, it returns the char array containing the string.
Links