MAINSAIL Language Manual, Section 32.74

previous   next   top   contents   index   framed top   this page unframed


32.74. $cScan

Figure 32–76. $cScan
$ALWAYSINLINE
STRING
PROCEDURE   $cScan      (MODIFIES STRING s;
                         
INTEGER ch;
                         
OPTIONAL BITS scanBits;
                         
PRODUCES OPTIONAL INTEGER
                             
brkChar);

$cScan is a fast, convenient way of scanning a STRING for a single character. $cScan(s,ch,scanBits,brkChar) is equivalent to:

scan(s,cvcs(ch),scanBits,brkChar)

although $cScan is faster. See Section 47.2 for a complete description of scan.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 32.74