Commit Graph

503 Commits

Author SHA1 Message Date
belka 9c70e9a058 Annotate list unittests 2018-02-25 15:42:32 +01:00
belka 5ae20512af Fix inserting before/after a range into the string 2018-02-25 12:53:42 +01:00
belka d30de300d6 Fix slicing a null pointer when deallocating 2018-02-25 11:09:57 +01:00
belka 464a0fecbb Make math.nbtheory.ln to a template function 2018-02-25 05:38:21 +01:00
belka af942116e4 Merge remote-tracking branch 'n8sh/getrandom-syscall'
Fix #18.
2018-02-22 05:25:59 +01:00
Nathan Sashihara 7ee4af9e79 Use correct getrandom linux syscall on non-x86_64 2018-02-21 04:49:48 -05:00
Nathan Sashihara 9876d9245c Implement PlatformEntropySource for macOS, Microsoft Windows, NetBSD, OpenBSD, Solaris 2018-02-21 03:18:52 -05:00
belka 2cda82eeea Fix handling of misaligned bytes in fill 2018-02-04 07:23:56 +01:00
belka e9f70853c6 Fix #12 2018-02-02 16:13:55 +01:00
belka 4aaa71a7d0 Format ranges 2018-02-02 14:34:36 +01:00
belka cbc68c2c43 Implement formatting for enums 2018-02-01 16:29:13 +01:00
belka 048ddf21ff Replace body with do 2018-01-31 12:05:06 +01:00
belka b69d737845 Add typeid formatting tests 2018-01-16 17:44:09 +01:00
belka 904451ccaa Remove moved and deprecated conv module 2018-01-14 19:13:12 +01:00
belka 8db1851c5c Update dmd to 2.078.0 2018-01-04 05:36:46 +01:00
belka 12de700706 Fix formatting null class references 2017-12-16 09:42:57 +01:00
belka 78a8afdf75 Format stringish ranges 2017-12-15 22:42:18 +01:00
belka 3c996d7c57 Add struct formatting 2017-12-14 19:47:13 +01:00
belka 2a68048fc1 Put real formatting code into a separate function 2017-12-09 10:02:54 +01:00
belka 7fe69ccc5c format: Aggregate types 2017-12-08 10:56:59 +01:00
belka 26c3532e28 Wrap formatting into printToString
printToString gets the output string as argument and can be called
recursive with the same output string to format ranges.
2017-12-03 19:53:06 +01:00
belka 9e16d84f9e Reintroduce isStruct, isClass and isInterface
since they can be useful for generic programming.
2017-11-29 19:53:28 +01:00
belka 7e7bf40f70 Move remaining to methods to tanya.conv 2017-11-29 19:09:58 +01:00
belka 642717883e Add boolean and null formatting 2017-11-29 18:44:51 +01:00
belka 85be35c5e0 Make floating formatting safe 2017-11-29 07:49:20 +01:00
belka 664298f038 Remove buffer argument from format 2017-11-28 22:11:19 +01:00
belka c199cdd47c Merge changes to reals formatting from master 2017-11-28 09:32:20 +01:00
belka 3a24e9e462 Make pointer to string conversion safer 2017-11-27 15:10:17 +01:00
belka f334e6a1a0 Check format specifier at compile time 2017-11-25 22:29:45 +01:00
belka 72d5760589 Change default pointer format 2017-11-25 19:01:20 +01:00
belka b28dde9d8e Remove triplet comma 2017-11-25 17:10:59 +01:00
belka b612e978bf format: Add format string tests 2017-11-25 15:24:45 +01:00
belka 02d1d8218b Port vsprintf 2017-11-25 15:11:43 +01:00
belka fbf6ec5250 format: Check if the scientific form is to be used 2017-11-25 14:59:27 +01:00
belka ac317aa9d6 math.min: Drop useless second isFloatingPoint check 2017-11-19 22:37:15 +01:00
belka 10022d158c Replace aho/ali usage with HP 2017-11-16 19:28:44 +01:00
belka a38242d0ac Make real2String more readable 2017-11-16 19:19:18 +01:00
belka a84c71f26d Revert usage of "do" instead of "body"
And fix GCC build.
2017-11-16 19:15:56 +01:00
belka 7797f0a1fe format.conv.number2String -> format.integral2String (intern) 2017-11-12 11:57:47 +01:00
belka 4bbc8b510a conv: Use assertThrown to check ConvException is thrown 2017-11-12 11:44:45 +01:00
belka 87ea1f98dc Add range primitives that remove several elements
- isOutputRange
- popFrontN
- popFrontExactly
- popBackN
- popBackExactly
2017-11-05 07:00:10 +01:00
belka 13407fcf8a math: Add min/max 2017-11-02 06:00:11 +01:00
belka e06cc5a071 Fix moveEmplace for static arrays 2017-11-01 14:27:39 +01:00
belka 12fb9ff9f6 Add algorithm.mutation.swap 2017-11-01 13:03:48 +01:00
belka 392cdcf192 Fix moveEmplace not being pure 2017-11-01 12:30:27 +01:00
belka 09b6655b9a memory.op: Check for valid .ptr and .length
typeid(T).initializer can return an array, whose .ptr is null but the
length not. Assert that .ptr and .length are consistent.
2017-11-01 00:01:43 +01:00
belka 7a2768340e Add algorithm package with move and moveEmplace 2017-10-29 07:51:00 +01:00
belka 414d7a11a8 Add meta.trait.Fields 2017-10-27 20:28:34 +02:00
belka 0d69c7fc79 Make math.mp.Integer pure 2017-10-24 11:50:32 +02:00
belka d1d55be7c2 Fix lowerHexDigits string 2017-10-18 06:40:22 +02:00