- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 45 for stringSlice (0.18 sec)
-
src/internal/filepathlite/path.go
return false } hasDots := false for p := path; p != ""; { var part string part, p, _ = stringslite.Cut(p, "/") if part == "." || part == ".." { hasDots = true break } } if hasDots { path = Clean(path) } if path == ".." || stringslite.HasPrefix(path, "../") { return false } return true } // Localize is filepath.Localize.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:50 UTC 2024 - 5.8K bytes - Viewed (0) -
src/internal/poll/fd_plan9.go
} // ReadUnlock wraps FD.readUnlock. func (fd *FD) ReadUnlock() { fd.readUnlock() } func isHangup(err error) bool { return err != nil && stringslite.HasSuffix(err.Error(), "Hangup") } func isInterrupted(err error) bool { return err != nil && stringslite.HasSuffix(err.Error(), "interrupted") } // IsPollDescriptor reports whether fd is the descriptor being used by the poller. // This is only used for testing.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 5.4K bytes - Viewed (0) -
src/runtime/export_debug_test.go
// Double-check m. if getg().m != h.mp { println("trap on wrong M", getg().m, h.mp) return false } f := findfunc(ctxt.sigpc()) if !(stringslite.HasPrefix(funcname(f), "runtime.debugCall") || stringslite.HasPrefix(funcname(f), "debugCall")) { println("trap in unknown function", funcname(f)) return false } if !sigctxtAtTrapInstruction(ctxt) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 5.1K bytes - Viewed (0) -
src/unique/clone.go
// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package unique import ( "internal/abi" "internal/stringslite" "unsafe" ) // clone makes a copy of value, and may update string values found in value // with a cloned version of those strings. The purpose of explicitly cloning
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 05 00:24:21 UTC 2024 - 2.6K bytes - Viewed (0) -
src/runtime/os3_plan9.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime import ( "internal/abi" "internal/goarch" "internal/stringslite" "unsafe" ) // May run during STW, so write barriers are not allowed. // //go:nowritebarrierrec func sighandler(_ureg *ureg, note *byte, gp *g) int { gsignal := getg() mp := gsignal.m
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 4K bytes - Viewed (0) -
src/strconv/atoc.go
package strconv import "internal/stringslite" const fnParseComplex = "ParseComplex" // convErr splits an error returned by parseFloatPrefix // into a syntax or range error for ParseComplex. func convErr(err error, s string) (syntax, range_ error) { if x, ok := err.(*NumError); ok { x.Func = fnParseComplex x.Num = stringslite.Clone(s) if x.Err == ErrRange { return nil, x } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 05 00:24:26 UTC 2024 - 3.1K bytes - Viewed (0) -
src/internal/stringslite/strings.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package stringslite implements a subset of strings, // only using packages that may be imported by "os". // // Tests for these functions are in the strings package. package stringslite import ( "internal/bytealg" "unsafe" ) func HasPrefix(s, prefix string) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 04 01:23:42 UTC 2024 - 2.9K bytes - Viewed (0) -
src/strings/strings.go
return b.String() } // HasPrefix reports whether the string s begins with prefix. func HasPrefix(s, prefix string) bool { return stringslite.HasPrefix(s, prefix) } // HasSuffix reports whether the string s ends with suffix. func HasSuffix(s, suffix string) bool { return stringslite.HasSuffix(s, suffix) } // Map returns a copy of the string s with all its characters modified
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:48:16 UTC 2024 - 31.2K bytes - Viewed (0) -
src/internal/filepathlite/path_windows.go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package filepathlite import ( "internal/bytealg" "internal/stringslite" "syscall" ) const ( Separator = '\\' // OS-specific path separator ListSeparator = ';' // OS-specific path list separator ) func IsPathSeparator(c uint8) bool { return c == '\\' || c == '/'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:50 UTC 2024 - 8.5K bytes - Viewed (0) -
src/net/interface_plan9.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package net import ( "errors" "internal/itoa" "internal/stringslite" "os" ) // If the ifindex is zero, interfaceTable returns mappings of all // network interfaces. Otherwise it returns a mapping of a specific // interface. func interfaceTable(ifindex int) ([]Interface, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 4.7K bytes - Viewed (0)