Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for chars (0.04 sec)

  1. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    // in the form of "{XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}".
    func (guid GUID) String() string {
    	var str [100]uint16
    	chars := stringFromGUID2(&guid, &str[0], int32(len(str)))
    	if chars <= 1 {
    		return ""
    	}
    	return string(utf16.Decode(str[:chars-1]))
    }
    
    // KnownFolderPath returns a well-known folder path for the current user, specified by one of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  2. src/strings/strings_test.go

    		}
    	}
    	return -1
    }
    
    func TestIndexRandom(t *testing.T) {
    	const chars = "abcdefghijklmnopqrstuvwxyz0123456789"
    	for times := 0; times < 10; times++ {
    		for strLen := 5 + rand.Intn(5); strLen < 140; strLen += 10 { // Arbitrary
    			s1 := make([]byte, strLen)
    			for i := range s1 {
    				s1[i] = chars[rand.Intn(len(chars))]
    			}
    			s := string(s1)
    			for i := 0; i < 50; i++ {
    				begin := rand.Intn(len(s) + 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  3. src/go/types/expr.go

    			// allows for separators between all digits.
    			const limit = 10000
    			if len(e.Value) > limit {
    				check.errorf(e, InvalidConstVal, "excessively long constant: %s... (%d chars)", e.Value[:10], len(e.Value))
    				goto Error
    			}
    		}
    		x.setConst(e.Kind, e.Value)
    		if x.mode == invalid {
    			// The parser already establishes syntactic correctness.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    		}
    	})
    	if allocs != 0 {
    		t.Errorf("expected no allocations, got %f", allocs)
    	}
    }
    
    func runIndexAnyTests(t *testing.T, f func(s []byte, chars string) int, funcName string, testCases []BinOpTest) {
    	for _, test := range testCases {
    		a := []byte(test.a)
    		actual := f(a, test.b)
    		if actual != test.i {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/expr.go

    			// allows for separators between all digits.
    			const limit = 10000
    			if len(e.Value) > limit {
    				check.errorf(e, InvalidConstVal, "excessively long constant: %s... (%d chars)", e.Value[:10], len(e.Value))
    				goto Error
    			}
    		}
    		x.setConst(e.Kind, e.Value)
    		if x.mode == invalid {
    			// The parser already establishes syntactic correctness.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  6. src/reflect/type.go

    			i++
    		}
    		tag = tag[i:]
    		if tag == "" {
    			break
    		}
    
    		// Scan to colon. A space, a quote or a control character is a syntax error.
    		// Strictly speaking, control chars include the range [0x7f, 0x9f], not just
    		// [0x00, 0x1f], but in practice, we ignore the multi-byte control characters
    		// as it is simpler to inspect the tag's bytes than the tag's runes.
    		i = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  7. src/runtime/traceback.go

    //		Data    uintptr // unused by runtime, available for function
    //	}
    //
    // In C syntax, this struct will be
    //
    //	struct {
    //		uintptr_t PC;
    //		char*     File;
    //		uintptr_t Lineno;
    //		char*     Func;
    //		uintptr_t Entry;
    //		uintptr_t More;
    //		uintptr_t Data;
    //	};
    //
    // The PC field will be a value returned by a call to the traceback
    // function.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top