Emission of empty strings.
Opened this issue · 0 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Emission of an empty string, e.g. info: ''
What is the expected output? What do you see instead?
Expected: '' (empty string)
Actual: [] (empty list)
What version of the product are you using? On what operating system?
0.4.3 running on Windows 7
Please provide any additional information below.
Suggested solution:
function result = scan_char(r)
if isempty(r)
result = java.lang.String(); % result = java.util.ArrayList();
else
result = java.lang.String(r);
end
end
Original issue reported on code.google.com by reinhard...@gmail.com
on 12 Dec 2013 at 3:45