Home > Objects > @iData > findstr.m

iFit/findstr

PURPOSE ^

[match, field]=findstr(s, str, option) : look for strings stored in iData

SYNOPSIS ^

function [match, field] = findstr(s, str, option)

DESCRIPTION ^

 [match, field]=findstr(s, str, option) : look for strings stored in iData

   @iData/findstr function to look for strings stored in iData

   [match,field] = findstr(iData, str) returns the string containg 'str' 
     and the field name it appears in. If 'str' is set to '', the content of all
     character fields is returned.
   The 'option' may contain 'exact' to search for the exact occurence, and 'case'
   to specifiy a case sensitive search.

 input:  s: object or array (iData)
         str: string to search in object, or '' (char or cellstr).
         option: 'exact' 'case' or '' (char)
 output: match: content of iData fields that contain 'str' (cellstr)
         field: name of iData fields that contain 'str' (cellstr)
 ex:     findstr(iData,'ILL') or findstr(s,'TITLE','exact case')

 Version: Aug. 22, 2017
 See also iData, iData/set, iData/get, iData/findobj, iData/findfield

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 22-Aug-2017 11:03:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1