- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for RuneCountInString (0.1 sec)
-
schema/naming.go
formattedName := strings.ReplaceAll(strings.Join([]string{ prefix, table, name, }, "_"), ".", "_") if ns.IdentifierMaxLength == 0 { ns.IdentifierMaxLength = 64 } if utf8.RuneCountInString(formattedName) > ns.IdentifierMaxLength { h := sha1.New() h.Write([]byte(formattedName)) bs := h.Sum(nil) formattedName = formattedName[0:ns.IdentifierMaxLength-8] + hex.EncodeToString(bs)[:8] }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Jun 12 03:46:59 UTC 2024 - 5.3K bytes - Viewed (0) -
src/bufio/scan_test.go
if got != expect { t.Errorf("#%d: %d: expected %q got %q", n, i, expect, got) } } if s.Scan() { t.Errorf("#%d: scan ran too long, got %q", n, s.Text()) } testRuneCount := utf8.RuneCountInString(test) if runeCount != testRuneCount { t.Errorf("#%d: termination expected at %d; got %d", n, testRuneCount, runeCount) } err := s.Err() if err != nil { t.Errorf("#%d: %v", n, err) } } }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0) -
api/go1.txt
pkg unicode/utf8, func FullRune([]uint8) bool pkg unicode/utf8, func FullRuneInString(string) bool pkg unicode/utf8, func RuneCount([]uint8) int pkg unicode/utf8, func RuneCountInString(string) int pkg unicode/utf8, func RuneLen(int32) int pkg unicode/utf8, func RuneStart(uint8) bool pkg unicode/utf8, func Valid([]uint8) bool
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)