File indexing completed on 2024-11-10 04:30:29

0001 /* This file is part of the KDE libraries
0002    SPDX-FileCopyrightText: 2011 Martin Koller <kollix@aon.at>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "request_hash.h"
0008 #include <request_gperf.h>
0009 
0010 //---------------------------------------------------------------------
0011 
0012 RequestNum RequestHash::getRequest(const char *str, int len)
0013 {
0014     const Requests *req = Perfect_Hash::in_word_set(str, len);
0015     return req ? req->number : REQ_UNKNOWN;
0016 }
0017 
0018 //---------------------------------------------------------------------