Commit graph

62 commits

Author SHA1 Message Date
Dmitry Olshansky
cf7c701c08 other tweaks for std.regex/ctRegex 2013-12-04 23:51:12 +04:00
Dmitry Olshansky
378224db3a tweak algorithm to actually fast-track zero-pages
Also significantly speed up replicateBits for single bit pattern case.
2013-12-04 23:50:33 +04:00
Dmitry Olshansky
f5b012eab7 refactor TrieBuilder 2013-12-04 23:49:53 +04:00
Dmitry Olshansky
42eb21616f Make MultiArray CTFE-able, workaround CTFE bug. 2013-12-04 23:48:05 +04:00
Dmitry Olshansky
87bff6186c split off rarely used unicode tables
This avoids parsing large files reducing parse time by 30 ms for me
(it took ~70ms to parse tables, now ~40ms).
And move hangul sets to Trie tables as well.
Also saves around 30Kb on "hello world" app.
2013-10-17 18:49:11 +04:00
Martin Nowak
5cecc7622d smaller executables
- Move all tables into functions or structs so that
  dmd's multilib will put them into separate archive
  objects. This allows the linker to only pick the
  tables that are actually used.
2013-10-16 09:03:53 +02:00
Martin Nowak
2ffda8c61c missing imports when using codepointTrie 2013-10-16 01:39:40 +02:00
Martin Nowak
4027518b74 use functions where applicable to reduce compile time/template bloat
- The semantic analysis and object generation only
  needs to be done once when building phobos.
  Using those overloads becomes a simple link dependency.

- add overloads for most common cases
2013-10-14 01:04:02 +02:00
Martin Nowak
26edfc624f deduplicate CodepointTries and leave the data in libphobos2.a
- Store the static immutable CodepointTries in separate functions.
2013-10-14 00:38:30 +02:00
Martin Nowak
f9e7a93d93 store other immutable tables in unicode_tables
- This is mainly for consistency with other tables.
2013-10-13 22:54:16 +02:00
Martin Nowak
45c873faf3 make case tables immutable
- Avoids redundant object copies and semantic
  analysis for every usage.

- Multilib archives or gc-sections will take care
  of the binary size issue.
