Navigation

Operators and Keywords

Function List:

C++ API

regexptranslate.m File Reference


Functions

endif if (ischar(op)) op
 if (strcmp("wildcard", op)) y
 elseif (strcmp("escape", op)) ch
endfor else error ("regexptranslate: unexpected operation")
endif else error ("regexptranslate: expecting operation to be a string")
endif endfunction!error
< Invalid call to
regexptranslate > 
regexptranslate ()
!error< Invalid call to
regexptranslate > 
regexptranslate ("wildcard")
!error< Invalid call to
regexptranslate > 
regexptranslate ("a","b","c")
!error< unexpected operation > regexptranslate ("foo","abc")
!error< expecting operation to
be a string
regexptranslate (10,"abc")
 !assert (regexptranslate("wildcard","/a*b?c."),"/a.*b.c\\.")%!assert(regexptranslate("escape"

Variables

function y
for i

Function Documentation

!assert ( regexptranslate("wildcard","/a*b?c.")  ,
"/a.*b.c\\."   
)

elseif ( strcmp("escape", op)   ) 

endif else error ( "regexptranslate: expecting operation to be a string  ) 

endfor else error ( "regexptranslate: unexpected operation"   ) 

if ( strcmp("wildcard", op)   ) 

endif if ( ischar(op  ) 

!error<expecting operation to be a string> regexptranslate ( 10  ,
"abc"   
)

!error<unexpected operation> regexptranslate ( "foo"  ,
"abc"   
)

!error<Invalid call to regexptranslate> regexptranslate ( "a"  ,
"b"  ,
"c"   
)

!error<Invalid call to regexptranslate> regexptranslate ( "wildcard"   ) 

endif endfunction !error<Invalid call to regexptranslate> regexptranslate (  ) 


Variable Documentation

for i

Initial value:

 1 : length (ch)
        y = regexprep (y, ch{i}, ch{i})

y

Initial value: