Commit graph

225 commits

Author SHA1 Message Date
Jack Stouffer
afd54b5f1c Improve docs for icmp 2016-04-28 15:01:16 -04:00
Jack Stouffer
7922bc8d6e Fix Issue 15964: The template constraints for std.uni.sicmp are too permissive 2016-04-28 11:25:38 -04:00
k-hara
59b8791d2d fix Issue 15963 - Hidden unresolved forward reference issue in std.uni
Add explicit return type to two auto functions `Grapheme.opSlice`, then
their calls will have no dependency to return type inference.
2016-04-28 10:21:10 +09:00
Dmitry Olshansky
c1027f1970 Merge pull request #4246 from wilzbach/sed_spaces_part_2
style fix: add space after 'for' operator
2016-04-27 16:17:18 +04:00
Sebastian Wilzbach
d1714c9afb minor style fixes 2016-04-27 04:18:22 +03:00
Sebastian Wilzbach
5a8988c149 style fix: add space after for operator 2016-04-27 02:04:02 +03:00
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
Dmitry Olshansky
11f8935aaf Merge pull request #4150 from JackStouffer/isNumber
std.uni.isPunctuation: significant performance increase for ASCII
2016-04-11 15:39:28 +04:00
Jack Stouffer
3fed73960f Added ASCII optimization for isPunctuation 2016-04-09 15:49:13 -04:00
Jack Stouffer
966a058530 Fix-up for PR #4137 2016-04-09 15:49:07 -04:00
Dmitry Olshansky
e7d23db2c0 Merge pull request #4151 from JackStouffer/issue13422
[Issue 13422] std.ascii has isAlphaNum but std.uni doesn't
2016-04-05 19:02:31 +04:00
Jack Stouffer
0c642797cd Fix Issue 13422: std.ascii has isAlphaNum but std.uni doesn't 2016-04-04 23:06:29 -04:00
Jack Stouffer
e47d5f3f3e std.uni.isNumber: significant performance increase for ASCII numbers 2016-04-01 16:11:01 -04: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
anonymous
73bd032bbd fix issue 15686 - std.uni overloads documentation
No actual code changes. Just moving one overload of toLower next to the
other one.
2016-02-16 23:25:32 +01: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
k-hara
e864e53adc fix property enforcement 2015-12-04 15:42:53 +09:00
David Nadlinger
b813578a5a Revert "New primitive - Tiny UTF Binary Search Table" 2015-11-14 20:21:37 +01:00
Brian Schott
2812f9a676 Merge pull request #3710 from DmitryOlshansky/uni-tab
New primitive - Tiny UTF Binary Search Table
2015-11-07 23:22:41 -08:00
Dmitry Olshansky
aba3fe84a3 New primitive - Tiny UTF Binary Search Table
This lays on the foundation of UTF word notion,
a 32-bit integer that contains UTF encoded codepoint.
Top non-zero byte is the UTF-8 starter, so it's BigEndian
when reading directly from strings.

Same applies to UTF-16 word.

Also this invents simpler API for matching that easily combines:
 - length of code point matched
 - result of match (true/false if belongs to this set)
 - bad encoding flag

in one packed 32-bit machine word - UtfLookup. This struct is
going to be reused for all of "directly on UTF" matchers in std.uni.
2015-11-07 13:40:47 +03:00
Martin Nowak
0e95f6723a Merge remote-tracking branch 'upstream/stable' into merge_stable 2015-10-27 15:55:59 +01:00
Martin Nowak
0a9f9ccc3e fixup for string-like overloads
- undocument overloads for aliased/static strings
- make std.traits helpers phobos internal
- rename isStringLike to isConvertibleToString for clearer documentation
- rename peelStringLike to convertToString
- fix a few staticMap!(selectString) uses in std.path
2015-10-26 19:50:08 +01:00
Martin Nowak
6e58799ca3 std.uni fixes for string-like types 2015-10-25 19:28:08 +01:00
tsbockman
8343948e17 Trivial fixes to enable Phobos to compile properly with DMD PR #5229. 2015-10-23 20:43:52 -07:00
Brian Schott
67c95e6de2 Merge pull request #3715 from dcarp/AliasSeq
Rename obsolete TypeTuple to AliasSeq
2015-10-16 20:59:56 -07:00
AndrejMitrovic
2d67fd111f Merge pull request #3724 from CyberShadow/pull-20151015-233512
fix Issue 15208 - Eradicate all uses of "Enforcement failed" in Phobos
2015-10-16 10:24:52 +02:00
Vladimir Panteleev
82590904f7 fix Issue 15208 - Eradicate all uses of "Enforcement failed" in Phobos 2015-10-15 23:44:44 +00: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
Robert burner Schadek
966f7bd353 std.uni unittest doc
whitespace

