Home > freetb4matlab > strings > isstrprop.m

isstrprop

PURPOSE ^

% Test character string properties. For example,

SYNOPSIS ^

function retval = isstrprop (str, pred)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} isstrprop (@var{str}, @var{pred})
% Test character string properties.  For example,
%
% @example
% @group
% isstrprop ('abc123', 'alpha')
% @result{} [1, 1, 1, 0, 0, 0]
% @end group
% @end example
% 
% If @var{str} is a cell array, @code{isstrpop} is applied recursively
% to each element of the cell array.
%
% Numeric arrays are converted to character strings.
%
% The second argument @var{pred} may be one of
%
% @table @code
% @item 'alpha'
% True for characters that are alphabetic
%
% @item 'alnum'
% @itemx 'alphanum'
% True for characters that are alphabetic or digits.
% 
% @item 'ascii'
% True for characters that are in the range of ASCII encoding.
% 
% @item 'cntrl'
% True for control characters.
% 
% @item 'digit'
% True for decimal digits.
% 
% @item 'graph'
% @itemx 'graphic'
% True for printing characters except space.
% 
% @item 'lower'
% True for lower-case letters.
% 
% @item 'print'
% True for printing characters including space.
% 
% @item 'punct'
% True for printing characters except space or letter or digit.
% 
% @item 'space'
% @itemx 'wspace'
% True for whitespace characters (space, formfeed, newline, carriage
% return, tab, vertical tab).
% 
% @item 'upper'
% True for upper-case letters.
% 
% @item 'xdigit'
% True for hexadecimal digits.
% @end table
%
% @seealso{isalnum, isalpha, isascii, iscntrl, isdigit, isgraph,
% islower, isprint, ispunct, isspace, isupper, isxdigit}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003