File ntt/bin/trans/mttDetachText.m artifact 3bacd6b720 part of check-in 7a7022c729
function [detached_text,preceding_text] = mttDetachText(text,delimiter) if isempty(text) detached_text = [] ; preceding_text = [] ; else where = max(findstr(text,delimiter)) ; if isempty(where) detached_text = [] ; preceding_text = mttClipText(text) ; else detached_text = mttClipText(text(where+length(delimiter):length(text))) ; preceding_text = mttClipText(text(1:where-1)) ; end end