Home
last modified time | relevance | path

Searched refs:pat (Results 1 – 7 of 7) sorted by relevance

/build/blueprint/gotestmain/
Dgotestmain.go143 func MatchString(pat, str string) (result bool, err error) {
144 if matchRe == nil || matchPat != pat {
145 matchPat = pat
154 func (matchString) MatchString(pat, str string) (bool, error) {
155 return MatchString(pat, str)
/build/soong/android/
Dutil.go481 func substPattern(pat, repl, str string) string { argument
482 ps := strings.SplitN(pat, "%", 2)
484 if str == pat {
513 func matchPattern(pat, str string) bool { argument
514 i := strings.IndexByte(pat, '%')
516 return pat == str
518 return strings.HasPrefix(str, pat[:i]) && strings.HasSuffix(str, pat[i+1:])
/build/blueprint/parser/
Dprinter.go198 for i, pat := range c.Patterns {
199 switch pat := pat.(type) {
201 if pat.Value != default_select_branch_name {
202 p.printToken(strconv.Quote(pat.Value), pat.LiteralPos)
204 p.printToken("default", pat.LiteralPos)
208 if pat.Value {
211 p.printToken(s, pat.LiteralPos)
/build/blueprint/proptools/
Dunpack.go459 for i, pat := range c.Patterns {
460 switch pat := pat.(type) {
462 if pat.Value == "__soong_conditions_default__" {
466 patterns[i].stringValue = pat.Value
470 patterns[i].boolValue = pat.Value
Dconfigurable.go490 for i, pat := range case_.patterns {
491 if !pat.matchesValueType(values[i]) {
492 … %s to have type %s, found %s", c.conditions[i].String(), values[i].typ.String(), pat.typ.String())
495 if !pat.matchesValue(values[i]) {
/build/make/tools/warn/
Dcpp_warn_patterns.py527 for pat in i['patterns']:
528 i['compiled_patterns'].append(re.compile(pat))
/build/make/tools/releasetools/
Dota_utils.py1088 return any([fnmatch.fnmatch(filename, pat) for pat in pattersn])