source: trunk/SRC/Documentation/idldoc_html_output/ToBeReviewed/STRING/strtrans.html @ 107

Last change on this file since 107 was 107, checked in by smasson, 18 years ago

bugfix in ead/write_oasis

File size: 6.0 KB
Line 
1
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5<!-- Generated by IDLdoc 2.0 -->
6
7<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
8  <head>
9    <title>strtrans.pro (SAXO Documentation)</title>
10
11   
12    <link rel="stylesheet" type="text/css" media="all" href="./../../main_files.css" />
13    <link rel="stylesheet" type="text/css" media="print" href="./../../main_files_print.css" />
14   
15
16    <script type="text/javascript">
17      function setTitle() {
18        parent.document.title="strtrans.pro (SAXO Documentation)";
19      }
20    </script>
21  </head>
22
23  <body onload="setTitle();">
24
25    <div id="navbar_title">
26  <h1>SAXO Documentation</h1>
27</div>
28
29
30<div id="main_navbar">
31
32  <table cellspacing="0">
33    <tr>
34     
35      <td><a href="./../../overview.html?format=raw" title="Overview of library">Overview</a></td>
36     
37
38     
39      <td >Directory</td>
40     
41
42     
43      <td><a href="./../../idldoc-categories.html?format=raw" title="Browse library by category">Categories</a></td>
44     
45
46     
47      <td><a href="./../../idldoc-index.html?format=raw" title="Index of files, routines, and parameters">Index</a></td>
48     
49
50     
51      <td><a href="./../../search-page.html?format=raw" title="Search library">Search</a></td>
52     
53
54      <td id="selected">File</td>
55
56     
57      <td >Source</td>
58     
59
60     
61      <td><a href="./../../idldoc-help.html?format=raw" title="Help on IDLdoc">Help</a></td>
62     
63
64      <td >Etc</td>
65
66      <td id="flexible">Developer&nbsp;documentation</td>
67    </tr>
68  </table>
69
70</div>
71
72<div id="secondary_navbar">
73
74<a href="strtok.html">&lt;&lt;prev file</a> | <a href="strwhere.html">next file &gt;&gt;</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="strtrans.html?format=raw" target="_TOP">view single page</a> | <a href="./../../index.html?format=raw" target="_TOP">view frames</a>&nbsp;&nbsp;&nbsp;&nbsp;summary: fields | routine&nbsp;&nbsp;&nbsp;&nbsp;details: <a href="#routine_details">routine</a>
75
76</div>
77
78
79    <div id="container">
80
81      <h1 class="directory"><a href="directory-overview.html?format=raw">ToBeReviewed/STRING/</a></h1>
82      <h2 class="pro_file">strtrans.pro</h2>
83
84      <div id="file_attr">
85        <dl>
86        </dl>
87      </div>
88
89      <div id="file_comments"></div>
90
91     
92
93     
94
95     
96
97     
98
99      <div id="routine_details">
100       
101
102        <div class="routine_details" id="_strtrans">
103
104          <h2><a class="top" href="#container">top</a>strtrans </h2>
105       
106          <p class="header">
107            <span class="result">result = </span>strtrans(<span class="result"><a href="#_strtrans_param_InputString">InputString</a>, <a href="#_strtrans_param_from">from</a>, <a href="#_strtrans_param_to">to</a>, <a href="#_strtrans_param_ned">ned</a></span>, <a href="#_strtrans_keyword_HELP">HELP</a>=<span class="result">HELP</span>)</p>
108       
109          <div class="comments">
110 NAME:
111       STRTRANS
112 PURPOSE:
113       Translate all occurences of one substring to another.
114 CATEGORY:
115       text/strings
116 CALLING SEQUENCE:
117       new = strtrans(oldstr,from,to,ned)
118 INPUTS:
119       oldstr -- string on which to operate.              in
120                 May be an array.
121       from   -- substrings to be translated. May be      in
122                 an array.
123       to     -- what strings in from should be           in
124                 translated to. May be an array.
125 KEYWORD PARAMETERS:
126       /HELP  -- Set this to print useful message and
127                 exit.
128 OUTPUTS:
129       new    -- Translated string. Array if oldstr is    out         
130                 an array.
131       ned    -- number of substitutions performed in     out
132                 oldstr.  Array if oldstr is an array.
133 COMMON BLOCKS:
134 SIDE EFFECTS:
135 NOTES:
136       - Any of old, from, and to can be arrays. 
137       - from and to must have the same number of elements.
138 EXAMPLE:
139       inp='Many*bad!chars+in_here'
140       from=['*','!','+','_']
141       to  =[' ',' ',' ',' ']
142       out = strtrans(inp,from,to,ned)
143       Will produce out='Many bad chars in here', and set ned to 4.
144 MODIFICATION HISTORY:
145       $Id: strtrans.pro 18 2006-05-02 09:32:05Z pinsard $
146       $Log: strtrans.pro,v $
147       Revision 1.3  1996/06/14 20:00:27  mcraig
148       Updated Copyright info.
149
150       Revision 1.2  1996/05/09 00:22:17  mcraig
151       Sped up significantly by using str_sep to handle the translation.  No longer
152       relies on routines fromother user libraries.
153
154       Revision 1.1  1996/01/31 18:47:37  mcraig
155       Initial revision
156
157 RELEASE:
158       $Name: Rel_1_2 $
159
160 COPYRIGHT:
161  Copyright (C) 1996 The Regents of the University of California, All
162  Rights Reserved.  Written by Matthew W. Craig.
163  See the file COPYRIGHT for restrictions on distrubting this code.
164  This code comes with absolutely NO warranty; see DISCLAIMER for details.</div>
165
166         
167
168         
169            <h3>Parameters</h3>
170       
171           
172            <h4 id="_strtrans_param_InputString">InputString&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
173             
174             
175             
176             
177             
178             
179             
180             
181            </h4>
182       
183          <div class="comments"></div>
184           
185            <h4 id="_strtrans_param_from">from&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
186             
187             
188             
189             
190             
191             
192             
193             
194            </h4>
195       
196          <div class="comments"></div>
197           
198            <h4 id="_strtrans_param_to">to&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
199             
200             
201             
202             
203             
204             
205             
206             
207            </h4>
208       
209          <div class="comments"></div>
210           
211            <h4 id="_strtrans_param_ned">ned&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
212             
213             
214             
215             
216             
217             
218             
219             
220            </h4>
221       
222          <div class="comments"></div>
223           
224
225         
226
227         
228
229            <h3>Keywords</h3>
230           
231            <h4 id="_strtrans_keyword_HELP">HELP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
232             
233             
234             
235             
236             
237             
238             
239             
240            </h4>
241       
242            <div class="comments"></div>
243           
244         
245
246         
247         
248         
249         
250         
251         
252         
253         
254         
255         
256         
257         
258       
259         
260         
261         
262         
263         
264         
265         
266       
267         
268       
269        </div>
270       
271      </div>
272
273     
274
275      <div id="tagline">Produced by IDLdoc 2.0.</div>
276
277    </div>
278
279  </body>
280</html>
Note: See TracBrowser for help on using the repository browser.