1 %>@ingroup codegen
string
3 %> @brief Finds a suffix based on the
class name. Isolates the bit after the last undescore
4 %> @todo Could respond to IRootLab setup to change the way
new generated objects are named, i.e. how they appear in
objtool and datatool
6 %> @param clname Class name.
9 if ~exist('no_trim', 'var') || isempty(no_trim)
12 pos = strfind(clname, '_');
16 pospos = numel(pos)-no_trim+1;
17 if pospos > numel(pos)
24 suffix = clname(i1:end);
function get_suffix(in clname, in no_trim)