• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package cnl
2
3import "review.coreboot.org/coreboot.git/util/intelp2m/platforms/common"
4
5type InheritanceTemplate interface {
6	KeywordCheck(line string) bool
7}
8
9// GroupNameExtract - This function extracts the group ID, if it exists in a row
10// line      : string from the configuration file
11// return
12//     bool   : true if the string contains a group identifier
13//     string : group identifier
14func (PlatformSpecific) GroupNameExtract(line string) (bool, string) {
15	return common.KeywordsCheck(line,
16		"GPP_A", "GPP_B", "GPP_G", "GPP_D", "GPP_F", "GPP_H", "GPD", "GPP_C", "GPP_E")
17}
18
19// KeywordCheck - This function is used to filter parsed lines of the configuration file and
20//                returns true if the keyword is contained in the line.
21// line      : string from the configuration file
22func (platform PlatformSpecific) KeywordCheck(line string) bool {
23	return platform.InheritanceTemplate.KeywordCheck(line)
24}
25