Ignore:
Timestamp:
04/08/14 11:28:29 (10 years ago)
Author:
pinsard
Message:

fix some typos in comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Textoidl/strcnt.pro

    r325 r493  
    77; 
    88; @param STRN {in}{required}{type=string} 
    9 ; The string in which to count occurences. 
     9; The string in which to count occurrences. 
    1010; 
    1111; @param SUBSTRN {in}{required}{type=string} 
     
    2020; 
    2121; @returns 
    22 ; Number of occurances of substring in string. 
     22; Number of occurrences of substring in string. 
    2323; 
    2424; @restrictions 
    25 ; Overlapping occurances are not counted separately.  For 
    26 ; example, counting occurances of 'bb' in 'blah bbb' returns one 
    27 ; occurance.  
     25; Overlapping occurrences are not counted separately.  For 
     26; example, counting occurrences of 'bb' in 'blah bbb' returns one 
     27; occurrence.  
    2828; 
    2929; @history 
     
    3333; 
    3434;       Revision 1.2  1996/05/09 00:22:17  mcraig 
    35 ;       Added fast processing using BYTE arrays if we are counting occurences of 
    36 ;       a single character.  Added error handling. 
     35;       Added fast processing using BYTE arrays if we are counting occurrences  
     36;       of a single character.  Added error handling. 
    3737; 
    3838;       Revision 1.1  1996/01/31 18:47:37  mcraig 
     
    4141;  Copyright (C) 1996 The Regents of the University of California, All 
    4242;  Rights Reserved.  Written by Matthew W. Craig. 
    43 ;  See the file COPYRIGHT for restrictions on distrubting this code. 
     43;  See the file COPYRIGHT for restrictions on distributing this code. 
    4444;  This code comes with absolutely NO warranty; see DISCLAIMER for details. 
    4545; 
     
    6262        print, offset+'num = strcnt(strn, substring, [pos])' 
    6363        print, offset+'Inputs:' 
    64         print,offset+offset+'string    -- The string in which to count occurences.     in' 
     64        print,offset+offset+'string    -- The string in which to count occurrences.     in' 
    6565        print,offset+offset+'substring -- The substring to count occurrences of.       in' 
    6666        print,offset+offset+'pos       -- the position at which to begin the search.   [in]' 
     
    7070        print,offset+offset+'/HELP     -- Print useful message and return.' 
    7171        print, offset+'Outputs:' 
    72         print,offset+offset+'num       -- Number of occurances of substring in string. out' 
     72        print,offset+offset+'num       -- Number of occurrences of substring in string. out' 
    7373        return, -1 
    7474    ENDIF  
     
    7878;  return if we weren't really given a substring to search for. . . 
    7979    IF strlen(substrn) EQ 0 THEN BEGIN  
    80         print, "Error: Can't count occurances of null string." 
     80        print, "Error: Can't count occurrences of null string." 
    8181        return, -1 
    8282    ENDIF  
     
    8686    IF strlen(tmpstrn) EQ 0 THEN return, 0 
    8787 
    88 ; If looking for occurences of single character, process using BYTE 
     88; If looking for occurrences of single character, process using BYTE 
    8989; array. 
    9090    IF strlen(substrn) EQ 1 THEN BEGIN 
Note: See TracChangeset for help on using the changeset viewer.