- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for IsPunct (0.4 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/unicode/graphic_test.go
if got != want { t.Errorf("%U incorrect: got %t; want %t", i, got, want) } } } func TestIsPunctLatin1(t *testing.T) { for i := rune(0); i <= MaxLatin1; i++ { got := IsPunct(i) want := Is(Punct, i) if got != want { t.Errorf("%U incorrect: got %t; want %t", i, got, want) } } } func TestIsSpaceLatin1(t *testing.T) { for i := rune(0); i <= MaxLatin1; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 2.6K 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/unicode/example_test.go
fmt.Println("\tis number rune") } if unicode.IsPrint(c) { fmt.Println("\tis printable rune") } if !unicode.IsPrint(c) { fmt.Println("\tis not printable rune") } if unicode.IsPunct(c) { fmt.Println("\tis punct rune") } if unicode.IsSpace(c) { fmt.Println("\tis space rune") } if unicode.IsSymbol(c) { fmt.Println("\tis symbol rune") } if unicode.IsTitle(c) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 08 00:18:29 UTC 2021 - 5.2K 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) -
src/go/internal/gccgoimporter/testdata/unicode.gox
func IsMark (r <type -21>) <type -15>; func IsNumber (r <type -21>) <type -15>; func IsOneOf (ranges <type 23 [] <type 24 *<type 2>>>, r <type -21>) <type -15>; func IsPrint (r <type -21>) <type -15>; func IsPunct (r <type -21>) <type -15>; func IsSpace (r <type -21>) <type -15>; func IsSymbol (r <type -21>) <type -15>; func IsTitle (r <type -21>) <type -15>; func IsUpper (r <type -21>) <type -15>; var Javanese <type 1>;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 30 21:33:51 UTC 2021 - 7.3K 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)