subst_ctxt - substitute text in a scicos context
ctxt = subst_ctxt(scs_m,str1,str2)
- scs_m : a main scicos data structure
- str1 : string. The string to search in context
- str2 : string. The replacement string
- ctxt : vector of string. the output text of the context
function ctxt=subst_ctxt(scs_m,str1,str2)
ctxt=scs_m.props.context;
for i=1:size(ctxt,1)
if strindex(ctxt(i),str1)<>[] then
ctxt(i)=str2;
end
end
endfunction
IRCOM Group
Alan Layec