Home > matpower7.1 > lib > have_feature_regexp_split.m

have_feature_regexp_split

PURPOSE ^

HAVE_FEATURE_REGEXP_SPLIT Detect availability/version info for REGEXP 'split'

SYNOPSIS ^

function [TorF, vstr, rdate] = have_feature_regexp_split()

DESCRIPTION ^

HAVE_FEATURE_REGEXP_SPLIT  Detect availability/version info for REGEXP 'split'

   Feature detection function implementing 'regexp_split' tag for HAVE_FEATURE
   to detect support for the 'split' argument to REGEXP.

   See also HAVE_FEATURE, REGEXP.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [TorF, vstr, rdate] = have_feature_regexp_split()
0002 %HAVE_FEATURE_REGEXP_SPLIT  Detect availability/version info for REGEXP 'split'
0003 %
0004 %   Feature detection function implementing 'regexp_split' tag for HAVE_FEATURE
0005 %   to detect support for the 'split' argument to REGEXP.
0006 %
0007 %   See also HAVE_FEATURE, REGEXP.
0008 
0009 %   MATPOWER
0010 %   Copyright (c) 2004-2020, Power Systems Engineering Research Center (PSERC)
0011 %   by Ray Zimmerman, PSERC Cornell
0012 %
0013 %   This file is part of MATPOWER.
0014 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0015 %   See https://matpower.org for more info.
0016 
0017 TorF = 0;
0018 vstr = '';
0019 rdate = '';
0020 if have_feature('matlab')
0021     v = have_feature('matlab', 'all');
0022     if v.av
0023         TorF = 1;
0024         vstr = v.vstr;
0025         rdate = v.date;
0026     end
0027 else
0028     v = have_feature('octave', 'all');
0029     if v.av
0030         TorF = 1;
0031         vstr = v.vstr;
0032         rdate = v.date;
0033     end
0034 end

Generated on Fri 09-Oct-2020 11:21:31 by m2html © 2005