Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isMaxLength (0.38 sec)

  1. 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)
  2. 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