~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to include/dsnlexer.h

  • Committer: Maciej Suminski
  • Date: 2013-08-02 13:57:24 UTC
  • mfrom: (4024.1.238 kicad)
  • mto: This revision was merged to the branch mainline in revision 4221.
  • Revision ID: maciej.suminski@cern.ch-20130802135724-gix6orezshkukodv
Upstream merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
 
137
137
    /**
138
138
     * Function findToken
139
 
     * takes a string and looks up the string in the list of expected
140
 
     * tokens.
 
139
     * takes aToken string and looks up the string in the keywords table.
141
140
     *
142
 
     * @param tok A string holding the token text to lookup, in an
143
 
     *   unpredictable case: uppercase or lowercase
144
 
     * @return int - DSN_T matching the keyword text, or DSN_SYMBOL if argument
145
 
     *   string is not a recognized token.
 
141
     * @param aToken is a string to lookup in the keywords table.
 
142
     * @return int - with a value from the enum DSN_T matching the keyword text,
 
143
     *         or DSN_SYMBOL if @a aToken is not in the kewords table.
146
144
     */
147
 
    int findToken( const std::string& tok );
 
145
    int findToken( const std::string& aToken );
148
146
 
149
147
    bool isStringTerminator( char cc )
150
148
    {