Merge pull request #156 from tom-tan/add-uiscollection-empty

Add dlangui.core.i18n.UIStringCollection.empty
This commit is contained in:
Vadim Lopatin 2016-01-27 06:20:58 +03:00
commit 669f19e77d
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ struct UIStringCollection {
/** Returns number of items */ /** Returns number of items */
@property int length() const { return _length; } @property int length() const { return _length; }
/** Returns true if collection is empty */
@property bool empty() const { return _length == 0; }
/** Slice */ /** Slice */
UIString[] opIndex() { UIString[] opIndex() {
return _items[0 .. _length]; return _items[0 .. _length];