- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for IsPunct (0.16 sec)
-
src/unicode/graphic.go
func IsNumber(r rune) bool { if uint32(r) <= MaxLatin1 { return properties[uint8(r)]&pN != 0 } return isExcludingLatin(Number, r) } // IsPunct reports whether the rune is a Unicode punctuation character // (category [P]). func IsPunct(r rune) bool { if uint32(r) <= MaxLatin1 { return properties[uint8(r)]&pP != 0 } return Is(Punct, r) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 20:02:46 UTC 2023 - 4.4K bytes - Viewed (0) -
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) -
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) -
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) -
src/cmd/vendor/golang.org/x/build/relnote/links.go
}, true } // isLinkAdjacentRune reports whether r can be adjacent to a symbol link. // The logic is the same as the go/doc/comment package. func isLinkAdjacentRune(r rune) bool { return unicode.IsPunct(r) || r == ' ' || r == '\t' || r == '\n' } // splitRef splits s into a package and possibly a symbol. // Examples: // // splitRef("math.Max") => ("math", "Max", true)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 8.2K bytes - Viewed (0) -
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) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"IsGraphic", Func, 0}, {"IsLetter", Func, 0}, {"IsLower", Func, 0}, {"IsMark", Func, 0}, {"IsNumber", Func, 0}, {"IsOneOf", Func, 0}, {"IsPrint", Func, 0}, {"IsPunct", Func, 0}, {"IsSpace", Func, 0}, {"IsSymbol", Func, 0}, {"IsTitle", Func, 0}, {"IsUpper", Func, 0}, {"Javanese", Var, 0}, {"Join_Control", Var, 0}, {"Kaithi", Var, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)