Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for FoldCase (0.17 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/compile/internal/types2/typeset.go

    // LookupMethod returns the index of and method with matching package and name, or (-1, nil).
    func (s *_TypeSet) LookupMethod(pkg *Package, name string, foldCase bool) (int, *Func) {
    	return methodIndex(s.methods, pkg, name, foldCase)
    }
    
    func (s *_TypeSet) String() string {
    	switch {
    	case s.IsEmpty():
    		return "∅"
    	case s.IsAll():
    		return "𝓤"
    	}
    
    	hasMethods := len(s.methods) > 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. src/go/types/typeset.go

    // LookupMethod returns the index of and method with matching package and name, or (-1, nil).
    func (s *_TypeSet) LookupMethod(pkg *Package, name string, foldCase bool) (int, *Func) {
    	return methodIndex(s.methods, pkg, name, foldCase)
    }
    
    func (s *_TypeSet) String() string {
    	switch {
    	case s.IsEmpty():
    		return "∅"
    	case s.IsAll():
    		return "𝓤"
    	}
    
    	hasMethods := len(s.methods) > 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. src/regexp/syntax/parse_test.go

    	{`[[:upper:]]`, `cc{0x41-0x5a 0x61-0x7a 0x17f 0x212a}`},
    	{`[[:lower:]]`, `cc{0x41-0x5a 0x61-0x7a 0x17f 0x212a}`},
    }
    
    func TestParseFoldCase(t *testing.T) {
    	testParseDump(t, foldcaseTests, FoldCase)
    }
    
    var literalTests = []parseTest{
    	{"(|)^$.[*+?]{5,10},\\", "str{(|)^$.[*+?]{5,10},\\}"},
    }
    
    func TestParseLiteral(t *testing.T) {
    	testParseDump(t, literalTests, Literal)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:02:30 UTC 2023
    - 16.2K bytes
    - Viewed (0)
Back to top