Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for makeTag (0.41 sec)

  1. src/cmd/vendor/golang.org/x/text/language/parse.go

    	defer func() {
    		if recover() != nil {
    			t = Tag{}
    			err = language.ErrSyntax
    		}
    	}()
    
    	tt, err := language.Parse(s)
    	if err != nil {
    		return makeTag(tt), err
    	}
    	tt, changed := canonicalize(c, tt)
    	if changed {
    		tt.RemakeString()
    	}
    	return makeTag(tt), err
    }
    
    // Compose creates a Tag from individual parts, which may be of type Tag, Base,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/language/language.go

    )
    
    // Tag represents a BCP 47 language tag. It is used to specify an instance of a
    // specific language or locale. All language tag values are guaranteed to be
    // well-formed.
    type Tag compact.Tag
    
    func makeTag(t language.Tag) (tag Tag) {
    	return Tag(compact.Make(t))
    }
    
    func (t *Tag) tag() language.Tag {
    	return (*compact.Tag)(t).Tag()
    }
    
    func (t *Tag) isCompact() bool {
    	return (*compact.Tag)(t).IsCompact()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/language/match.go

    	// TODO: add preferred region to -u-rg-.
    	if e := w.Extensions(); len(e) > 0 {
    		b := language.Builder{}
    		b.SetTag(tt)
    		for _, e := range e {
    			b.AddExt(e)
    		}
    		tt = b.Make()
    	}
    	return makeTag(tt), index, c
    }
    
    // ErrMissingLikelyTagsData indicates no information was available
    // to compute likely values of missing tags.
    var ErrMissingLikelyTagsData = errors.New("missing likely tags data")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/builtins.go

    					if check.recordTypes() {
    						sig := makeSig(S, S, y.typ)
    						sig.variadic = true
    						check.recordBuiltinType(call.Fun, sig)
    					}
    					x.mode = value
    					x.typ = S
    					break
    				}
    			}
    		}
    
    		// check general case by creating custom signature
    		sig := makeSig(S, S, NewSlice(T)) // []T required for variadic signature
    		sig.variadic = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. src/go/types/builtins.go

    					if check.recordTypes() {
    						sig := makeSig(S, S, y.typ)
    						sig.variadic = true
    						check.recordBuiltinType(call.Fun, sig)
    					}
    					x.mode = value
    					x.typ = S
    					break
    				}
    			}
    		}
    
    		// check general case by creating custom signature
    		sig := makeSig(S, S, NewSlice(T)) // []T required for variadic signature
    		sig.variadic = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  6. src/archive/tar/writer_test.go

    	)
    
    	type (
    		makeReg struct {
    			size    int64
    			wantStr string
    		}
    		makeSparse struct {
    			makeReg makeReg
    			sph     sparseHoles
    			size    int64
    		}
    		fileMaker any // makeReg | makeSparse
    	)
    
    	vectors := []struct {
    		maker fileMaker
    		tests []testFnc
    	}{{
    		maker: makeReg{0, ""},
    		tests: []testFnc{
    			testRemaining{0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/CachingClassLoader.java

        private static final Object MISSING = new Object();
        private final ConcurrentMap<String, Object> loadedClasses = new MapMaker().weakValues().makeMap();
        private final ConcurrentMap<String, Object> resources = new MapMaker().makeMap();
        private final ClassLoader parent;
    
        static {
            try {
                ClassLoader.registerAsParallelCapable();
            } catch (NoSuchMethodError ignore) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/go/constant/example_test.go

    import (
    	"fmt"
    	"go/constant"
    	"go/token"
    	"math"
    	"slices"
    )
    
    func Example_complexNumbers() {
    	// Create the complex number 2.3 + 5i.
    	ar := constant.MakeFloat64(2.3)
    	ai := constant.MakeImag(constant.MakeInt64(5))
    	a := constant.BinaryOp(ar, token.ADD, ai)
    
    	// Compute (2.3 + 5i) * 11.
    	b := constant.MakeUint64(11)
    	c := constant.BinaryOp(a, token.MUL, b)
    
    	// Convert c into a complex128.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java

        // GWT technically only supports concurrencyLevel == 1, but we silently
        // ignore other positive values.
        return this;
      }
    
      public <K, V> ConcurrentMap<K, V> makeMap() {
        return new ConcurrentHashMap<K, V>(initialCapacity);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. src/runtime/netpoll.go

    	c.first = pd.link
    	unlock(&c.lock)
    	return pd
    }
    
    // makeArg converts pd to an interface{}.
    // makeArg does not do any allocation. Normally, such
    // a conversion requires an allocation because pointers to
    // types which embed runtime/internal/sys.NotInHeap (which pollDesc is)
    // must be stored in interfaces indirectly. See issue 42076.
    func (pd *pollDesc) makeArg() (i any) {
    	x := (*eface)(unsafe.Pointer(&i))
    	x._type = pdType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 20.7K bytes
    - Viewed (0)
Back to top