Changeset 493 for trunk/SRC/Textoidl


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

fix some typos in comments

Location:
trunk/SRC/Textoidl
Files:
9 edited

Legend:

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

    r325 r493  
    4949; Copyright (C) 1996 The Regents of the University of California, All 
    5050; Rights Reserved.  Written by Matthew W. Craig. 
    51 ; See the file COPYRIGHT for restrictions on distrubting this code. 
     51; See the file COPYRIGHT for restrictions on distributing this code. 
    5252; This code comes with absolutely NO warranty; see DISCLAIMER for details. 
    5353; 
  • trunk/SRC/Textoidl/nexttok.pro

    r134 r493  
    44;       NEXTTOK 
    55; PURPOSE: 
    6 ;       Find the next occurance of any of a set of characters in a 
     6;       Find the next occurrence of any of a set of characters in a 
    77;       string and return the character which occurs next. 
    88; CATEGORY: 
     
    3636; 
    3737;       Revision 1.2  1996/05/09 00:22:17  mcraig 
    38 ;       Generalized so that the next occurence of any of a set of characters will 
    39 ;       be returned. 
     38;       Generalized so that the next occurrence of any of a set of characters  
     39;       will be returned. 
    4040; 
    4141;       Revision 1.1  1996/01/31 18:41:06  mcraig 
     
    4848;  Copyright (C) 1996 The Regents of the University of California, All 
    4949;  Rights Reserved.  Written by Matthew W. Craig. 
    50 ;  See the file COPYRIGHT for restrictions on distrubting this code. 
     50;  See the file COPYRIGHT for restrictions on distributing this code. 
    5151;  This code comes with absolutely NO warranty; see DISCLAIMER for details. 
    5252;- 
     
    6464    IF (n_params() NE 2) OR keyword_set(Help) THEN BEGIN  
    6565        offset = '   ' 
    66         print, offset+'Find the next occurance of any of a set of characters in a' 
     66        print, offset+'Find the next occurrence of any of a set of characters in a' 
    6767        print, offset+'string and return the character which occurs next.' 
    6868; CALLING SEQUENCE: 
  • trunk/SRC/Textoidl/showtex.pro

    r325 r493  
    4444;  Copyright (C) 1996 The Regents of the University of California, All 
    4545;  Rights Reserved.  Written by Matthew W. Craig. 
    46 ;  See the file COPYRIGHT for restrictions on distrubting this code. 
     46;  See the file COPYRIGHT for restrictions on distributing this code. 
    4747;  This code comes with absolutely NO warranty; see DISCLAIMER for details. 
    4848;- 
  • trunk/SRC/Textoidl/str_token.pro

    r163 r493  
    5757;  Copyright (C) 1996 The Regents of the University of California, All 
    5858;  Rights Reserved.  Written by Matthew W. Craig. 
    59 ;  See the file COPYRIGHT for restrictions on distrubting this code. 
     59;  See the file COPYRIGHT for restrictions on distributing this code. 
    6060;  This code comes with absolutely NO warranty; see DISCLAIMER for details. 
    6161;- 
  • 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 
  • trunk/SRC/Textoidl/strtrans.pro

    r325 r493  
    44;       STRTRANS 
    55; PURPOSE: 
    6 ;       Translate all occurences of one substring to another. 
     6;       Translate all occurrences of one substring to another. 
    77; CATEGORY: 
    88;       text/strings 
     
    4242; 
    4343;       Revision 1.6  2004/01/11 01:49:00  mcraig 
    44 ;       Changed format of one array to newer [] style to avoidf conflict with function name in astro library. 
     44;       Changed format of one array to newer [] style to avoid conflict with function name in astro library. 
    4545; 
    4646;       Revision 1.5  2001/11/23 21:14:35  mcraig 
     
    6868;  Copyright (C) 1996 The Regents of the University of California, All 
    6969;  Rights Reserved.  Written by Matthew W. Craig. 
    70 ;  See the file COPYRIGHT for restrictions on distrubting this code. 
     70;  See the file COPYRIGHT for restrictions on distributing this code. 
    7171;  This code comes with absolutely NO warranty; see DISCLAIMER for details. 
    7272;- 
     
    8484    IF (n_params() LT 3) OR keyword_set(help) THEN BEGIN 
    8585        offset = '   ' 
    86         print, offset+'Translate all occurences of one substring to another.' 
     86        print, offset+'Translate all occurrences of one substring to another.' 
    8787        print, offset+'new = strtrans(oldstr,from,to,ned)' 
    8888        print, offset+'Inputs:' 
     
    127127 
    128128; Say strn='a#b#c', from='#' and to='@'.  Then the approach here is to 
    129 ; first split strn at all occurances of '#', then recombine the pieces 
     129; first split strn at all occurrences of '#', then recombine the pieces 
    130130; with '@' inserted instead.  Do this for all elements of strn, and 
    131131; all elements of from. 
  • trunk/SRC/Textoidl/textable.pro

    r325 r493  
    5454;  Copyright (C) 1996 The Regents of the University of California, All 
    5555;  Rights Reserved.  Written by Matthew W. Craig. 
    56 ;  See the file COPYRIGHT for restrictions on distrubting this code. 
     56;  See the file COPYRIGHT for restrictions on distributing this code. 
    5757;  This code comes with absolutely NO warranty; see DISCLAIMER for details. 
    5858; 
  • trunk/SRC/Textoidl/textoidl.pro

    r372 r493  
    4545; 
    4646;       Revision 1.6  2004/01/11 01:49:00  mcraig 
    47 ;       Changed format of one array to newer [] style to avoidf conflict with function name in astro library. 
     47;       Changed format of one array to newer [] style to avoid conflict with function name in astro library. 
    4848; 
    4949;       Revision 1.5  2001/11/23 21:10:55  mcraig 
     
    6464;  Copyright (C) 1996 The Regents of the University of California, All 
    6565;  Rights Reserved.  Written by Matthew W. Craig. 
    66 ;  See the file COPYRIGHT for restrictions on distrubting this code. 
     66;  See the file COPYRIGHT for restrictions on distributing this code. 
    6767;  This code comes with absolutely NO warranty; see DISCLAIMER for details. 
    6868; 
  • trunk/SRC/Textoidl/translate_sub_super.pro

    r327 r493  
    5959;  Copyright (C) 1996 The Regents of the University of California, All 
    6060;  Rights Reserved.  Written by Matthew W. Craig. 
    61 ;  See the file COPYRIGHT for restrictions on distrubting this code. 
     61;  See the file COPYRIGHT for restrictions on distributing this code. 
    6262;  This code comes with absolutely NO warranty; see DISCLAIMER for details. 
    6363; 
     
    163163;  Copyright (C) 1996 The Regents of the University of California, All 
    164164;  Rights Reserved.  Written by Matthew W. Craig. 
    165 ;  See the file COPYRIGHT for restrictions on distrubting this code. 
     165;  See the file COPYRIGHT for restrictions on distributing this code. 
    166166;  This code comes with absolutely NO warranty; see DISCLAIMER for details. 
    167167;- 
Note: See TracChangeset for help on using the changeset viewer.