Changeset 820 for trunk/src/@xmltree/private/xml_findstr.m
- Timestamp:
- Oct 8, 2014, 8:51:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/@xmltree/private/xml_findstr.m
r723 r820 20 20 % 21 21 % See also STRFIND, FINDSTR 22 %_______________________________________________________________________ 23 % Copyright (C) 2002-2008 http://www.artefact.tk/ 22 24 23 % Guillaume Flandin 24 % Copyright 2002 INRIA Sophia Antipolis 25 % $Revision: 1.0 $ $Date: 2002/04/10 22:50:32 $ 26 % Implemented in a MATLAB mex file. 25 % Guillaume Flandin <guillaume@artefact.tk> 26 % $Id: xml_findstr.m 2271 2008-09-30 21:19:47Z guillaume $ 27 27 28 error(sprintf('Missing MEX-file: %s', mfilename)); 28 %error(sprintf('Missing MEX-file: %s', mfilename)); 29 30 persistent runonce 31 if isempty(runonce) 32 warning(sprintf(['xml_findstr is not compiled for your platform.\n'... 33 'This will result in a slowdown of the XML parsing.'])); 34 runonce = 1; 35 end 36 37 % k = regexp(s(i:end),p,'once') + i - 1; 38 if nargin < 3, i = 1; end 39 if nargin < 4, n = Inf; end 40 j = strfind(s,p); 41 k = j(j>=i); 42 if ~isempty(k), k = k(1:min(n,length(k))); end
Note: See TracChangeset
for help on using the changeset viewer.