2013-10-13 20:50:40 +02:00
Dmitry Olshansky
6ccde64322 reduce redundnant imports 2013-10-13 16:45:23 +04:00
Dmitry Olshansky
5ce8a6d538 tweak unicode_tables.d and related code to avoid CTFE in generated tables 2013-10-13 12:28:34 +04:00
monarch dodra
d9073b3a23 Merge pull request #1594 from blackwhale/fix-icmp
Fix regression in icmp
2013-09-26 07:27:17 -07:00
Dmitry Olshansky
9df179b65d fix issue 11057 [REG2.064dev] New std.uni has icmp() partly broken 2013-09-22 12:00:04 +04:00
Dmitry Olshansky
256b62b370 fix issue 11089 toUpper doesn't work with 1:m mappings
Also fixes a typo in generic toCase, adds test cases for
previously fixed issue 9629
2013-09-22 11:52:27 +04:00
monarch dodra
4721a44fb3 Merge pull request #1554 from 9rnsr/fix6178
Supplement fix fox issue 6178
2013-09-14 13:52:05 -07:00
Vladimir Panteleev
7ef599707e DDoc fixes 2013-09-09 06:38:29 +00:00
k-hara
e36292ebe5 Supplement fix fox issue 6178
AA value setting through alias this should not be allowed, because it could access invalid object state.
2013-09-08 19:10:55 +09:00
k-hara
aae9150736 Remove trailing spaces 2013-08-08 20:26:42 +09:00
k-hara
a8444987b0 Fix parenthesis 2013-08-08 20:26:37 +09:00
Dmitry Olshansky
9a053d97c2 new std.uni module 2013-07-20 23:00:34 +04:00
Hackerpilot
ae1dcaa3e1 Removed empty declarations. Converted more C-style array declarations to D-style. Removed trailing whitespace 2013-07-13 19:34:37 +00:00
jmdavis
8f7f6d69ac Remove some undocumented, deprecated functions which are slated for removal.
These have been deprecated for a while, but there was some balking
(primarily from Andrei IIRC) at actually removing them when they were
slated for removal, so they were instead made undocumented and slated
for removal after yet another 6 months or so. So, now that that time has
passed, here's another attempt to actually remove them.
2013-03-06 22:19:34 -08:00
k-hara
128aa9f8fc Remove remain redundant parenthesis. 2012-12-03 00:53:38 +09:00
monarch dodra
e6d4598bff New-style array declaration
Just 'cause this is D, and not C.
2012-11-20 22:26:16 +01:00
jmdavis
3d92608c47 Added more deprecation messages. 2012-10-15 21:40:36 -07:00
jmdavis
14c9a0ae44 Undocumented September deprecations.
The deprecated stuff scheduled for removal in September is now
undocumented and marked (in a normal comment) for removal in March 2013.
2012-09-30 04:15:56 -07:00
jmdavis
d283d5735c Move August removals to September.
Several deprecated items were listed for removal in August, but it's
looking likely that 2.060 will come out in August, and I'd prefer not to
have them removed for 2.060 given how many items are already in the
changelog, and they're already deprecated, so it'll only affect people
compiling with -d either way. So, I'm changing the ddoc comments to say
September instead of August. They'll be removed in 2.061.
2012-07-23 23:11:07 -07:00
H. S. Teoh
167d0c99c1 Capitalize Unicode throughout. 2012-02-24 16:21:06 -08:00
H. S. Teoh
945cb72b11 Fix broken docs caused by ambiguity with Ddoc syntax when we wrap lines
containing "category:".
2012-02-24 14:40:59 -08:00
H. S. Teoh
a64261aea5 Add missing doc comments to uni.d. 2012-02-24 14:17:11 -08:00
jmdavis
88faac2475 Moved removals of deprecated symbols from July to August.
The release didn't happen in January, so July isn't a 6 month
deprecation period anymore.
2012-02-11 02:48:49 -08:00
jmdavis
60a0a1c9e7 Deprecated stuff that was scheduled for deprecation in January 2012. 2012-01-02 22:52:36 -08:00
k-hara
665cc00fb6 Add comma 2011-09-04 13:29:20 +09:00
k-hara
2f139eef87 Improve std.uni module 2011-09-04 13:26:25 +09:00
jmdavis
09b7cf618b Adjusting deprecation dates for a July release. 2011-07-04 01:46:26 -07:00
jmdavis
75352b99b8 Improved module documentation for std.ascii and std.uni. 2011-06-22 21:00:09 -07:00
jmdavis
84f1329cbb Renamed isUniAlpha to isAlpha.
isUniAlpha is now scheduled for deprecation.
2011-06-22 20:46:34 -07:00
jmdavis
0ca76972fe Renamed toUniLower and toUniUpper to toLower and toUpper.
toUniLower and toUniUpper are now scheduled for deprecation.
2011-06-22 20:34:08 -07:00
jmdavis
face0202ec Renamed isUniLower and isUniUpper to isLower and isUpper.
isUniLower and isUniUpper are now scheduled for deprecation.
2011-06-22 20:33:53 -07:00
jmdavis
e3f7c0c288 Renamed isUniWhite to isWhite. 2011-06-22 19:44:36 -07:00
jmdavis
25b755a843 Reverted isAsciiWhite to isWhite. 2011-06-22 19:20:15 -07:00
jmdavis
34bce538ce Reverted isAsciiLower and isAsciiUpper to isLower and isUpper. 2011-06-22 19:13:45 -07:00
jmdavis
2d310e5e20 Changed the names of some of the std.ascii functions.
isWhite, isLower, isUpper, toLower, and toUpper now have Ascii in their
name, which matches what std.unit does with its versions of those
functions. Hopefully, it should also reduce bugs due to using the wrong
function between the ASCII and unicode versions by making the difference
more obvious.
2011-06-19 18:41:00 -07:00
jmdavis
dd3a0c20a2 Created std.ascii to replace std.ctype.
All of the new, properly camelcased functions in std.ctype have been
moved to std.ascii, and std.ctype has been scheduled for deprecation.
2011-06-14 04:06:54 -07:00
jmdavis
d68ea09259 Updates to std.uni.
I added std.uni.isWhite, fixed the functions so that they returned bool
instead of int, and made a few other tweaks (including reformatting
some of the code which was nigh-on-unreadable with the very odd
indentation choices that had been made with it).

Unfortunately, the change from int to bool was made with the old
functions rather than with new ones, since the names were already good
for those functions. But the code breakage is likely to be minimal,
since the return values were always 1 or 0 and meant to be used as
boolean values. I expect that the code breakage from that will be
far smaller (possibly completely non-existent) than it would have been
to create new functions with different names which returned bool. And
since the names are good as they are, it wouldn't have been nice to
rename them anyway.
2011-06-12 16:59:48 -07:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Don Clugston
84477a5d3e Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output. 2010-11-24 19:34:47 +00:00
Walter Bright
b8ce58ccd1 detab sources 2010-08-23 02:14:45 +00:00