[89] | 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> |
---|
[104] | 9 | <title>nexttok.pro (SAXO Documentation)</title> |
---|
[89] | 10 | |
---|
| 11 | |
---|
[191] | 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" /> |
---|
[89] | 14 | |
---|
| 15 | |
---|
| 16 | <script type="text/javascript"> |
---|
| 17 | function setTitle() { |
---|
[104] | 18 | parent.document.title="nexttok.pro (SAXO Documentation)"; |
---|
[89] | 19 | } |
---|
| 20 | </script> |
---|
| 21 | </head> |
---|
| 22 | |
---|
| 23 | <body onload="setTitle();"> |
---|
| 24 | |
---|
| 25 | <div id="navbar_title"> |
---|
[104] | 26 | <h1>SAXO Documentation</h1> |
---|
[89] | 27 | </div> |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | <div id="main_navbar"> |
---|
| 31 | |
---|
| 32 | <table cellspacing="0"> |
---|
| 33 | <tr> |
---|
| 34 | |
---|
[189] | 35 | <td><a href="./../overview.html" title="Overview of library">Overview</a></td> |
---|
[89] | 36 | |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | <td >Directory</td> |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | |
---|
[189] | 43 | <td><a href="./../idldoc-categories.html" title="Browse library by category">Categories</a></td> |
---|
[89] | 44 | |
---|
| 45 | |
---|
| 46 | |
---|
[189] | 47 | <td><a href="./../idldoc-index.html" title="Index of files, routines, and parameters">Index</a></td> |
---|
[89] | 48 | |
---|
| 49 | |
---|
| 50 | |
---|
[189] | 51 | <td><a href="./../search-page.html" title="Search library">Search</a></td> |
---|
[89] | 52 | |
---|
| 53 | |
---|
| 54 | <td id="selected">File</td> |
---|
| 55 | |
---|
| 56 | |
---|
[189] | 57 | <td><a href="../../../Textoidl//nexttok.pro" title="Source code of a file">Source</a></td> |
---|
[89] | 58 | |
---|
| 59 | |
---|
| 60 | |
---|
[189] | 61 | <td><a href="./../idldoc-help.html" title="Help on IDLdoc">Help</a></td> |
---|
[89] | 62 | |
---|
| 63 | |
---|
| 64 | <td >Etc</td> |
---|
| 65 | |
---|
| 66 | <td id="flexible">Developer documentation</td> |
---|
| 67 | </tr> |
---|
| 68 | </table> |
---|
| 69 | |
---|
| 70 | </div> |
---|
| 71 | |
---|
| 72 | <div id="secondary_navbar"> |
---|
| 73 | |
---|
[189] | 74 | <a href="matchdelim.html"><<prev file</a> | <a href="showtex.html">next file >></a> <a href="nexttok.html" target="_TOP">view single page</a> | <a href="./../index.html" target="_TOP">view frames</a> summary: fields | routine details: <a href="#routine_details">routine</a> |
---|
[89] | 75 | |
---|
| 76 | </div> |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | <div id="container"> |
---|
| 80 | |
---|
[189] | 81 | <h1 class="directory"><a href="directory-overview.html">Textoidl/</a></h1> |
---|
[89] | 82 | <h2 class="pro_file">nexttok.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="_nexttok"> |
---|
| 103 | |
---|
| 104 | <h2><a class="top" href="#container">top</a>nexttok </h2> |
---|
| 105 | |
---|
| 106 | <p class="header"> |
---|
| 107 | <span class="result">result = </span>nexttok(<span class="result"><a href="#_nexttok_param_strn">strn</a>, <a href="#_nexttok_param_tokens">tokens</a></span>, <a href="#_nexttok_keyword_POSITION">POSITION</a>=<span class="result">POSITION</span>, <a href="#_nexttok_keyword_HELP">HELP</a>=<span class="result">HELP</span>)</p> |
---|
| 108 | |
---|
| 109 | <div class="comments"> |
---|
| 110 | NAME: |
---|
| 111 | NEXTTOK |
---|
| 112 | PURPOSE: |
---|
| 113 | Find the next occurance of any of a set of characters in a |
---|
| 114 | string and return the character which occurs next. |
---|
| 115 | CATEGORY: |
---|
| 116 | text/strings |
---|
| 117 | CALLING SEQUENCE: |
---|
| 118 | tok = nexttok( strn, tokens ) |
---|
| 119 | INPUTS: |
---|
| 120 | strn -- string to be searched for sub/superscripts in |
---|
| 121 | tokens -- string containing characters to be found. in |
---|
| 122 | KEYWORD PARAMETERS: |
---|
| 123 | POSITION -- Set to a named variable to get position out |
---|
| 124 | of next token, or -1 if none found. |
---|
| 125 | /HELP -- Print useful message and exit. |
---|
| 126 | OUTPUTS: |
---|
| 127 | tok -- Contains the character among tokens which out |
---|
| 128 | occurs next in strn, or null '' if none found. |
---|
| 129 | COMMON BLOCKS: |
---|
| 130 | SIDE EFFECTS: |
---|
| 131 | NOTES: |
---|
| 132 | EXAMPLE: |
---|
| 133 | nexttok( 'x^2 + N_j^3', '^_', position=pos ) returns '^' and sets |
---|
| 134 | pos to 1. |
---|
| 135 | MODIFICATION HISTORY: |
---|
[138] | 136 | $Id: nexttok.pro 134 2006-07-07 10:19:08Z navarro $ |
---|
[89] | 137 | $Log: nexttok.pro,v $ |
---|
| 138 | Revision 1.4 2004/06/15 17:25:54 mcraig |
---|
| 139 | Fixed bug in regular expression, changed array notation to square brackets |
---|
| 140 | |
---|
| 141 | Revision 1.3 1996/06/14 20:00:27 mcraig |
---|
| 142 | Updated Copyright info. |
---|
| 143 | |
---|
| 144 | Revision 1.2 1996/05/09 00:22:17 mcraig |
---|
| 145 | Generalized so that the next occurence of any of a set of characters will |
---|
| 146 | be returned. |
---|
| 147 | |
---|
| 148 | Revision 1.1 1996/01/31 18:41:06 mcraig |
---|
| 149 | Initial revision |
---|
| 150 | |
---|
| 151 | RELEASE: |
---|
| 152 | $Name: Rel_2_1_2 $ |
---|
| 153 | |
---|
| 154 | COPYRIGHT: |
---|
| 155 | Copyright (C) 1996 The Regents of the University of California, All |
---|
| 156 | Rights Reserved. Written by Matthew W. Craig. |
---|
| 157 | See the file COPYRIGHT for restrictions on distrubting this code. |
---|
| 158 | This code comes with absolutely NO warranty; see DISCLAIMER for details.</div> |
---|
| 159 | |
---|
| 160 | |
---|
| 161 | |
---|
| 162 | |
---|
| 163 | <h3>Parameters</h3> |
---|
| 164 | |
---|
| 165 | |
---|
| 166 | <h4 id="_nexttok_param_strn">strn |
---|
| 167 | |
---|
| 168 | |
---|
| 169 | |
---|
| 170 | |
---|
| 171 | |
---|
| 172 | |
---|
| 173 | |
---|
| 174 | |
---|
| 175 | </h4> |
---|
| 176 | |
---|
| 177 | <div class="comments"></div> |
---|
| 178 | |
---|
| 179 | <h4 id="_nexttok_param_tokens">tokens |
---|
| 180 | |
---|
| 181 | |
---|
| 182 | |
---|
| 183 | |
---|
| 184 | |
---|
| 185 | |
---|
| 186 | |
---|
| 187 | |
---|
| 188 | </h4> |
---|
| 189 | |
---|
| 190 | <div class="comments"></div> |
---|
| 191 | |
---|
| 192 | |
---|
| 193 | |
---|
| 194 | |
---|
| 195 | |
---|
| 196 | |
---|
| 197 | <h3>Keywords</h3> |
---|
| 198 | |
---|
| 199 | <h4 id="_nexttok_keyword_POSITION">POSITION |
---|
| 200 | |
---|
| 201 | |
---|
| 202 | |
---|
| 203 | |
---|
| 204 | |
---|
| 205 | |
---|
| 206 | |
---|
| 207 | |
---|
| 208 | </h4> |
---|
| 209 | |
---|
| 210 | <div class="comments"></div> |
---|
| 211 | |
---|
| 212 | <h4 id="_nexttok_keyword_HELP">HELP |
---|
| 213 | |
---|
| 214 | |
---|
| 215 | |
---|
| 216 | |
---|
| 217 | |
---|
| 218 | |
---|
| 219 | |
---|
| 220 | |
---|
| 221 | </h4> |
---|
| 222 | |
---|
| 223 | <div class="comments"></div> |
---|
| 224 | |
---|
| 225 | |
---|
| 226 | |
---|
| 227 | |
---|
| 228 | |
---|
| 229 | |
---|
| 230 | |
---|
| 231 | |
---|
| 232 | |
---|
| 233 | |
---|
| 234 | |
---|
| 235 | |
---|
| 236 | |
---|
| 237 | |
---|
| 238 | |
---|
| 239 | |
---|
| 240 | |
---|
| 241 | |
---|
| 242 | |
---|
| 243 | |
---|
| 244 | |
---|
| 245 | |
---|
| 246 | |
---|
| 247 | |
---|
[163] | 248 | <h3>Statistics</h3> |
---|
| 249 | <table class="statistics"> |
---|
| 250 | <tr><td>McCabe cyclic</td><td> 5</td></tr> |
---|
| 251 | <tr><td>McCabe essential</td><td> 1</td></tr> |
---|
| 252 | <tr><td>McCabe modular design</td><td> 1</td></tr> |
---|
| 253 | </table> |
---|
[89] | 254 | |
---|
| 255 | |
---|
| 256 | </div> |
---|
| 257 | |
---|
| 258 | </div> |
---|
| 259 | |
---|
| 260 | |
---|
| 261 | |
---|
| 262 | <div id="tagline">Produced by IDLdoc 2.0.</div> |
---|
| 263 | |
---|
| 264 | </div> |
---|
| 265 | |
---|
| 266 | </body> |
---|
[249] | 267 | </html> |
---|