Changeset 10221


Ignore:
Timestamp:
2005-07-06T15:48:06+12:00 (19 years ago)
Author:
kjdon
Message:

ran it through a spell checker

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/parse2.pm

    r10216 r10221  
    11#Last: Keeping doing the processArg for handing different type of arguments
    22
    3 #parse2(\@_,$argumnents,$self )
     3#parse2(\@_,$arguments,$self )
    44
    55package parse2;
     
    1919#-----------------------------------------
    2020# Name: transformArg
    21 # Perameters: 1.(Array pointer of plugin pre-defined argument list)
     21# Parameters: 1.(Array pointer of plugin pre-defined argument list)
    2222# Pre-condition: Call this function and pass a array pointer of argument list.
    2323# Post-condition: This function will transform the array to a hash table
     
    4949    if($intInputArg < $aryRange[0])
    5050    {
    51         print STDERR " Parameter Parsing Error (Incorrect Range): when parse arugment parameter for \"-$strArgName\"\n";
     51        print STDERR " Parameter Parsing Error (Incorrect Range): when parse argument parameter for \"-$strArgName\"\n";
    5252        return 0;
    5353    }
     
    5858        if($intInputArg > $aryRange[1])
    5959        {
    60             print STDERR " Parameter Parsing Error (Incorrect Range): when parse arugment parameter for \"-$strArgName\"\n";
     60            print STDERR " Parameter Parsing Error (Incorrect Range): when parse argument parameter for \"-$strArgName\"\n";
    6161            return 0;
    6262        }
     
    6464    }
    6565    }
    66     else{ die " System error: minimum range is not defined. Possiable misstyping in Argument list for $strArgName\n";}
     66    else{ die " System error: minimum range is not defined. Possible mistyping in Argument list for $strArgName\n";}
    6767    return 1;
    6868}
     
    7575    if(length($intInputArg) != $intCharLength)
    7676    {
    77         print STDERR " Parameter Parsing Error (Incorrect Char_Length): when parse arugment parameter for \"-$strArgName\"\n";
     77        print STDERR " Parameter Parsing Error (Incorrect Char_Length): when parse argument parameter for \"-$strArgName\"\n";
    7878        return 0;
    7979    }
     
    8181    else
    8282    {
    83     die " System error: incorrect char_lengh. Possiable misstyping in Argument list for $strArgName\n";
     83    die " System error: incorrect char_length. Possible mistyping in Argument list for $strArgName\n";
    8484    }
    8585    return 1;
     
    8787#-----------------------------------------
    8888# Name: processArg
    89 # Perameters: 1.(Hash pointer of one argument)
     89# Parameters: 1.(Hash pointer of one argument)
    9090#             2.(Array pointer of the user given argument)
    9191#             3.(Hash pointer of user given arguments' values)
     
    125125    else
    126126    {
    127         print STDERR " Error: occour in parse2.pm::processArg()\n Unmatch Argument: -$strArgName with type $strArgType\n";
     127        print STDERR " Error: occur in parse2.pm::processArg()\n Unmatched Argument: -$strArgName with type $strArgType\n";
    128128        return 0;
    129129    }
     
    148148        if($blnCheckInList ne "true")
    149149        {
    150         print STDERR " Error: occour in parse2.pm::processArg()\n Unknow Enum List Type: -$strArgName with parameter: $strInputArg\n";
     150        print STDERR " Error: occur in parse2.pm::processArg()\n Unknow Enum List Type: -$strArgName with parameter: $strInputArg\n";
    151151        return 0;
    152152        } else {
     
    157157    else
    158158    {
    159         print STDERR " Error: occour in parse2.pm::processArg()\n Unknow Type: -$strArgName with type $strArgType\n";
     159        print STDERR " Error: occur in parse2.pm::processArg()\n Unknow Type: -$strArgName with type $strArgType\n";
    160160        return 0;
    161161    }
     
    173173    else
    174174    {
    175     print STDERR " Error: occour in parse2.pm::processArg()\n Unknow Type: -$strArgName with type $strArgType\n";
     175    print STDERR " Error: occur in parse2.pm::processArg()\n Unknow Type: -$strArgName with type $strArgType\n";
    176176    return 0;
    177177    }
     
    183183#-----------------------------------------
    184184# Name: parse
    185 # Perameters: 1.(Array pointer of the user given argument)
     185# Parameters: 1.(Array pointer of the user given argument)
    186186#             2.(Array pointer of plugin pre-defined argument list) 
    187187#             3.(Self pointer, where we store all the argument value)
     
    193193sub parse
    194194{
    195     # Get the user supplied arugments pointer "\@_"
     195    # Get the user supplied arguments pointer "\@_"
    196196    my $aryptUserArguList = shift;
    197197
     
    250250        else
    251251        {
    252             print STDERR " Error: occour in parse2.pm::parse()\n Extra Arguments: $strOneArg\n";
     252            print STDERR " Error: occur in parse2.pm::parse()\n Extra Arguments: $strOneArg\n";
    253253            return 0;
    254254        }
     
    267267        else
    268268        {
    269         print STDERR " Error: occour in parse2.pm::parse()\n Invaild Argument: $strOneArg\n";
     269        print STDERR " Error: occur in parse2.pm::parse()\n Invalid Argument: $strOneArg\n";
    270270        return 0;
    271271        }
Note: See TracChangeset for help on using the changeset viewer.