Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 52 for MaxLen (0.16 sec)

  1. src/html/escape.go

    		dst1 := dst + utf8.EncodeRune(b[dst:], x[0])
    		return dst1 + utf8.EncodeRune(b[dst1:], x[1]), src + i
    	} else if !attribute {
    		maxLen := len(entityName) - 1
    		if maxLen > longestEntityWithoutSemicolon {
    			maxLen = longestEntityWithoutSemicolon
    		}
    		for j := maxLen; j > 1; j-- {
    			if x := entity[string(entityName[:j])]; x != 0 {
    				return dst + utf8.EncodeRune(b[dst:], x), src + j + 1
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 13 07:00:18 UTC 2020
    - 5K bytes
    - Viewed (0)
  2. src/internal/bytealg/index_amd64.go

    // license that can be found in the LICENSE file.
    
    package bytealg
    
    import "internal/cpu"
    
    const MaxBruteForce = 64
    
    func init() {
    	if cpu.X86.HasAVX2 {
    		MaxLen = 63
    	} else {
    		MaxLen = 31
    	}
    }
    
    // Cutover reports the number of failures of IndexByte we should tolerate
    // before switching over to Index.
    // n is the number of bytes processed so far.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Mar 04 19:49:44 UTC 2018
    - 617 bytes
    - Viewed (0)
  3. src/cmd/internal/objabi/flag.go

    			fmt.Print(debugHelpHeader)
    			maxLen, names := 0, []string{}
    			if f.debugSSA != nil {
    				maxLen = len("ssa/help")
    			}
    			for name := range f.tab {
    				if len(name) > maxLen {
    					maxLen = len(name)
    				}
    				names = append(names, name)
    			}
    			sort.Strings(names)
    			// Indent multi-line help messages.
    			nl := fmt.Sprintf("\n\t%-*s\t", maxLen, "")
    			for _, name := range names {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 23:08:09 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  4. operator/pkg/util/yaml.go

    	return res + "\n" + diff
    }
    
    func diffStringList(l1, l2 []string) string {
    	var maxLen int
    	var minLen int
    	var l1Max bool
    	res := ""
    	if len(l1)-len(l2) > 0 {
    		maxLen = len(l1)
    		minLen = len(l2)
    		l1Max = true
    	} else {
    		maxLen = len(l2)
    		minLen = len(l1)
    		l1Max = false
    	}
    
    	for i := 0; i < maxLen; i++ {
    		d := ""
    		if i >= minLen {
    			if l1Max {
    				d = yamlDiff(l1[i], "")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jan 14 02:41:27 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/Util.h

    extern "C" {
    #endif
    
    #define CUNIT_MAX_ENTITY_LEN 5
    /**< Maximum number of characters in a translated xml entity. */
    
    CU_EXPORT size_t CU_translate_special_characters(const char *szSrc, char *szDest, size_t maxlen);
    /**< 
     *  Converts special characters in szSrc to xml entity codes and stores 
     *  result in szDest.  Currently conversion of '&', '<', and '>' is supported.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. src/cmd/internal/objfile/disasm.go

    }
    
    // FileCache is a simple LRU cache of file contents.
    type FileCache struct {
    	files  *list.List
    	maxLen int
    }
    
    // NewFileCache returns a FileCache which can contain up to maxLen cached file contents.
    func NewFileCache(maxLen int) *FileCache {
    	return &FileCache{
    		files:  list.New(),
    		maxLen: maxLen,
    	}
    }
    
    // Line returns the source code line for the given file and line number.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder_test.go

    	d := `
    stuff: 1
    `
    	maxLen := 5 * 1024 * 1024
    	bufferLen := 4 * 1024
    	//  maxLen 5 M
    	dd := strings.Repeat(d, 512*1024)
    	r := NewDocumentDecoder(io.NopCloser(bytes.NewReader([]byte(dd[:maxLen-1]))))
    	b := make([]byte, bufferLen)
    	n, err := r.Read(b)
    	if err != io.ErrShortBuffer {
    		t.Fatalf("expected ErrShortBuffer: %d / %v", n, err)
    	}
    	b = make([]byte, maxLen)
    	n, err = r.Read(b)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 07:29:34 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  8. src/internal/bytealg/index_arm64.go

    package bytealg
    
    // Empirical data shows that using Index can get better
    // performance when len(s) <= 16.
    const MaxBruteForce = 16
    
    func init() {
    	// Optimize cases where the length of the substring is less than 32 bytes
    	MaxLen = 32
    }
    
    // Cutover reports the number of failures of IndexByte we should tolerate
    // before switching over to Index.
    // n is the number of bytes processed so far.
    // See the bytes.Index implementation for details.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 05:45:33 UTC 2019
    - 706 bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            }
    
            return Strings.fromOEMBytes(src, srcIndex, Strings.findTermination(src, srcIndex, maxLen), getConfig());
        }
    
    
        /**
         * 
         * @param src
         * @param srcIndex
         * @param srcEnd
         * @param maxLen
         * @param unicode
         * @return read string
         */
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
  10. src/go/ast/commentmap.go

    func summary(list []*CommentGroup) string {
    	const maxLen = 40
    	var buf bytes.Buffer
    
    	// collect comments text
    loop:
    	for _, group := range list {
    		// Note: CommentGroup.Text() does too much work for what we
    		//       need and would only replace this innermost loop.
    		//       Just do it explicitly.
    		for _, comment := range group.List {
    			if buf.Len() >= maxLen {
    				break loop
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top