Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IsPunct (0.18 sec)

  1. src/go/doc/comment/parse.go

    	if before != "" {
    		r, _ := utf8.DecodeLastRuneInString(before)
    		if !unicode.IsPunct(r) && r != ' ' && r != '\t' && r != '\n' {
    			return nil, false
    		}
    	}
    	if after != "" {
    		r, _ := utf8.DecodeRuneInString(after)
    		if !unicode.IsPunct(r) && r != ' ' && r != '\t' && r != '\n' {
    			return nil, false
    		}
    	}
    	text = strings.TrimPrefix(text, "*")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 33.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/rsc.io/markdown/inline.go

    	}
    	return strings.NewReplacer(list...)
    }()
    
    func isPunct(c byte) bool {
    	return '!' <= c && c <= '/' || ':' <= c && c <= '@' || '[' <= c && c <= '`' || '{' <= c && c <= '~'
    }
    
    func parseEscape(p *parseState, s string, i int) (Inline, int, int, bool) {
    	if i+1 < len(s) {
    		c := s[i+1]
    		if isPunct(c) {
    			return &Escaped{Plain{s[i+1 : i+2]}}, i, i + 2, true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. src/unicode/letter_test.go

    		}
    		if IsNumber(r) {
    			t.Errorf("IsNumber(0x%x - 1<<31) = true, want false", base)
    		}
    		if IsPrint(r) {
    			t.Errorf("IsPrint(0x%x - 1<<31) = true, want false", base)
    		}
    		if IsPunct(r) {
    			t.Errorf("IsPunct(0x%x - 1<<31) = true, want false", base)
    		}
    		if IsSpace(r) {
    			t.Errorf("IsSpace(0x%x - 1<<31) = true, want false", base)
    		}
    		if IsSymbol(r) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 09 01:46:03 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/podcgroupns.go

    // dashes, which is how the UID is represented within Kubernetes.
    func canonicalizePodUID(uid string) types.UID {
    	return types.UID(strings.Map(func(r rune) rune {
    		if unicode.IsPunct(r) {
    			r = '-'
    		}
    		return r
    	}, uid))
    }
    
    // Cgroup represents a linux cgroup.
    type Cgroup struct {
    	HierarchyID    string
    	ControllerList string
    	GroupPath      string
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top