FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
ojoregex.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020, Siemens AG
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * version 2 as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program; if not, write to the Free Software Foundation, Inc.,
15  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16  */
23 #ifndef SRC_OJO_AGENT_OJOREGEX_HPP_
24 #define SRC_OJO_AGENT_OJOREGEX_HPP_
25 
35 #define SPDX_LICENSE_LIST "spdx-licen[cs]e(?:id|[- ]identifier): \\K((?:(?: (?:and|or|with) )?\\(?(?:[\\w\\d\\.\\+\\-]{3,})\\)?){1,5})"
36 
44 #define SPDX_LICENSE_NAMES "(?: and | or | with )?\\(?([\\w\\d\\.\\+\\-]{3,})\\)?"
45 
51 #define SPDX_DUAL_LICENSE "(?: (and|or|with)? )"
52 
53 #endif /* SRC_OJO_AGENT_OJOREGEX_HPP_ */