|
Packit |
b27855 |
/* Inline Functions for keyword.{h,cc}.
|
|
Packit |
b27855 |
|
|
Packit |
b27855 |
Copyright (C) 1989-1998, 2000, 2002 Free Software Foundation, Inc.
|
|
Packit |
b27855 |
Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
|
|
Packit |
b27855 |
and Bruno Haible <bruno@clisp.org>.
|
|
Packit |
b27855 |
|
|
Packit |
b27855 |
This file is part of GNU GPERF.
|
|
Packit |
b27855 |
|
|
Packit |
b27855 |
This program is free software: you can redistribute it and/or modify
|
|
Packit |
b27855 |
it under the terms of the GNU General Public License as published by
|
|
Packit |
b27855 |
the Free Software Foundation; either version 3 of the License, or
|
|
Packit |
b27855 |
(at your option) any later version.
|
|
Packit |
b27855 |
|
|
Packit |
b27855 |
This program is distributed in the hope that it will be useful,
|
|
Packit |
b27855 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
b27855 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
b27855 |
GNU General Public License for more details.
|
|
Packit |
b27855 |
|
|
Packit |
b27855 |
You should have received a copy of the GNU General Public License
|
|
Packit |
b27855 |
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
Packit |
b27855 |
|
|
Packit |
b27855 |
/* ----------------------------- Keyword class ----------------------------- */
|
|
Packit |
b27855 |
|
|
Packit |
b27855 |
/* Constructor. */
|
|
Packit |
b27855 |
INLINE
|
|
Packit |
b27855 |
Keyword::Keyword (const char *allchars, int allchars_length, const char *rest)
|
|
Packit |
b27855 |
: _allchars (allchars), _allchars_length (allchars_length), _rest (rest)
|
|
Packit |
b27855 |
{
|
|
Packit |
b27855 |
}
|
|
Packit |
b27855 |
|
|
Packit |
b27855 |
|
|
Packit |
b27855 |
/* --------------------------- KeywordExt class --------------------------- */
|
|
Packit |
b27855 |
|
|
Packit |
b27855 |
/* Constructor. */
|
|
Packit |
b27855 |
INLINE
|
|
Packit |
b27855 |
KeywordExt::KeywordExt (const char *allchars, int allchars_length, const char *rest)
|
|
Packit |
b27855 |
: Keyword (allchars, allchars_length, rest),
|
|
Packit |
b27855 |
_final_index (-1)
|
|
Packit |
b27855 |
{
|
|
Packit |
b27855 |
}
|