Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 9,678 for String4 (0.14 sec)

  1. src/internal/syscall/windows/registry/registry_test.go

    	{Type: registry.MULTI_SZ, Name: "MultiString1", Value: []string{"a", "b", "c"}},
    	{Type: registry.MULTI_SZ, Name: "MultiString2", Value: []string{"abc", "", "cba"}},
    	{Type: registry.MULTI_SZ, Name: "MultiString3", Value: []string{""}},
    	{Type: registry.MULTI_SZ, Name: "MultiString4", Value: []string{"abcdef"}},
    	{Type: registry.MULTI_SZ, Name: "MultiString5", Value: []string{"\000"}, WillFail: true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:19:00 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. src/net/netip/netip.go

    // splitAddrPort splits s into an IP address string and a port
    // string. It splits strings shaped like "foo:bar" or "[foo]:bar",
    // without further validating the substrings. v6 indicates whether the
    // ip string should parse as an IPv6 address or an IPv4 address, in
    // order for s to be a valid ip:port string.
    func splitAddrPort(s string) (ip, port string, v6 bool, err error) {
    	i := bytealg.LastIndexByteString(s, ':')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  3. src/internal/stringslite/strings.go

    	}
    	return s[:len(s)-len(suffix)], true
    }
    
    func TrimPrefix(s, prefix string) string {
    	if HasPrefix(s, prefix) {
    		return s[len(prefix):]
    	}
    	return s
    }
    
    func TrimSuffix(s, suffix string) string {
    	if HasSuffix(s, suffix) {
    		return s[:len(s)-len(suffix)]
    	}
    	return s
    }
    
    func Clone(s string) string {
    	if len(s) == 0 {
    		return ""
    	}
    	b := make([]byte, len(s))
    	copy(b, s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 01:23:42 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/strings/strings.go

    		return b.String()
    	}
    	return Map(unicode.ToLower, s)
    }
    
    // ToTitle returns a copy of the string s with all Unicode letters mapped to
    // their Unicode title case.
    func ToTitle(s string) string { return Map(unicode.ToTitle, s) }
    
    // ToUpperSpecial returns a copy of the string s with all Unicode letters mapped to their
    // upper case using the case mapping specified by c.
    func ToUpperSpecial(c unicode.SpecialCase, s string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  5. pilot/pkg/security/authz/matcher/string.go

    	case v == "*":
    		return StringMatcherRegex(".+")
    	case strings.HasPrefix(v, "*"):
    		if prefix == "" {
    			return StringMatcherSuffix(strings.TrimPrefix(v, "*"), false)
    		}
    		return StringMatcherRegex(prefix + ".*" + strings.TrimPrefix(v, "*"))
    	case strings.HasSuffix(v, "*"):
    		return StringMatcherPrefix(prefix+strings.TrimSuffix(v, "*"), false)
    	default:
    		return StringMatcherExact(prefix+v, false)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 25 10:39:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go

    	Run:      run,
    }
    
    // describe returns a string describing the type typ contained within the type
    // set of inType. If non-empty, inName is used as the name of inType (this is
    // necessary so that we can use alias type names that may not be reachable from
    // inType itself).
    func describe(typ, inType types.Type, inName string) string {
    	name := inName
    	if typ != inType {
    		name = typeName(typ)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. src/runtime/string.go

    		b = b[len(x):]
    	}
    	return s
    }
    
    func concatstring2(buf *tmpBuf, a0, a1 string) string {
    	return concatstrings(buf, []string{a0, a1})
    }
    
    func concatstring3(buf *tmpBuf, a0, a1, a2 string) string {
    	return concatstrings(buf, []string{a0, a1, a2})
    }
    
    func concatstring4(buf *tmpBuf, a0, a1, a2, a3 string) string {
    	return concatstrings(buf, []string{a0, a1, a2, a3})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-string.h

    #endif
    
      // Compares two C strings.  Returns true iff they have the same content.
      //
      // Unlike strcmp(), this function can handle NULL argument(s).  A
      // NULL C string is considered different to any non-NULL C string,
      // including the empty string.
      static bool CStringEquals(const char* lhs, const char* rhs);
    
      // Converts a wide C string to a String using the UTF-8 encoding.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. cmd/fieldnamedocscheck/field_name_docs_check.go

    limitations under the License.
    */
    
    package main
    
    import (
    	"fmt"
    	"os"
    	"regexp"
    	"strings"
    
    	flag "github.com/spf13/pflag"
    	kruntime "k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/klog/v2"
    )
    
    var (
    	typeSrc = flag.StringP("type-src", "s", "", "From where we are going to read the types")
    	re      = regexp.MustCompile("`(\\b\\w+\\b)`")
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 18:32:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/IsolatableSerializerRegistryTest.groovy

        def encoder = new KryoBackedEncoder(outputStream)
    
        def "can serialize/deserialize isolated String values"() {
            def string1 = "foo"
            def string2 = "bar"
            Isolatable<?>[] isolatables = [isolatableFactory.isolate(string1), isolatableFactory.isolate(string2)]
    
            when:
            serialize(isolatables)
    
            and:
            Isolatable<?>[] newIsolatables = deserialize()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 14:30:36 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top