Commit Graph

642 Commits

Author SHA1 Message Date
Eugen Wissner 0fc0aa23f7 Add constants and syscall for if_nametoindex 2018-08-28 20:39:45 +02:00
Eugen Wissner c205c087a4 Switch to COFF on x86 Windows 2018-08-26 00:10:17 +02:00
Eugen Wissner 8ca88d1f01 net.ip.Address4: Reject malformed addresses 2018-08-22 06:51:20 +02:00
Eugen Wissner fa4cbb7e59 Update to 2.081.2. Remove old compilers 2018-08-17 05:44:58 +02:00
Eugen Wissner 4653e94fa1 Merge remote-tracking branch 'n8sh/relax-hasher-reqs' 2018-08-12 06:17:12 +02:00
Eugen Wissner ba5833318b conv: Fix taking out of range chars for hex values 2018-08-11 14:42:09 +02:00
Eugen Wissner 918d8f5450 Deprecated putting an input into an output range
Use copy instead.
2018-08-10 15:34:07 +02:00
Eugen Wissner 2862cc6f50 Update asm mangling to match GDC's D frontend 2018-08-08 10:27:23 +02:00
Eugen Wissner aa4ccddf47 Add net.ip. Fix #48 2018-08-07 22:27:09 +02:00
Nathan Sashihara 22cffe9d6e Set: allow hasher to take arg by ref 2018-08-06 14:41:47 -04:00
Eugen Wissner abd286064b Add algorithm.mutation.copy 2018-08-05 07:19:30 +02:00
Eugen Wissner b04928d2c8 net.inet: Import range.array as well 2018-08-03 16:52:34 +02:00
Nathan Sashihara ceb8e6a113 Use identity hash for integers and pointers
This is appropriate because HashArray in tanya.container.entry uses
prime numbers instead of powers of 2 for its number of buckets so there
is no pitfall if the hashes are all multiples of some power of 2.
2018-08-02 12:37:02 -04:00
Eugen Wissner 900a7172bf Make format() public
Make format() public. Deprecate to!String.
2018-08-01 16:58:23 +02:00
Eugen Wissner fe0576a2d6 Fix format printing only the first argument 2018-07-29 12:51:38 +02:00
Eugen Wissner a5b84deca7 format: Add errol3 lookup 2018-07-28 13:52:59 +02:00
Eugen Wissner 24056d53c5 network.socket.Linger.enabled: Add return type
network.socket.Linger.enabled: Add missing return type (void).
2018-07-25 05:40:49 +02:00
Eugen Wissner d62f29abd1 Rename meta.metafunction.Tuple into Pack
typecons.Tuples and meta.metafunction.Tuples are often used together,
from the same module. So it is reasonable give them different names.
2018-07-24 20:16:21 +02:00
Eugen Wissner f2eb99bab0 Format fixed-point numbers 2018-07-22 15:28:17 +02:00
Eugen Wissner 531cae51a3 Stringish to integral type conversion. Fix #44 2018-07-18 06:33:45 +02:00
Eugen Wissner 1b203507f6 conv: Fix overflow hanndling in readIntegral 2018-07-17 16:03:05 +02:00
Eugen Wissner 99e06e0d04 format: Support text in the format string
Fix  #25.
2018-07-14 19:09:21 +02:00
Eugen Wissner 158a47d54a Update dmd to 2.081.1. Remove 2.077.1 2018-07-13 05:39:58 +02:00
Eugen Wissner 5865e355cd Fix EV_SET 0 length on 32-bit BSD 2018-07-08 12:54:47 +02:00
Eugen Wissner a94b1b0af4 Add functional module. Fix #52 2018-07-07 12:17:59 +02:00
Eugen Wissner 3df4eb6259 Don't check UTF-8 correctness when inserting chars
- Fix bug when inserting char ranges that are not arrays
- Optimize insertion from the String own range
- Assume char and char ranges are correclty encoded (as it actually
should be) and don't throw an exception. This should make the most
common use cases nothrow (Fix #19). Dchars and Wchars are still encoded
because they should be converted to UTF-8 before inserting anyway.
2018-07-06 05:36:13 +02:00
Eugen Wissner a332d727af Implement errol2 for floating point formatting
Handles whole floating point numbers in the range between 2^54 and 2^131.
2018-07-02 10:47:05 +02:00
Eugen Wissner 8241943a58 Add uint128 tailored for errol2 computations 2018-07-02 10:26:45 +02:00
Eugen Wissner d54e06f43c Iterate hash table by key or by value 2018-06-29 20:43:05 +02:00
Eugen Wissner 5e901f505c Make HashTable work complex types as key
- Add toHash() function for String
- The key type shouldn't match exact for a lookup.
The key type and lookup key type should be comparable.
- Move elements when inserting if passed by value.
2018-06-28 12:14:45 +02:00
Eugen Wissner 533fa3b023 container.HashTable: Fix infinite rehashing when inserting
Fix #53.
2018-06-27 05:45:53 +02:00
Eugen Wissner adf2d8b689 Add Option to typecons
Fix #47.
2018-06-26 04:25:32 +02:00
Eugen Wissner 74ece7ddf4 Replace floating pointer formatter with errol1 2018-06-23 16:21:19 +02:00
Eugen Wissner 411e45ec5c Remove functions deprecated in 0.9.0 2018-06-22 07:11:56 +02:00
Eugen Wissner f51e9405c9 Update socket documentation 2018-06-20 07:59:37 +02:00
Eugen Wissner de15281ccb Tuple with more than two fields
Fix #41.
2018-06-19 05:44:15 +02:00
Eugen Wissner a86b6690f0 Implement auto-decoding free equal comparison
Fix #39.
2018-06-12 20:19:06 +02:00
Eugen Wissner 15f7994187 Add takeExactly
Fix #43.
2018-06-10 19:03:26 +02:00
Eugen Wissner 37b0afe290 take: Remove moveFront, moveBack, moveAt 2018-06-10 14:46:40 +02:00
Eugen Wissner cd9960db2a Add take range adapter 2018-06-10 14:46:40 +02:00
Eugen Wissner 7357503c5a Update 2.080 series to 2.080.1 2018-06-09 05:05:30 +02:00
Eugen Wissner 173ae115ee readIntegral: Support base between 2 and 36 2018-06-08 21:05:35 +02:00
Eugen Wissner 7561b964d3 Make intToString -> readString more generic
Make readString work with any char range and unsigned integral type.
2018-06-07 07:23:39 +02:00
Eugen Wissner c663703221 container.list: Remove deprecated list length property 2018-06-01 14:13:27 +02:00
Eugen Wissner 58af2fd89b encoding.ascii: Make static const data immutable 2018-05-31 18:43:35 +02:00
Eugen Wissner 52ec88bd04 async: Annotate system tests 2018-05-31 18:43:21 +02:00
Eugen Wissner bfe0748a63 Insert a range into the hash table and set 2018-05-30 18:50:52 +02:00
Eugen Wissner 61814d5383 Make an independent function for converting port string 2018-05-23 05:10:44 +02:00
Eugen Wissner c268696ee9 HashTable/Set: Add proper assignment 2018-05-20 21:58:15 +02:00
Eugen Wissner 9efbc9d5e0 Make Array postblit safe if possible 2018-05-18 07:43:18 +02:00