85d7a2b9ca
Move memory exception into memory.lifecycle
2019-03-16 10:35:28 +01:00
9e6f5c3105
Add algorithm.mutation.rotate
2018-11-12 07:54:52 +01:00
2a90a812db
Add algorithm.searching.count
2018-09-30 15:25:10 +02:00
b6d1766d58
Implement compare algorithm. Fix #50
2018-09-11 10:05:15 +02:00
abd286064b
Add algorithm.mutation.copy
2018-08-05 07:19:30 +02:00
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
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
a86b6690f0
Implement auto-decoding free equal comparison
...
Fix #39 .
2018-06-12 20:19:06 +02:00
c0f9e5be10
Replace std min/max. Fix #35
2018-04-26 10:23:06 +02:00
7829b1fe06
Remove static std.range import
2018-03-22 10:44:52 +01:00
5ae20512af
Fix inserting before/after a range into the string
2018-02-25 12:53:42 +01:00
048ddf21ff
Replace body with do
2018-01-31 12:05:06 +01:00
8db1851c5c
Update dmd to 2.078.0
2018-01-04 05:36:46 +01:00
12fb9ff9f6
Add algorithm.mutation.swap
2017-11-01 13:03:48 +01:00
7a2768340e
Add algorithm package with move and moveEmplace
2017-10-29 07:51:00 +01:00
7b21238db7
String: Fix byCodePoint.popFront for multibyte chars
2017-10-14 13:47:16 +02:00
e316631f6e
Add test package
2017-10-12 07:41:35 +02:00
5d6f8e5299
Implement pure onOutOfMemory
2017-10-10 06:59:34 +02:00
87bfd77373
container.string: Add missing postblit
2017-10-08 15:53:29 +02:00
e4cd57a615
math.nbtheory: Implement natural logarithm
2017-10-02 14:55:30 +02:00
74b085b88d
Sort imports
2017-10-01 19:03:42 +02:00
ee48c25328
Replace "Ditto." with "ditto"
...
ddox doesn't recognize "Ditto.".
2017-09-22 04:08:50 +02:00
2c064eb05b
Add hasElaborate traits
2017-08-25 14:50:15 +02:00
ce90b4865b
Make front and popFront for arrays public
...
This commit adds tanya.range.array module which contains functions to make
the arrays act as ranges. These functions don't do any auto-decoding for
strings.
2017-08-21 06:49:02 +02:00
64f2295d1a
Fix #276
...
Add link to the source file for each module.
2017-08-12 17:01:51 +02:00
922c8bf7a3
Fix assigning a ByCodeUnit to the String slice
...
std.algorithm.mutation copy is unable to copy a char range into a char array slice.
2017-07-19 07:58:48 +02:00
7bdc778390
Fix inserting 3 byte wchar into String
...
* Fix inserting 3 byte wchar into String
* Improve documentation
2017-07-09 15:16:06 +02:00
a4de1cc754
toStringz returns a pointer
2017-06-22 11:48:58 +02:00
278e851414
Rename String.toString to String.get()
...
Last changed it only by the Range and forgotten about the string itself.
2017-06-08 07:59:16 +02:00
6c0588164a
Rename String.toString back to get()
...
Since it is expected that the return type of toString() is
immutable(char)[] and not char[] or const(char)[].
2017-05-29 11:41:49 +02:00
a648e2120a
Fix parameter count for docs in container.string
2017-05-19 20:01:04 +02:00
32e19c8b58
Rename String.get into toString. Add String.toStringz
2017-05-14 11:56:57 +02:00
7a0241b484
Fix unittest text for strings
2017-05-12 22:42:43 +02:00
36dad80e18
Use char ranges to avoid compilation errors on elder compilers
2017-05-12 21:46:48 +02:00
29d883150e
Fix unittests on 2.072 and 2.071
2017-05-12 21:10:22 +02:00
38afeac071
Insert String.insertFront and String.insertBack
2017-05-12 20:55:42 +02:00
d4ab339feb
Add String.remove
2017-05-12 20:23:16 +02:00
85d9361bfb
Fix fill with char on older compilers
2017-05-05 07:03:16 +02:00
a6a6f496eb
Implement string slice assignments
2017-05-04 23:17:50 +02:00
16cf8478cf
Add ByCodePoint
2017-05-01 20:17:37 +02:00
8915a0c7a7
Implement opCmp and opEquals for the String
2017-05-01 18:43:12 +02:00
e5c7edb72c
Implement String opAssign
2017-05-01 12:58:37 +02:00
64e0d666ed
Merge branch 'master' of github.com:caraus-ecms/tanya into utf8string
2017-05-01 09:59:29 +02:00
d629525a4b
Make String to be a char Slice alias
2017-04-21 14:03:20 +02:00
47ef787353
Add missing constructors to the String
2017-04-10 08:10:08 +02:00
6436ad49df
Add ByteRange to the String
2017-04-08 17:44:08 +02:00
43319e4e3a
Initialization from a UTF-16 string
2017-02-27 11:27:24 +01:00
33dbf042c2
Add dchar constructor
2017-02-26 22:40:27 +01:00
885fca9b5e
Add String.reserve and shrink
2017-02-20 12:01:15 +01:00
f4b90d8b51
Add string skeleton
2017-02-10 19:22:46 +01:00