Navigation

Operators and Keywords

Function List:

C++ API

substr.m File Reference


Functions

endif if (ischar(s)) nc
 if (abs(offset) > 0 &&abs(offset)<=nc) if(offset< =0) offset+
endif if (nargin==2) eos
endif if (eos<=nc) t
else error ("substr: length = %d out of range", len)
endif else error ("substr: expecting string argument")
endif endfunction !assert (strcmp(substr("This is a test string", 6, 9),"is a test"))
!error substr ()
!error substr ("foo", 2, 3, 4)

Variables

function t
else eos = offset + len - 1

Function Documentation

endif endfunction !assert ( strcmp(substr("This is a test string", 6, 9),"is a test")   ) 

endif else error ( "substr: expecting string argument"   ) 

else error (  ) 

endif if ( eos<=  nc  ) 

endif if ( nargin  = =2  ) 

if ( abs(offset ,
0 &&abs(offset)<=  nc 
) [pure virtual]

endif if ( ischar(s)   ) 

!error substr ( "foo"  ,
,
,
 
)

!error substr (  ) 


Variable Documentation

else eos = offset + len - 1

Initial value:

 substr (s, offset, len)

  if (nargin < 2 || nargin > 3)
    print_usage ()