Mercurial > projects > dynamin
comparison dynamin/painting/text_layout.d @ 102:604d20cac836
Add dynamin.core.array and put contains() there.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Tue, 15 May 2012 21:14:48 -0500 |
parents | 301e077da540 |
children | 73060bc3f004 |
comparison
equal
deleted
inserted
replaced
101:1690ebff00a0 | 102:604d20cac836 |
---|---|
416 int delegate(uint index) splitter; | 416 int delegate(uint index) splitter; |
417 public: | 417 public: |
418 /// | 418 /// |
419 int opApply(int delegate(ref uint start, ref uint length, ref Format format) dg) { | 419 int opApply(int delegate(ref uint start, ref uint length, ref Format format) dg) { |
420 bool inFilter(FormatType type) { | 420 bool inFilter(FormatType type) { |
421 return filter.length == 0 || filter.containsT(type); | 421 return filter.length == 0 || filter.contains(type); |
422 } | 422 } |
423 with(owner) { | 423 with(owner) { |
424 int result; | 424 int result; |
425 uint fIndex = 0; // index of formatting array | 425 uint fIndex = 0; // index of formatting array |
426 uint sIndex = 0; // index passed to splitter | 426 uint sIndex = 0; // index passed to splitter |