3 import "review.coreboot.org/coreboot.git/util/intelp2m/platforms/common"
5 // GroupNameExtract - This function extracts the group ID, if it exists in a row
6 // line : string from the configuration file
8 // bool : true if the string contains a group identifier
9 // string : group identifier
10 func (PlatformSpecific
) GroupNameExtract(line
string) (bool, string) {
11 return common
.KeywordsCheck(line
,
12 "GPP_A", "GPP_B", "GPP_F", "GPP_C", "GPP_D", "GPP_E", "GPD", "GPP_I", "GPP_J",
13 "GPP_K", "GPP_G", "GPP_H", "GPP_L")
16 // KeywordCheck - This function is used to filter parsed lines of the configuration file and
17 // returns true if the keyword is contained in the line.
18 // line : string from the configuration file
19 // Returns false if no word was found, or true otherwise
20 func (PlatformSpecific
) KeywordCheck(line
string) bool {
21 isIncluded
, _
:= common
.KeywordsCheck(line
, "GPP_", "GPD")