Add dlangui.core.i18n.UIStringCollection.empty

This commit is contained in:
Tomoya Tanjo 2016-01-27 05:11:18 +09:00
parent f4d26fa758
commit 3300483844
1 changed files with 4 additions and 0 deletions

View File

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