~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/strings/strindex.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
strindex          Scilab Group          Scilab Function            strindex
2
 
NAME
3
 
   strindex - search position of a character string in an other string.
4
 
  
5
 
CALLING SEQUENCE
6
 
 ind=strindex(str1,str2)
7
 
PARAMETERS
8
 
 str1            : a character string. The string where to search
9
 
                 occurrences of str2
10
 
                 
11
 
 str2            : a character string or character string vector . The
12
 
                 string(s) to search in str1
13
 
                 
14
 
 ind             : vector of indexes
15
 
                 
16
 
DESCRIPTION
17
 
   strindex  searches indexes where str2(i) is found in str1  for each k it
18
 
  exist a i shuch that part(str1,ind(k)+(0:length(str2(i))-1)) is the same
19
 
  string than str2(i)   When str2 is a vector and str2
20
 
  
21
 
EXAMPLE
22
 
 k=strindex('SCI/demos/scicos','/')
23
 
 k=strindex('SCI/demos/scicos','SCI/')
24
 
 k=strindex('SCI/demos/scicos','!')
25
 
 k=strindex('aaaaa','aa') 
26
 
 k=strindex('SCI/demos/scicos',['SCI','sci'])
27
 
SEE ALSO
28
 
   string, strings  
29