Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for FoldCase (0.24 sec)

  1. src/cmd/compile/internal/types2/lookup.go

    	}
    	return lookupFieldOrMethod(T, addressable, pkg, name, false)
    }
    
    // lookupFieldOrMethod is like LookupFieldOrMethod but with the additional foldCase parameter
    // (see Object.sameId for the meaning of foldCase).
    func lookupFieldOrMethod(T Type, addressable bool, pkg *Package, name string, foldCase bool) (obj Object, index []int, indirect bool) {
    	// Methods cannot be associated to a named pointer type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  2. src/go/types/lookup.go

    	}
    	return lookupFieldOrMethod(T, addressable, pkg, name, false)
    }
    
    // lookupFieldOrMethod is like LookupFieldOrMethod but with the additional foldCase parameter
    // (see Object.sameId for the meaning of foldCase).
    func lookupFieldOrMethod(T Type, addressable bool, pkg *Package, name string, foldCase bool) (obj Object, index []int, indirect bool) {
    	// Methods cannot be associated to a named pointer type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  3. src/regexp/syntax/compile.go

    	f.nullable = false
    	i := &c.p.Inst[f.i]
    	i.Rune = r
    	flags &= FoldCase // only relevant flag is FoldCase
    	if len(r) != 1 || unicode.SimpleFold(r[0]) == r[0] {
    		// and sometimes not even that
    		flags &^= FoldCase
    	}
    	i.Arg = uint32(flags)
    	f.out = makePatchList(f.i << 1)
    
    	// Special cases for exec machine.
    	switch {
    	case flags&FoldCase == 0 && (len(r) == 1 || len(r) == 2 && r[0] == r[1]):
    		i.Op = InstRune1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 13 14:52:20 UTC 2021
    - 6.8K bytes
    - Viewed (0)
  4. src/regexp/syntax/prog.go

    	if i.op() != InstRune || len(i.Rune) != 1 {
    		return "", i.Op == InstMatch
    	}
    
    	// Have prefix; gather characters.
    	var buf strings.Builder
    	for i.op() == InstRune && len(i.Rune) == 1 && Flags(i.Arg)&FoldCase == 0 && i.Rune[0] != utf8.RuneError {
    		buf.WriteRune(i.Rune[0])
    		i = p.skipNop(i.Out)
    	}
    	return buf.String(), i.Op == InstMatch
    }
    
    // StartCond returns the leading empty-width conditions that must
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. src/regexp/onepass.go

    		return "", i.Op == syntax.InstMatch, uint32(p.Start)
    	}
    
    	// Have prefix; gather characters.
    	var buf strings.Builder
    	for iop(i) == syntax.InstRune && len(i.Rune) == 1 && syntax.Flags(i.Arg)&syntax.FoldCase == 0 && i.Rune[0] != utf8.RuneError {
    		buf.WriteRune(i.Rune[0])
    		pc, i = i.Out, &p.Inst[i.Out]
    	}
    	if i.Op == syntax.InstEmptyWidth &&
    		syntax.EmptyOp(i.Arg)&syntax.EmptyEndText != 0 &&
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. src/regexp/syntax/parse.go

    	p.numRunes += len(re.Rune)
    	if re.Op == OpCharClass && len(re.Rune) == 2 && re.Rune[0] == re.Rune[1] {
    		// Single rune.
    		if p.maybeConcat(re.Rune[0], p.flags&^FoldCase) {
    			return nil
    		}
    		re.Op = OpLiteral
    		re.Rune = re.Rune[:1]
    		re.Flags = p.flags &^ FoldCase
    	} else if re.Op == OpCharClass && len(re.Rune) == 4 &&
    		re.Rune[0] == re.Rune[1] && re.Rune[2] == re.Rune[3] &&
    		unicode.SimpleFold(re.Rune[0]) == re.Rune[2] &&
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/named.go

    	}
    }
    
    // methodIndex returns the index of the method with the given name.
    // If foldCase is set, capitalization in the name is ignored.
    // The result is negative if no such method exists.
    func (t *Named) methodIndex(name string, foldCase bool) int {
    	if name == "_" {
    		return -1
    	}
    	if foldCase {
    		for i, m := range t.methods {
    			if strings.EqualFold(m.name, name) {
    				return i
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. src/go/types/named.go

    	}
    }
    
    // methodIndex returns the index of the method with the given name.
    // If foldCase is set, capitalization in the name is ignored.
    // The result is negative if no such method exists.
    func (t *Named) methodIndex(name string, foldCase bool) int {
    	if name == "_" {
    		return -1
    	}
    	if foldCase {
    		for i, m := range t.methods {
    			if strings.EqualFold(m.name, name) {
    				return i
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/object.go

    	setParent(*Scope)
    
    	// sameId reports whether obj.Id() and Id(pkg, name) are the same.
    	// If foldCase is true, names are considered equal if they are equal with case folding
    	// and their packages are ignored (e.g., pkg1.m, pkg1.M, pkg2.m, and pkg2.M are all equal).
    	sameId(pkg *Package, name string, foldCase bool) bool
    
    	// scopePos returns the start position of the scope of this Object
    	scopePos() syntax.Pos
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  10. src/go/types/object.go

    	setParent(*Scope)
    
    	// sameId reports whether obj.Id() and Id(pkg, name) are the same.
    	// If foldCase is true, names are considered equal if they are equal with case folding
    	// and their packages are ignored (e.g., pkg1.m, pkg1.M, pkg2.m, and pkg2.M are all equal).
    	sameId(pkg *Package, name string, foldCase bool) bool
    
    	// scopePos returns the start position of the scope of this Object
    	scopePos() token.Pos
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top