Commit graph

304 commits

Author SHA1 Message Date
Vladimir Panteleev
bf342f4cfd std.string: Fix redundant UTF decoding in chomp 2014-01-11 12:17:52 +00:00
Vladimir Panteleev
c53b1c77a0 DDoc fixes
This fixes some warnings as identified by the compiler,
as well as some broken cross-reference links caused by
DDoc auto-formatting of the current symbol.
2013-12-28 21:28:41 +00:00
Andrei Alexandrescu
20e26bc721 typo 2013-12-27 12:32:14 -08:00
Andrei Alexandrescu
64bf8def35 @blackwhale's review revealed that among rox 2013-12-27 10:14:10 -08:00
Andrei Alexandrescu
aca9995fa2 Fix issue 4673 2013-12-25 22:00:33 -08:00
jmdavis
efd6ea0cbf Move various deprecations along. 2013-12-11 23:44:12 -08:00
Francesco Cattoglio
3a6051588e Added a UTF symbol to munch() unittest 2013-12-09 22:25:22 +01:00
Francesco Cattoglio
65bf4bf602 added "dchar" for proper handling of UTF-8 2013-12-09 20:50:28 +01:00
monarch dodra
4a0effcd82 Merge pull request #1489 from tom-tan/safe-pure-string-lastIndexOf
Mark std.string.lastIndoxOf as @safe pure
2013-12-03 04:20:12 -08:00
Daniel Murphy
13f343334c Remove cases where an array is used in a boolean context 2013-11-27 18:23:07 +11:00
monarchdodra
34f4bdc7b8 improve strip documentation 2013-11-22 18:04:41 +01:00
monarchdodra
ed1cfe527b Introduce package level canSearchInCodeUnits
And use it to solve bugs/simplify code.
2013-11-13 17:13:36 +01:00
Tomoya Tanjo
ffef03cc44 Mark std.string.lastIndoxOf as @safe pure 2013-10-18 02:41:43 +09:00
David Nadlinger
061959b550 Merge pull request #1640 from blackwhale/fix-dep
Remove useless dependency on std.regex in std.string
2013-10-15 13:05:03 -07:00
Dmitry Olshansky
65e74d045c remove useless dependency on std.regex 2013-10-15 22:53:05 +04:00
monarch dodra
38b6c93c33 Merge pull request #1627 from AndrejMitrovic/Fix11222
Issue 11222 - isNumeric should return false on -/+ as a single character
2013-10-12 06:37:16 -07:00
Andrej Mitrovic
ac04f8bfd0 Fixes Issue 11222 - isNumeric should return false on -/+ as a single character. 2013-10-11 15:56:01 +02:00
Ferdinand Majerech
12fa1857f1 DDoc: Added a link to format string grammar for std.string.format. 2013-10-11 14:27:26 +02:00
Daniel Murphy
e723325aec Merge pull request #1550 from tom-tan/safe-pure-nothrow-string-soundex
Mark std.string.soundex as @safe, pure and nothrow
2013-09-05 06:45:49 -07:00
Daniel Murphy
74488d0033 Merge pull request #1549 from tom-tan/safe-pure-abbrev-column-wrap-outdent
Mark abbrev, column, wrap and outdent in std.string as @safe and pure
2013-09-05 06:45:23 -07:00
Daniel Murphy
03e3b405a6 Merge pull request #1548 from tom-tan/safe-pure-string-isNumeric
Mark std.string.isNumeric as @safe and pure
2013-09-05 06:43:27 -07:00
Daniel Murphy
2089dd812c Merge pull request #1547 from tom-tan/safe-pure-unittest-string-munch
Mark a unittest of std.string.munch as @safe and pure
2013-09-05 06:41:56 -07:00
Tomoya Tanjo
130b0f6397 Mark std.string.soundex as @safe, pure and nothrow 2013-09-05 21:11:09 +09:00
Tomoya Tanjo
36266bcfec Mark abbrev, column, wrap and outdent in std.string as @safe and pure 2013-09-05 20:58:09 +09:00
Tomoya Tanjo
1005148f37 Mark std.string.isNumeric as @safe and pure 2013-09-05 20:40:46 +09:00
Tomoya Tanjo
52e2575b36 Mark a unittest of std.string.munch as @safe and pure 2013-09-05 20:32:00 +09:00
Tomoya Tanjo
c57e61333f Make std.string.succ @safe and pure 2013-09-05 20:18:22 +09:00
Tomoya Tanjo
fc6206b1a8 More @safe and pure for std.string.translate 2013-09-02 21:05:55 +09:00
Tomoya Tanjo
ba0fd6b4e7 Mark std.string.translate, makeTrans and unittests as @safe and pure 2013-09-02 20:31:10 +09:00
Andrej Mitrovic
2d026ee91e Remove explicit qualifiers for translate overloads which take a buffer. Use std.range.put instead of member function put when writing to the buffer. 2013-08-31 13:37:55 +02:00
monarch dodra
d6b8a21157 Merge pull request #1501 from AndrejMitrovic/Fix10868
Issue 10868 - std.string.translate should have an overload that takes an output buffer.
2013-08-29 00:30:22 -07:00
Andrej Mitrovic
5ec5c213b0 Fixes Issue 10868 - std.string.translate should have an overload that takes an output buffer. 2013-08-28 15:20:05 +02:00
monarch dodra
69ddf32feb Merge pull request #1520 from tom-tan/safe-pure-string-removechars
Make std.string.removechars @safe and pure
2013-08-26 00:06:44 -07:00
Tomoya Tanjo
927c5914a1 Make std.string.removechars @safe and pure by using implicit conversion 2013-08-25 23:32:04 +09:00
Tomoya Tanjo
3851d825ec Make std.string.removechars @safe and pure 2013-08-25 22:52:13 +09:00
monarch dodra
09c8ebeeae Merge pull request #1519 from tom-tan/safe-pure-string-countchars
Mark std.string.countchars as @safe and pure
2013-08-25 06:09:18 -07:00
Tomoya Tanjo
16de84e260 Mark std.string.countchars as @safe and pure 2013-08-25 20:48:18 +09:00
Tomoya Tanjo
7755589d09 Mark std.string.inPattern as @safe and pure 2013-08-25 20:27:33 +09:00
monarch dodra
1d50b6298e Merge pull request #1513 from tom-tan/pure-string-justify
Mark leftJustify, rightJustify and center as pure
2013-08-25 00:21:58 -07:00
Tomoya Tanjo
11c559e822 Mark leftJustify, rightJustify and center as pure 2013-08-24 23:03:28 +09:00
Tomoya Tanjo
4498dbea84 Mark std.string.chop and its unittest as @safe and pure 2013-08-24 22:17:18 +09:00
monarch dodra
a2c23948b6 Merge pull request #1510 from tom-tan/safe-pure-string-chompPrefix
Mark std.string.chompPrefix and its unittests as @safe and pure
2013-08-24 01:42:48 -07:00
monarch dodra
6d301e6678 Merge pull request #1508 from tom-tan/safe-pure-string-stripRight
Mark std.string.stripRight as @safe and pure
2013-08-24 01:42:02 -07:00
Tomoya Tanjo
707f53ef06 Mark std.string.chompPrefix and its unittests as @safe and pure 2013-08-24 14:28:15 +09:00
Tomoya Tanjo
cefdd9859d Mark std.string.strip and its unittests as @safe and pure 2013-08-24 12:23:44 +09:00
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