comparison m-toolbox/classes/+utils/@xml/recoverString.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1
2 function s = recoverString(jString)
3
4 s = utils.xml.mchar(jString);
5 if ~isempty(s)
6 % Recover the new line character.
7 s = strrep(s, utils.xml.WILDCARD_NEWLINE, sprintf('\n'));
8
9 % Recover the cvs tag characters
10 nWILDCARD = numel(utils.xml.WILDCARD_CVS);
11 if strncmp(s, utils.xml.WILDCARD_CVS, nWILDCARD) && (s(end) == '$')
12 s = utils.xml.recoverVersionString(s);
13 end
14 end
15
16 end