better imports

another try

manuel bisect

whitespace

second manuel bisect

whitespace again

third bisect

maybe byInterval

whitespace again

another try

a litte less

one last try

given up
2015-09-13 14:22:41 +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
Dmitry Olshansky
54563c161b Merge pull request #3231 from tom-tan/uni-MultiArray-raw_ptr-pure-nothrow-nogc
Mark std.uni.MuliArray.raw_ptr as pure, nothrow and @nogc
2015-07-09 12:45:58 +03:00
Vladimir Panteleev
ed3a05eef3 std.uni: Rename toLowerCase, toUpperCase, toCapitalized
New names: asLowerCase, asUpperCase, asCapitalized

Discussions:
http://forum.dlang.org/post/fafybgnltpkfwpugyqvm@forum.dlang.org
http://forum.dlang.org/post/qdtisgsafprcczbjfizz@forum.dlang.org
2015-06-29 19:34:29 +00:00
Vladimir Panteleev
44198e0dcb std.uni: Remove stray std.stdio import 2015-06-26 09:16:04 +00:00
anonymous
b28962635f fix package XREFs
Also add escaping underscores in some places, and rewrap to 80 columns
where touching anyway.
2015-06-15 22:30:41 +02:00
Dmitry Olshansky
e3899bba21 Merge pull request #3280 from tom-tan/rm-trusted-uni-decodeGrapheme-byGrapheme-byCodePoint
Remove std.uni.decodeGrapheme, byGrapheme, and byCodePoint from @trus…
2015-06-08 00:28:13 +03:00
Robert burner Schadek
a099cc1ac8 uni: alias syntax update and remove of useless semicolon 2015-05-28 19:13:37 +02:00
Tomoya Tanjo
72a4376f24 Remove decodeGrapheme, byGrapheme, and byCodePoint from @trusted block 2015-05-14 23:48:05 +09:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
7970fcc748 Don't use fqn for any/all
In most cases it resolves unambiguosly
2015-05-05 22:22:11 +03:00
Dicebot
1c9ae027ef Rename old std.typetuple symbols inside Phobos
staticIndexOf -> indexOf
allSatisfy -> all
anySatisfy -> any
staticMap -> Map
2015-05-05 22:22:11 +03: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
7a1c8f3589 Remove std.uni.graphemeStride and its unittest from @trusted block 2015-05-02 11:40:47 +09:00
JakobOvrum
c55ca6fb0f Merge pull request #3249 from tom-tan/uni-unittest-for-graphemeStride-safe
Mark a unittest for std.uni.graphemeStride as @safe
2015-05-01 07:17:03 +09:00
Tomoya Tanjo
06c41be040 Mark a unittest for std.uni.graphemeStride as @safe 2015-04-30 21:13:50 +09:00
Tomoya Tanjo
e70e2de4b4 Mark std.uni.isPowerOf2 as @nogc 2015-04-30 18:44:57 +09:00
Andrei Alexandrescu
b0815037ea Merge pull request #3232 from tom-tan/uni-MultiArray-length-getter-safe-pure-nothrow-nogc
Mark std.uni.MultiArray.length as @safe pure nothrow @nogc
2015-04-28 18:17:14 -07:00
Tomoya Tanjo
2c226d35a7 Mark std.uni.PackedPtrImpl.this as @safe and @nogc 2015-04-28 18:43:46 +09:00
Tomoya Tanjo
10496726d2 Mark std.uni.MultiArray.length as @safe pure nothrow @nogc 2015-04-26 19:50:50 +09:00