added WSF_VALUE.is_empty: BOOLEAN
This commit is contained in:
@@ -45,6 +45,11 @@ feature -- Status report
|
|||||||
is_string: BOOLEAN = False
|
is_string: BOOLEAN = False
|
||||||
-- Is Current as a WSF_STRING representation?
|
-- Is Current as a WSF_STRING representation?
|
||||||
|
|
||||||
|
is_empty: BOOLEAN
|
||||||
|
do
|
||||||
|
Result := value = Void
|
||||||
|
end
|
||||||
|
|
||||||
feature -- Query
|
feature -- Query
|
||||||
|
|
||||||
string_representation: STRING_32
|
string_representation: STRING_32
|
||||||
|
|||||||
@@ -97,6 +97,12 @@ feature -- Status report
|
|||||||
Result := values.count = 1
|
Result := values.count = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
is_empty: BOOLEAN
|
||||||
|
-- Is Current empty?
|
||||||
|
do
|
||||||
|
Result := values.is_empty
|
||||||
|
end
|
||||||
|
|
||||||
feature -- Conversion
|
feature -- Conversion
|
||||||
|
|
||||||
as_string: WSF_STRING
|
as_string: WSF_STRING
|
||||||
|
|||||||
@@ -65,11 +65,6 @@ feature -- Access
|
|||||||
Result := values.item (k)
|
Result := values.item (k)
|
||||||
end
|
end
|
||||||
|
|
||||||
is_empty: BOOLEAN
|
|
||||||
do
|
|
||||||
Result := count = 0
|
|
||||||
end
|
|
||||||
|
|
||||||
count: INTEGER
|
count: INTEGER
|
||||||
do
|
do
|
||||||
Result := values.count
|
Result := values.count
|
||||||
@@ -102,6 +97,12 @@ feature -- Status report
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
is_empty: BOOLEAN
|
||||||
|
-- Is Current empty?
|
||||||
|
do
|
||||||
|
Result := values.is_empty
|
||||||
|
end
|
||||||
|
|
||||||
feature -- Conversion
|
feature -- Conversion
|
||||||
|
|
||||||
as_string: WSF_STRING
|
as_string: WSF_STRING
|
||||||
|
|||||||
@@ -44,7 +44,13 @@ feature -- Element change
|
|||||||
feature -- Status report
|
feature -- Status report
|
||||||
|
|
||||||
is_string: BOOLEAN = False
|
is_string: BOOLEAN = False
|
||||||
-- Is Current as a WSF_STRING representation?
|
-- Is Current as a WSF_STRING representation?
|
||||||
|
|
||||||
|
is_empty: BOOLEAN
|
||||||
|
-- Is Current empty?
|
||||||
|
do
|
||||||
|
Result := size = 0
|
||||||
|
end
|
||||||
|
|
||||||
feature -- Conversion
|
feature -- Conversion
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,12 @@ feature -- Status report
|
|||||||
deferred
|
deferred
|
||||||
end
|
end
|
||||||
|
|
||||||
|
is_empty: BOOLEAN
|
||||||
|
-- Is Current empty?
|
||||||
|
--| i.e empty string, empty table, ...
|
||||||
|
deferred
|
||||||
|
end
|
||||||
|
|
||||||
feature -- Query
|
feature -- Query
|
||||||
|
|
||||||
as_string: WSF_STRING
|
as_string: WSF_STRING
|
||||||
|
|||||||
Reference in New Issue
Block a user