Navigation

Operators and Keywords

Function List:

C++ API

index.m File Reference


Functions

 elseif (nargin< 3) direction
 if (l_s==0||l_s< l_t) v
 elseif (l_t==0) v
 if (strcmp(direction,"last")) v
endif if (l_t > 3) if(all(size(s)!
endif endif if (n==0 &&!isempty(v)) n
endif endfunction !assert (index("astringbstringcstring","s"), 2)%!assert(index("astringbstringcstring"
endif endfunction !assert (index("astringbstringcstring","str"), 2)%!assert(index("astringbstringcstring"
endif endfunction !assert (index("abc---","abc+++"), 0)%!assert(index("astringbstringcstring"
endif endfunction !assert (index("astringbstringcstring","st","last"), 16)%!assert(index("astringbstringcstring"
endif endfunction !assert (index("astringbstringcstring","string","last"), 16)%!assert(index("abc---"
!error index ("foo","bar", 3)

Variables

function n
endif direction = lower (direction)
if(!(ischar(s)&&ischar(t)))
error("index endif 
l_s = length (s)
 l_t = length (t)
else limit = l_s - l_t + 1
 v
endif ind = 0:l_t-1
for idx
 break
endif endfunction st
endif endfunction string
endif endfunction s
endif endfunction last
endif endfunction str

Function Documentation

endif endfunction !assert ( index("astringbstringcstring","string","last")  ,
16   
)

Type Constraints

endif endfunction !assert ( index("astringbstringcstring","st","last")  ,
16   
)

Type Constraints

endif endfunction !assert ( index("abc---","abc+++")  ,
 
)

Type Constraints

endif endfunction !assert ( index("astringbstringcstring","str")  ,
 
)

Type Constraints

endif endfunction !assert ( index("astringbstringcstring","s")  ,
 
)

elseif ( l_t  = =0  ) 

elseif (  ) 

endif endif if ( = =0 &&!isempty(v)  ) 

endif if ( l_t  ,
 
)

if ( strcmp(direction,"last")   ) 

if (  ) 

!error index ( "foo"  ,
"bar"  ,
 
)


Variable Documentation

break

for idx

Initial value:

 1:length(v)
        if (s (v(idx) + ind) == t)
          n = v(idx)

endif ind = 0:l_t-1

if (! (ischar (s) && ischar (t))) error ("index endif l_s = length (s)

l_t = length (t)

else limit = l_s - l_t + 1

n

Initial value:

 index (s, t, direction)



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

Initial value:

 find (s (1:limit) == t(1)
              & s (2:limit+1) == t(2)
              & s (3:limit+2) == t(3))