Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,306 for case1 (0.04 sec)

  1. src/cmd/vendor/golang.org/x/text/cases/cases.go

    }
    
    // Upper returns a Caser for language-specific uppercasing.
    func Upper(t language.Tag, opts ...Option) Caser {
    	return Caser{makeUpper(t, getOpts(opts...))}
    }
    
    // Lower returns a Caser for language-specific lowercasing.
    func Lower(t language.Tag, opts ...Option) Caser {
    	return Caser{makeLower(t, getOpts(opts...))}
    }
    
    // Title returns a Caser for language-specific title casing. It uses an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/cases/trieval.go

    )
    
    // The case mode bits encodes the case type of a rune. This includes uncased,
    // title, upper and lower case and case ignorable. (For a definition of these
    // terms see Chapter 3 of The Unicode Standard Core Specification.) In some rare
    // cases, a rune can be both cased and case-ignorable. This is encoded by
    // cIgnorableCased. A rune of this type is always lower case. Some runes are
    // cased while not having a mapping.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/cases/icu.go

    */
    import "C"
    
    import "unsafe"
    
    func doICU(tag, caser, input string) string {
    	err := C.UErrorCode(0)
    	loc := C.CString(tag)
    	cm := C.ucasemap_open(loc, C.uint32_t(0), &err)
    
    	buf := make([]byte, len(input)*4)
    	dst := (*C.char)(unsafe.Pointer(&buf[0]))
    	src := C.CString(input)
    
    	cn := C.int32_t(0)
    
    	switch caser {
    	case "fold":
    		cn = C.ucasemap_utf8FoldCase(cm,
    			dst, C.int32_t(len(buf)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/cases/info.go

    // preventing a break between two cased letters. For now we will ignore this
    // (e.g. [ALetter] [ExtendNumLet] [Katakana] [ExtendNumLet] [ALetter] and
    // [ALetter] [Numeric] [MidNum] [Numeric] [ALetter].)
    //
    // Note 2: the rule for Mid is very approximate, but works in most cases. To
    // improve, we could store the categories in the trie value and use a FA to
    // manage breaks. See TODO comment above.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/text/cases/context.go

    // license that can be found in the LICENSE file.
    
    package cases
    
    import "golang.org/x/text/transform"
    
    // A context is used for iterating over source bytes, fetching case info and
    // writing to a destination buffer.
    //
    // Casing operations may need more than one rune of context to decide how a rune
    // should be cased. Casing implementations should call checkpoint on context
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. src/go/types/typeterm.go

    func (x *term) String() string {
    	switch {
    	case x == nil:
    		return "∅"
    	case x.typ == nil:
    		return "𝓤"
    	case x.tilde:
    		return "~" + x.typ.String()
    	default:
    		return x.typ.String()
    	}
    }
    
    // equal reports whether x and y represent the same type set.
    func (x *term) equal(y *term) bool {
    	// easy cases
    	switch {
    	case x == nil || y == nil:
    		return x == y
    	case x.typ == nil || y.typ == nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/library/format_test.go

    			if keyLHS == keyRHS {
    				continue
    			}
    			cases = append(cases, testcase{
    				name:        fmt.Sprintf("compare_%s_%s", keyLHS, keyRHS),
    				expr:        fmt.Sprintf(`format.%s() == format.%s()`, keyLHS, keyRHS),
    				expectValue: types.False,
    			})
    		}
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. src/cmp/cmp_test.go

    }
    
    func TestLess(t *testing.T) {
    	for _, test := range tests {
    		var b bool
    		switch test.x.(type) {
    		case int:
    			b = cmp.Less(test.x.(int), test.y.(int))
    		case string:
    			b = cmp.Less(test.x.(string), test.y.(string))
    		case float64:
    			b = cmp.Less(test.x.(float64), test.y.(float64))
    		case uintptr:
    			b = cmp.Less(test.x.(uintptr), test.y.(uintptr))
    		}
    		if b != (test.compare < 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. cmd/erasure-sets_test.go

    	"github.com/google/uuid"
    )
    
    var testUUID = uuid.MustParse("f5c58c61-7175-4018-ab5e-a94fe9c2de4e")
    
    func BenchmarkCrcHash(b *testing.B) {
    	cases := []struct {
    		key int
    	}{
    		{16},
    		{64},
    		{128},
    		{256},
    		{512},
    		{1024},
    	}
    	for _, testCase := range cases {
    		testCase := testCase
    		key := randString(testCase.key)
    		b.Run("", func(b *testing.B) {
    			b.SetBytes(1024)
    			b.ReportAllocs()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 12 07:21:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/build/relnote/dump.go

    	dprintf(depth, "%s\n", typeName)
    	switch b := b.(type) {
    	case *md.Paragraph:
    		dumpInlines(b.Text.Inline, depth+1)
    	case *md.Heading:
    		dumpInlines(b.Text.Inline, depth+1)
    	case *md.List:
    		dumpBlocks(b.Items, depth+1)
    	case *md.Item:
    		dumpBlocks(b.Blocks, depth+1)
    	default:
    		// TODO(jba): additional cases as needed.
    	}
    }
    
    func dumpInlines(ins []md.Inline, depth int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top