Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isMaxLength (0.12 sec)

  1. src/cmd/vendor/github.com/ianlancetaylor/demangle/rust.go

    		suffix = name[dot:]
    		name = name[:dot]
    	}
    
    	name = name[2:]
    	rst := &rustState{orig: name, str: name}
    
    	for _, o := range options {
    		if o == NoTemplateParams {
    			rst.noGenericArgs = true
    		} else if isMaxLength(o) {
    			rst.max = maxLength(o)
    		}
    	}
    
    	rst.symbolName()
    
    	if len(rst.str) > 0 {
    		rst.fail("unparsed characters at end of mangled name")
    	}
    
    	if suffix != "" {
    		llvmStyle := false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    func MaxLength(pow int) Option {
    	if pow <= 0 || pow > 30 {
    		panic("demangle: invalid MaxLength value")
    	}
    	return Option(pow << maxLengthShift)
    }
    
    // isMaxLength reports whether an Option holds a maximum length.
    func isMaxLength(opt Option) bool {
    	return opt&maxLengthMask != 0
    }
    
    // maxLength returns the maximum length stored in an Option.
    func maxLength(opt Option) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    	max := 0
    	for _, o := range options {
    		switch {
    		case o == NoTemplateParams:
    			tparams = false
    		case o == NoEnclosingParams:
    			enclosingParams = false
    		case o == LLVMStyle:
    			llvmStyle = true
    		case isMaxLength(o):
    			max = maxLength(o)
    		}
    	}
    
    	ps := printState{
    		tparams:         tparams,
    		enclosingParams: enclosingParams,
    		llvmStyle:       llvmStyle,
    		max:             max,
    		scopes:          1,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
Back to top