Sebastian Wilzbach
b95b67a687
Merge pull request #4986 from jmdavis/string_trivial
...
Make std.string.StringException use basicExceptionCtors.
2016-12-24 11:00:53 +01:00
Jonathan M Davis
bd6204f2c0
Make std.string.StringException use basicExceptionCtors.
...
This is a trivial change to take advantage of
std.exception.basicExceptionCtors and avoid having StringException
explicitly declare the normal exception constructors. It also has the
advantage of adding the second constructor that was missing from
StringException.
2016-12-22 04:57:58 -08:00
Sebastian Wilzbach
cc7f125ed1
Add missing imports to public unittests
2016-12-15 23:23:35 +01:00
e-y-e
befa0bfb6e
Updated Flag uses to Yes/No structs
2016-09-29 14:45:20 +01:00
Walter Bright
ad99bca2f5
remove unsafe use of .ptr in std.string
2016-07-24 12:58:55 -07:00
Sebastian Wilzbach
f14e7ccd85
enable travis check for selected imports
2016-07-10 03:08:15 +02:00
Atila Neves
307f95381b
Replace @trusted with @system in std.string unit tests
2016-07-09 11:07:51 +02:00
Jack Stouffer
049dcc32c8
Added const and immutable to unmodified variables in std.string
2016-07-08 12:14:34 -04:00
anonymous
d9a2d28514
fix issue 16238 - std.string.lastIndexOf fails compilation with -de
2016-07-05 15:49:35 +02:00
Basile Burg
268b77e25f
std.string, annotate unittests + coverage
2016-07-03 20:24:36 +02:00
Sebastian Wilzbach
ec47ac4224
Remove the WEB macro in favor of HTTP
...
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
Andrei Alexandrescu
9753c3159b
Merge pull request #4411 from wilzbach/kill_web_http
...
Fix broken WEB links
2016-06-15 17:47:43 -04:00
anonymous
d34ceb0a73
Ddoc: remove obsolete custom macros from std/string.d
2016-06-08 00:22:03 +02:00
anonymous
4109de2ff2
Ddoc: replace custom macros in std/string.d with REF_SHORT (sed)
...
SHORTXREF -> REF_SHORT:
arg='\s*([^(),]*)'
from='\$\(SHORTXREF\s'$arg','$arg'\)'
to='$(REF_SHORT \2, std,\1)'
sed -i -r "s/$from/$to/g" std/string.d
SHORTXREF_PACK -> REF_SHORT:
arg='\s*([^(),]*)'
from='\$\(SHORTXREF_PACK\s'$arg','$arg','$arg'\)'
to='$(REF_SHORT \3, std,\1,\2)'
sed -i -r "s/$from/$to/g" std/string.d
2016-06-08 00:22:03 +02:00
Sebastian Wilzbach
49531e3c73
fix broken web links
...
sed 's/(WEB http:\/\//(WEB /' -i **/*.d
2016-06-07 18:54:17 +02:00
Sebastian Wilzbach
823203fc4f
fix slipped through style violations
2016-06-05 01:30:55 +02:00
Joakim
a839be6dcc
Fix five modules where imports were made more local and selective.
2016-06-04 00:09:48 +05:30
Joakim
ea6e96ece6
std.string and std.traits: use locally-scoped selective imports and document symbols imported at module scope, checked with ddmd
2016-06-03 16:36:26 +05:30
Walter Bright
c61c89618c
Merge pull request #4322 from JackStouffer/isNumeric
...
Range-ified std.string.isNumeric
2016-06-01 12:31:14 -07:00
Sebastian Wilzbach
ca098c57d2
manual allman brace fixup
2016-05-31 13:07:53 +02:00
Sebastian Wilzbach
2dfbc51f17
Standardize whitespace after imports
...
Unified with:
sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
anonymous
641d6ff8d7
clean up remaining XREFs (manual)
...
Found by: grep -r '$(XREF'
std.experimental.allocator has a custom XREF2. Leaving that as is for now.
2016-05-27 21:40:46 +02:00
anonymous
764caefa36
XREF -> REF (sed)
...
Done by:
(find . -type f -name "*.d" -print0; \
find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r \
's/\$\(XREF\s+([^(),]*),\s*([^(),]*)\)/$(REF \2, std,\1)/g'
2016-05-27 21:32:46 +02:00
Sebastian Wilzbach
18b8abf60a
remove the deprecated wiki macros
2016-05-27 05:52:23 +02:00
Jack Stouffer
2c047f1dd7
Range-ified std.string.isNumeric
2016-05-25 10:32:58 -04:00
Vladimir Panteleev
38a6370788
Merge pull request #4303 from wilzbach/mref_phobos
...
use mref macro instead of link2
2016-05-24 03:12:08 +03:00
Sebastian Wilzbach
89a2dd5f11
use mref macro instead of link2
2016-05-16 03:30:08 +03:00
Jack Stouffer
26d70a1939
Add example to std.string.toStringz
2016-05-11 14:55:10 -04:00
Jack Stouffer
547a8e9e80
modernize isNumeric
2016-04-28 11:15:51 -04:00
Sebastian Wilzbach
d1714c9afb
minor style fixes
2016-04-27 04:18:22 +03:00
Sebastian Wilzbach
3d67cd228c
style fix: space between operators
2016-04-26 22:26:20 +03:00
Sebastian Wilzbach
d81030ab8a
convert docstring examples to unittests
2016-03-03 15:24:26 +02:00
Basile Burg
1d7920d383
fixed issue 15596
2016-02-29 00:16:21 +01:00
Steven Schveighoffer
b0acb7a394
Fix remaining import deprecation messages
2016-02-22 16:03:12 -05:00
Martin Nowak
ce2ac192c9
fix incorrect imports/fqn usages
...
- mostly of the form `import a.b : sym; a.b.sym();`, which is wrong b/c
selective imports do not add the module to the current scope
2016-02-20 14:41:44 +01:00
Jonathan M Davis
6c71d3e41e
Merge pull request #3998 from klickverbot/fix-toutf-compare-tests
...
Fix testAliasedString() unit test helper
2016-02-14 06:10:21 -08:00
David Nadlinger
6b0be3b89f
Fix testAliasedString() unit test helper
...
Many of the functions for which this wrapper is used return
string ranges. Comparing these for object identity does not
make a lot of sense.
This is actually an issue, because toUTF, which is used in quite
a few of the tested functions, contains a void-initialized buffer,
so the identity comparison is not guaranteed to succeed. The tests
just so happen to pass on current DMD regardless, but this is not
the case for an optimized LDC build.
2016-02-14 00:28:41 +01:00
David Nadlinger
3667b1e03d
lineSplitter: Remove gratuitous filesystem access from unit test
...
The test assumed that the unit test runner would be executed from
the Phobos root directory, which is neither specified anywhere,
nor the case for the LDC build system.
2016-02-13 23:12:56 +01:00
Andrei Alexandrescu
0d1a9288c2
Merge pull request #3894 from adamdruppe/import_empty
...
publically import empty too because users expect it
2016-01-12 09:45:37 -05:00
Brian Schott
9df3aed5a5
Merge pull request #3848 from JackStouffer/string
...
Updated std.string.capitalize to use std.uni.asCapitalized internally
2016-01-08 13:35:14 -08:00
Adam D. Ruppe
2a235758a7
publically import empty too because users expect it
2015-12-31 10:44:05 -05:00
Robert burner Schadek
98441e265d
std.string.index_unittest_examples
...
* added unittest doc examples for indexOf lastIndexOf
small update
indexOf rearranging
lastIndexOf
more shuffeling
jakobovrum
some update and more testing
2015-12-16 16:46:36 +01:00
k-hara
e864e53adc
fix property enforcement
2015-12-04 15:42:53 +09:00
Jack Stouffer
1c5b5ce162
Updated capitalize to use asCapitalized
2015-12-02 12:06:22 -05:00
Jack Stouffer
4aefb6addc
added entabber to shortcuts
2015-12-02 11:54:24 -05:00
Lionello Lunesu
be227ef595
Fixed some doc warnings
2015-11-17 09:21:52 +08:00
Andrei Alexandrescu
2cdb9c4eec
Merge pull request #3795 from JackStouffer/isNumeric
...
Add unittest examples to std.string.isNumeric
2015-11-11 23:14:05 -05:00
Robert burner Schadek
ba8d5e70ba
std.string.lineSplitter_unittest_example
...
* added unittest doc examples for indexOf lastIndexOf
fixup
fix
another version
2015-11-08 19:08:49 +01:00
Dmitry Olshansky
6b0aa3c349
Merge pull request #3781 from burner/std.string.leftJustify_unittest_example
...
std.string.leftJustify_unittest_example
2015-11-07 15:34:20 +03:00
Dmitry Olshansky
57facbbfed
Merge pull request #3782 from burner/std.string.rightJustify_unittest_example
...
std.string.rightJustify_unittest_example
2015-11-07 14:52:35 +03:00