Commit graph

474 commits

Author SHA1 Message Date
Robert burner Schadek
44d97ed1cb issue 13018: translate does not except immutable or const AAs
removed the comment

some fixes

less code
2014-07-21 12:15:47 +02:00
Jakob Ovrum
f96cde7be4 Change representation to use ModifyTypePreserveSTC 2014-07-20 21:49:31 +09:00
Jakob Ovrum
cd86dc76b0 Change assumeUTF to use ModifyTypePreservingSTC and thus support shared 2014-07-20 21:49:12 +09:00
Михаил Страшун
e119dad7f5 Merge pull request #2341 from burner/issue10162
Fix #10162: assumeUTF from idea
2014-07-19 14:45:05 +02:00
Robert burner Schadek
133687cf7b assumeUTF from idea of issue10162
format whitespace

doc unittest

assumeUTF with const immu

validate in debug mode

whitespace

wrong attributes
2014-07-18 19:23:13 +02:00
Robert burner Schadek
f2c5dbd502 some love for std.string
many functions of std.string had no attributes like pure, safe etc.
additionally, many const arguments where not marked as const.
tabs -> whitespace
removed tail whitespace
Doc Examples to unittest docs

more love for std.string

const to in

squeeze
2014-07-17 09:48:56 +02:00
Robert burner Schadek
2122fe67c5 (last)indexOfNeither(index)
faster

merged indexOfAnyImpl with indexOfNeitherImpl and fixed a bug
2014-07-07 15:03:02 +02:00
Dmitry Olshansky
c131da5834 Fix issue 12455 [reg]Bad lowercase mapping for 'LATIN CAPITAL LETTER I WITH DOT ABOVE'
Also as part of a fix restores a test case in string.d
to exactly match older behaviour.

Some extended greek is not upper but title case, yet changes on toUpper.
2014-07-05 02:05:12 +04:00
monarch dodra
9680b8a8e1 Upkeep in outdent
Removed "ctfe_strip", use documented unittest, use "stripLeft" over "strip" (preserve trailing spaces), tweak loop indexing, remove ctfe assert.
2014-06-10 19:27:14 +02:00
monarchdodra
001fad4558 Remove trailing whitespaces 2014-05-17 15:35:25 +02:00
monarch dodra
da082c7177 Merge pull request #1952 from burner/last_indexOfAny_index
(last)indexOfAny(index)
2014-05-16 08:06:19 +02:00
Robert burner Schadek
077dbee4e8 (last)indexOfAny(index)
whitespace

some code reductions

faster

some last fixes, I hope

typo

walkLength
2014-05-07 22:49:14 +02:00
Rostyslav Dzinko
3c8b1543ad Fixed std.string.isNumeric when compiling with dmd -property flag (see std.algorithm.among) (added direct function calls '()') 2014-04-24 11:50:51 +03:00
Andrej Mitrovic
8c2d814802 Fix Issue 9556 - Missing underscore in docs for std.string.isNumeric. 2014-04-23 16:54:04 +02:00
Andrei Alexandrescu
32c72bbcc5 Merge pull request #1607 from Dcousens/master
Adds fromStringz
2014-03-15 22:16:07 -07:00
Daniel Cousens
2ad2f515cc Fixes fromStringz docs, return value is array 2014-03-16 16:07:45 +11:00
Tomoya Tanjo
4f12ee2cb0 Mark std.string.toStringz as @trusted 2014-03-13 14:49:43 +09:00
Yazan S. Dabain
a81f6200cf [Trivial] Fix documentation typos 2014-02-28 21:08:19 +02:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
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 Cousens
6205349941 Adds fromStringz impl. and unittest 2013-09-29 02:16:24 +10: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