Commit graph

185 commits

Author SHA1 Message Date
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
tsbockman
2b09b8b59c Fix Phobos issue #15586 - std.utf.toUTF8() halts on invalid dchar. 2016-01-29 15:35:14 -08:00
Shriramana Sharma
5978ca7831 migrate other Phobos modules to use std.exception.basicExceptionCtors 2016-01-17 10:39:37 +05:30
Jakob Øvrum
fc5d24566a Consolidate documentation for std.utf.stride[Back] 2015-12-22 18:24:25 +09:00
Dragos Carp
eb293b5063 Fix issue 15320 2015-11-13 03:45:29 +01:00
k-hara
59989ed68a fix imports 2015-11-01 23:01:04 +09:00
Dragos Carp
d698887729 Remove obsolete TypeTuple references
Replace following names:
std.typetuple      -> std.meta
TypeTuple          -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple     -> Fields

std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
Martin Nowak
0d710e0279 replace _decode with decodeFront 2015-08-18 13:22:19 +02:00
Martin Nowak
f3f58c12d9 use encode for byUTF 2015-08-18 13:22:19 +02:00
Martin Nowak
c7952393ce add UseReplacementDchar to encode
- also add missing encode(dchar[1], dchar)
  overload for generic code
2015-08-18 13:22:14 +02:00
Martin Nowak
679ca93fc7 add alias for Flag!"useReplacementDchar" 2015-08-18 13:19:20 +02:00
Martin Nowak
9b070c01d0 test corner case for wchar decoding 2015-08-18 13:19:20 +02:00
Martin Nowak
152e1fab3d pop complete dchar in _decode 2015-08-18 13:19:20 +02:00
Martin Nowak
acb378577d merge byChar, byWchar, and byDchar into a single byUTF implementation 2015-08-18 13:19:20 +02:00
Martin Nowak
5ca7ddad60 Merge remote-tracking branch 'upstream/stable' into merge_stable
Conflicts:
	posix.mak

Manually edited:
	std/datetime.d (rename toNormalizedPath -> asNormalizedPath)
2015-07-24 01:28:58 +02:00
Walter Bright
31c9630702 add std.traits.isAutodecodableString() to fix Issue 14765 2015-07-23 07:22:25 +02:00
Walter Bright
f9466a982f remove unnecessary uses of std.format 2015-06-30 19:45:15 -07:00
Lionello Lunesu
8fc047f277 Fixed DDoc warnings 2015-05-30 09:17:43 -06:00
Robert burner Schadek
ca3ec7120b utf: alias syntax update 2015-05-28 19:14:56 +02:00
Andrei Alexandrescu
41f128ad3b Doc fixup following last commit 2015-05-19 14:49:58 -07:00
Andrei Alexandrescu
2c2b2532e5 Merge pull request #3188 from WalterBright/repchar
std.utf: add replacementDchar option in place of throwing
2015-05-19 14:47:27 -07:00
Walter Bright
e30ce5fd26 std.utf: add replacementDchar option in place of throwing 2015-05-19 14:04:11 -07:00
Andrei Alexandrescu
ef1f8052c5 Merge pull request #3119 from WalterBright/byUTF
add std.utf.byUTF
2015-05-07 13:37:22 -07:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
82f54a38d3 TypeTuple -> MetaList inside Phobos 2015-05-05 22:22:11 +03:00
Dicebot
73f773838d import std.typetuple -> import std.meta 2015-05-05 22:22:10 +03:00
Tomoya Tanjo
da27a8e27e Make std.utf.toUTF falimy @safe 2015-05-01 02:48:48 +09:00
Walter Bright
c79960568b add std.utf.byUTF 2015-03-28 14:10:51 -07:00
Martin Nowak
dcf18a0d20 fix Issue 14105 - strideImpl fails for 0xFF
- bsr(0) returns an undefined result
2015-02-02 13:03:57 +01:00
Andrei Alexandrescu
c0aad5b580 Fix debug build 2015-02-01 12:51:33 -08:00
Walter Bright
dc302d26a4 DIP25: make phobos work with it 2015-01-30 12:02:48 -08:00
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
Ilya Yaroshenko
a64a6fafdb std.utf: clean imports 2014-11-14 17:55:21 +03:00
Martin Nowak
dc7eb9dbd9 Merge pull request #2682 from aG0aep6G/stride
std.utf.stride: reject sequence lengths greater than 4
2014-11-12 01:21:11 +01:00
anonymous
5025e47790 back to old "Notes:" 2014-11-11 19:37:03 +01:00
anonymous
b051c0e278 back to old "Throws:" 2014-11-11 16:14:09 +01:00
anonymous
7ed4999515 link to RFC 3629 2014-11-10 23:49:53 +01:00
anonymous
bdecb4cbce reject sequence lengths greater than 4 2014-11-10 22:57:50 +01:00
Dmitry Olshansky
77b4b8ac22 Merge pull request #2656 from quickfur/issue13689
[trivial] Issue 13689: byCodeUnit fails to be a random access range.
2014-11-10 23:22:59 +03:00
Ilya Yaroshenko
7db4e595ba std.utf: clean imports 2014-11-09 12:29:55 +03:00
H. S. Teoh
8898fe5571 Issue 13689: byCodeUnit fails to be a random access range.
Add static assert to ensure random accessability.
2014-11-05 06:53:10 -08:00
Dmitry Olshansky
335228cb07 Merge pull request #2566 from MartinNowak/workaround7625
workaround inline Issue 7625
2014-09-29 12:29:00 +04:00
Martin Nowak
fea9bad209 workaround inline Issue 7625
- add explicit else branches so that dmd can inline those functions
2014-09-29 04:25:48 +02:00
sinkuu
2395beab6f Fix issue 13535 byCodeUnit doesn't satisfy hasSlicing 2014-09-27 12:34:18 +09:00
sinkuu
8af7d9a4ed Make byCodeUnit bidirectional range 2014-09-21 12:05:29 +09:00
sinkuu
a131306bdf Fix indent 2014-09-21 10:25:16 +09:00
Marc Schütz
61921f6503 Remove pure nothrow @nogc from input range version of byXchar
The functions are templated and get their attributes deduced.
2014-09-04 10:04:46 +02:00
Denis Shelomovskij
d63035003a Fix some property enforcements. 2014-09-01 18:01:16 +04:00
monarchdodra
5facb72b21 Tweak enum table 2014-08-26 09:33:57 +02:00
Dmitry Olshansky
9afbbaf056 Fix issue 12923
UTF exception in stride even though passes validate.
The root cause is that decode has very lax checking of the first
code unit.
2014-07-27 17:28:51 +04:00