Tomoya Tanjo
aaeb96f4b2
Mark std.string.stripRight as @safe and pure
2013-08-24 12:07:31 +09:00
Andrej Mitrovic
c3d694e0fe
Add proper docs for return type of sformat.
2013-08-22 19:20:43 +02:00
monarch dodra
5c9aba062c
Merge pull request #1495 from tom-tan/safe-pure-unittest-for-stripLeft
...
Mark a unittest for std.string.stripLeft as @safe pure
2013-08-20 09:18:56 -07:00
monarch dodra
5410c2d268
Merge pull request #1486 from tom-tan/safe-string-indexOf
...
Make std.string.indexOf @safe
2013-08-19 07:53:39 -07:00
Tomoya Tanjo
b1b00243e1
Mark a unittest for std.string.stripLeft as @safe pure
2013-08-19 22:02:13 +09:00
Tomoya Tanjo
937fe1fdb3
Mark std.string.splitLines as @safe pure
2013-08-19 21:39:37 +09:00
Tomoya Tanjo
f99a647139
Add cast to Char*
2013-08-19 20:34:41 +09:00
Tomoya Tanjo
9f069d3e55
Replace trusted lambda block with trusted nested function
2013-08-18 23:52:27 +09:00
Tomoya Tanjo
dad8aa2b72
Mark the constructor of std.string.StringException as nothorw
2013-08-18 08:32:53 +09:00
Tomoya Tanjo
c73b428746
Mark std.string.indexOf as @safe
2013-08-18 00:15:32 +09:00
monarch dodra
b5f6812429
Merge pull request #1480 from tom-tan/safe-string-chomp
...
Make std.string.chomp @safe
2013-08-17 00:36:19 -07:00
monarch dodra
35e408b036
Merge pull request #1481 from tom-tan/safe-string-StringException
...
Make the constructor of std.string.StringException @safe and pure
2013-08-17 00:32:45 -07:00
Tomoya Tanjo
ec2819db08
Make std.string.indexOf @safe
2013-08-17 11:19:44 +09:00
Tomoya Tanjo
5ef5b8622c
Revert it to use printf
2013-08-16 17:58:53 +09:00
Tomoya Tanjo
ef9caf900d
Make the constructor of std.string.StringException @safe and pure
2013-08-16 17:36:57 +09:00
Tomoya Tanjo
61de6d669b
Make std.string.chomp pure
2013-08-16 17:09:18 +09:00
Tomoya Tanjo
32fe0bf1de
Replace core.stdc.stdio.printf by std.stdio.writeln
2013-08-16 16:29:25 +09:00
Tomoya Tanjo
a9c6397376
Make std.string.chomp @safe
2013-08-16 16:14:50 +09:00
monarch dodra
0e747649f2
Merge pull request #1330 from burner/lastIndexOf
...
lastIndexOf width startIdx
2013-08-12 11:36:01 -07:00
Robert burner Schadek
62ba73bfe7
fix
...
forgot a test
whitespace formatting
some more nitpick fixes
one more consistency test
spelling
starting -> ending
2013-08-12 16:24:45 +02:00
monarch dodra
10c4b24c9a
Merge pull request #1301 from burner/indexOfIdx
...
std.string.indexOf with start index
2013-08-12 06:42:31 -07:00
Robert BuRnEr Schadek
150631d4f5
std.string.indexOf with a start index
...
Basically indexOf with start index. This index is added to the found
index if the searched character was found.
std.string.indexOf(Char1,Char2)(with start index)
The same thing as with the single character indexOf.
fixed the auto-tester complains
save
another bug bites the dust
fix the startIdx problem
std.string.indexOf with a start index
Basically indexOf with start index. This index is added to the found
index if the searched character was found.
std.string.indexOf(Char1,Char2)(with start index)
The same thing as with the single character indexOf.
fixed the auto-tester complains
save
merge error
everything is nicer now
another fix
whitespace formatting
consistency
whitespace args
some more nitpicks fixes
spelling
2013-08-12 09:49:01 +02:00
Dmitry Olshansky
9a053d97c2
new std.uni module
2013-07-20 23:00:34 +04:00
Andrei Alexandrescu
73c8b59bb5
Merge pull request #1412 from Hackerpilot/master
...
Code cleanup
2013-07-19 15:37:56 -07:00
k-hara
edcd51104d
Make std.string module CTFEable
2013-07-17 10:09:03 +09:00
k-hara
74b29c478e
[trivial] unittest code clean up
2013-07-17 10:06:06 +09:00
k-hara
2c5f454519
[trivial] Use ddoc unittest
2013-07-17 10:06:03 +09:00
k-hara
628c59bffd
[trivial] fix code style
2013-07-17 10:06:01 +09:00
Martin Nowak
4bafa5735f
fix Issue 10078 - std.string.indexOf fails at compile time
2013-07-16 21:05:06 +02:00
Andrei Alexandrescu
f423905c5b
Merge pull request #1374 from burner/10472
...
bugfix for 10472 - lastIndexOf(string, string) does not find single character string at beginning of string
2013-07-15 23:29:25 -07:00
Robert burner Schadek
a66e5f8c29
bugfix for 10472
...
and some whitespace to follow code guidelines
unified lastIndexOf(string,dchar)
bugfix for 10472
and some whitespace to follow code guidelines
whitespace again
git is good, Im with stupid
forgot one to!dchar
2013-07-15 14:29:33 +02:00
unknown
af2f388569
Fix typo in xformat doc
2013-07-14 10:46:28 +02:00
Hackerpilot
ae1dcaa3e1
Removed empty declarations. Converted more C-style array declarations to D-style. Removed trailing whitespace
2013-07-13 19:34:37 +00:00
k-hara
ed03c4af01
Fix trivial nitpicks
2013-06-20 10:54:20 +09:00
k-hara
e2d991b005
Move checkCTFEable to std.exception.assertCTFEable, and use it
2013-06-02 02:32:24 +09:00
jmdavis
68f0b6d159
Deprecate xformat and xsformat.
...
They were intended to be temporary, and now format and sformat use their
exact implementations and have for 6 months (though for some reason, xformat
and xsformat weren't turned into aliases when that happened, which I fixed
in this commit as well).
2013-05-05 16:16:50 -07:00
Vladimir Panteleev
16286c045b
DDoc tweaks and fixes
2013-04-18 23:49:06 +00:00
Jonathan M Davis
e09940470d
Merge pull request #1176 from jmdavis/deprecated
...
Remove some undocumented, deprecated functions which are slated for removal.
2013-03-25 03:47:50 -07:00
Andrej Mitrovic
c89bc4b0e3
Fixes Issue 9753 - Remove unnecessary asserts.
2013-03-18 23:44:18 +01:00
jmdavis
8f7f6d69ac
Remove some undocumented, deprecated functions which are slated for removal.
...
These have been deprecated for a while, but there was some balking
(primarily from Andrei IIRC) at actually removing them when they were
slated for removal, so they were instead made undocumented and slated
for removal after yet another 6 months or so. So, now that that time has
passed, here's another attempt to actually remove them.
2013-03-06 22:19:34 -08:00
Jonathan M Davis
30d565f432
Fix issue# 9609.
...
std.string.icmp's markup was wrong.
2013-02-27 10:54:53 -08:00
jmdavis
2735d30f4e
Remove all uses of std.metastrings.Format.
2013-02-24 18:42:46 -08:00
jmdavis
9bd4044536
Added CTFE-ability tests to some stuff in std.conv and std.string.
...
These tests are for the functionality that std.metastrings provides, and
we need to ensure that the normal functions which are replacing
those in std.metastrings continue to work in CTFE.
2013-02-24 16:02:32 -08:00
Daniel Murphy
41a9f1fa05
Fix Issue 6408 - Phobos fixes
...
Do not use typeof(Type[0]) to get the element type of an array, use typeof(Type.init[0])
2013-01-18 19:10:16 +11:00
monarch dodra
cd9bc7e7e8
missing import
2012-12-21 12:07:23 +01:00
monarch dodra
78873a582d
representation unittest
2012-12-21 11:31:09 +01:00
monarch dodra
83200a11f3
FormatError => FormatException
...
Because it's deprecated.
2012-12-21 11:27:22 +01:00
Andrei Alexandrescu
d6100b404f
Merge pull request #939 from 9rnsr/replace_format
...
Replacement std.string.format and sformat implementations in November 2012
2012-12-08 19:41:35 -08:00
k-hara
28dedee456
Issue 7444 - Require [] for array copies too
2012-11-20 17:55:21 +09:00
k-hara
67d726f75c
[Fixup] Support running unittests without -d switch
2012-11-14 14:25:47 +09:00