Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for isMapped (0.11 sec)

  1. src/vendor/golang.org/x/net/idna/trie13.0.0.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build go1.16
    
    package idna
    
    // appendMapping appends the mapping for the respective rune. isMapped must be
    // true. A mapping is a categorization of a rune as defined in UTS #46.
    func (c info) appendMapping(b []byte, s string) []byte {
    	index := int(c >> indexShift)
    	if c&xorBit == 0 {
    		p := index
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 872 bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/net/idna/trie12.0.0.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !go1.16
    
    package idna
    
    // appendMapping appends the mapping for the respective rune. isMapped must be
    // true. A mapping is a categorization of a rune as defined in UTS #46.
    func (c info) appendMapping(b []byte, s string) []byte {
    	index := int(c >> indexShift)
    	if c&xorBit == 0 {
    		s := mappings[index:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 852 bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/idna/idna10.0.0.go

    			r, _ := utf8.DecodeRuneInString(s[i:])
    			return s, bidi, runeError(r)
    		}
    		i += sz
    	}
    	return s, bidi, nil
    }
    
    func (c info) isBidi(s string) bool {
    	if !c.isMapped() {
    		return c&attributesMask == rtl
    	}
    	// TODO: also store bidi info for mapped data. This is possible, but a bit
    	// cumbersome and not for the common case.
    	p, _ := bidi.LookupString(s)
    	switch p.Class() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  4. src/sync/atomic/type.go

    func (x *Bool) Swap(new bool) (old bool) { return SwapUint32(&x.v, b32(new)) != 0 }
    
    // CompareAndSwap executes the compare-and-swap operation for the boolean value x.
    func (x *Bool) CompareAndSwap(old, new bool) (swapped bool) {
    	return CompareAndSwapUint32(&x.v, b32(old), b32(new))
    }
    
    // b32 returns a uint32 0 or 1 representing b.
    func b32(b bool) uint32 {
    	if b {
    		return 1
    	}
    	return 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. src/sync/atomic/doc.go

    func CompareAndSwapInt32(addr *int32, old, new int32) (swapped bool)
    
    // CompareAndSwapInt64 executes the compare-and-swap operation for an int64 value.
    // Consider using the more ergonomic and less error-prone [Int64.CompareAndSwap] instead
    // (particularly if you target 32-bit platforms; see the bugs section).
    func CompareAndSwapInt64(addr *int64, old, new int64) (swapped bool)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. src/sync/atomic/atomic_test.go

    		x.i = val
    		if !CompareAndSwapInt32(&x.i, val, val+1) {
    			t.Fatalf("should have swapped %#x %#x", val, val+1)
    		}
    		if x.i != val+1 {
    			t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
    		}
    		x.i = val + 1
    		if CompareAndSwapInt32(&x.i, val, val+2) {
    			t.Fatalf("should not have swapped %#x %#x", val, val+2)
    		}
    		if x.i != val+1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
  7. src/sync/map_reference_test.go

    	Store(key, value any)
    	LoadOrStore(key, value any) (actual any, loaded bool)
    	LoadAndDelete(key any) (value any, loaded bool)
    	Delete(any)
    	Swap(key, value any) (previous any, loaded bool)
    	CompareAndSwap(key, old, new any) (swapped bool)
    	CompareAndDelete(key, old any) (deleted bool)
    	Range(func(key, value any) (shouldContinue bool))
    	Clear()
    }
    
    var (
    	_ mapInterface = &RWMutexMap{}
    	_ mapInterface = &DeepCopyMap{}
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/internal/syscall/unix/siginfo_linux.go

    // this struct corresponds to one used when Signo is SIGCHLD.
    //
    // NOTE fields are exported to be used by TestSiginfoChildLayout.
    type SiginfoChild struct {
    	Signo       int32
    	siErrnoCode                // Two int32 fields, swapped on MIPS.
    	_           [is64bit]int32 // Extra padding for 64-bit hosts only.
    
    	// End of common part. Beginning of signal-specific part.
    
    	Pid    int32
    	Uid    uint32
    	Status int32
    
    	// Pad to 128 bytes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 01:23:00 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. src/sync/map.go

    func (m *Map) CompareAndSwap(key, old, new any) (swapped bool) {
    	read := m.loadReadOnly()
    	if e, ok := read.m[key]; ok {
    		return e.tryCompareAndSwap(old, new)
    	} else if !read.amended {
    		return false // No existing value for key.
    	}
    
    	m.mu.Lock()
    	defer m.mu.Unlock()
    	read = m.loadReadOnly()
    	swapped = false
    	if e, ok := read.m[key]; ok {
    		swapped = e.tryCompareAndSwap(old, new)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  10. platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/AbstractSourcesAndJavadocJarsIntegrationTest.groovy

            ideFileContainsGradleApi("gradle-api")
        }
    
        @ToBeFixedForConfigurationCache
        @Requires(UnitTestPreconditions.StableGroovy) // localGroovy() version cannot be swapped-out when a snapshot Groovy build is used
        def "sources for localGroovy() are downloaded and attached"() {
            given:
            def repo = givenGroovyExistsInGradleRepo()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 20.9K bytes
    - Viewed (0)
Back to top