64f2295d1a
Fix #276
...
Add link to the source file for each module.
2017-08-12 17:01:51 +02:00
a37c9b162e
container.Set: Reduce duplicated code, add tests
2017-07-22 07:40:58 +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
e6b91f70cb
Add style checking
...
A lot of tests are disabled. They should be enabled successively.
2017-07-14 00:05:13 +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
4834b36271
Finish DList implementation. Fixes #209
...
* removeBack
* insertAfter
* Diverse fixes of insertion logic
* Internal moveFront and moveBack functions
* Internal makeList function
2017-07-08 15:51:17 +02:00
53df12897b
Add missing methods to DList. Issue #209
2017-07-08 13:44:57 +02:00
4ac890d7d3
Fix #260
...
DList invariant fails.
2017-07-08 05:41:04 +02:00
b79657f0d2
Fix 232
2017-07-06 08:35:16 +02:00
4fd37e84f8
Fix #232 for Array
...
Because const is transitive, if we create a range as Range!(const E)
there is no way to get the original type from inside of the range. So if
E is int*, the original type of const(E) could be const(int)* or int*.
Unqual!(const(int*)) returns const(int)*. So pass the whole container as
template parameter. It is a breaking change but since we have Range and
ConstRange aliases now, the usage should be fine.
2017-07-04 07:24:29 +02:00
a6dfb3a19e
Fix DList.opAssign not changing tail
2017-06-28 08:12:58 +02:00
47b394d8c3
Add module documentation. Fix #248
2017-06-24 09:08:19 +02:00
a4de1cc754
toStringz returns a pointer
2017-06-22 11:48:58 +02:00
faa44b6704
Remove deprecated tanya.container.vector
2017-06-09 19:27:54 +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
4633bcc680
Set: Fix comparing with removed elements
2017-06-07 07:57:22 +02:00
bc32511254
Fix template parameters for Set
2017-06-01 22:36:38 +02:00
f30972f948
Add basic constructors and opAssign to Set
2017-06-01 06:26:06 +02:00
ea33ca62c8
Implement lookups in the Set
2017-05-31 10:29:07 +02:00
2815b53a88
Implement Set Range
2017-05-30 15:52:18 +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
8ee1d647ce
Close issue 212
...
Introduce Range and constRange aliases for containers.
2017-05-29 11:26:39 +02:00
f013e2f1f4
Implement a Set container first
2017-05-29 10:50:01 +02:00
8aaf9e14be
Add HashTable struct
2017-05-23 22:17:35 +02:00
a648e2120a
Fix parameter count for docs in container.string
2017-05-19 20:01:04 +02:00
bc61809050
Implement DList.insertBack
2017-05-16 13:16:18 +02:00
8c42cbfd63
Rename Vector to Array
...
For consistency with Phobos.
2017-05-16 12:12:57 +02:00
357c7e279d
Add doubly-linked list
...
DList is an adjusted copy of SList. Missing:
* insertBack
* insertAfter
* removeBack
2017-05-15 19:50:20 +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
e2bed0cfcb
Replace tabs with spaces in mmappool and buffer
2017-05-12 21:02:24 +02:00
38afeac071
Insert String.insertFront and String.insertBack
2017-05-12 20:55:42 +02:00
001c7c3e33
Replace immutable with const in Vector
2017-05-12 20:35:16 +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
c3b63ee40d
Merge branch 'master' into utf8string
2017-05-02 10:59:00 +02:00
6f405c5e08
Make Vector's opSliceAssign accept only own ranges
...
Vector.opSliceAssign and Vector.opIndexAssign should accept only vector
ranges. For assigning other ranges, std.algorithm.mutation.copy and
std.algorithm.mutation.fill should be used.
2017-05-02 10:56:32 +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
f2aac680c5
Fix container ctors and opAssign ref parameters
...
Container constructors and opAssign should accept any ref container and
not only const, otherwise the source container will be copied because
the constructor/opAssign without ref would be a better match.
2017-05-01 09:48:12 +02:00
d629525a4b
Make String to be a char Slice alias
2017-04-21 14:03:20 +02:00
33d321f0d7
Merge branch 'master' into utf8string
2017-04-20 17:32:59 +02:00
4635835a99
Rename Vector range to Slice
2017-04-20 17:32:16 +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