Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Alphanumeric (0.33 sec)

  1. cmd/api-headers_test.go

    package cmd
    
    import (
    	"testing"
    )
    
    func TestNewRequestID(t *testing.T) {
    	// Ensure that it returns an alphanumeric result of length 16.
    	id := mustGetRequestID(UTCNow())
    
    	if len(id) != 16 {
    		t.Fail()
    	}
    
    	var e rune
    	for _, char := range id {
    		e = char
    
    		// Ensure that it is alphanumeric, in this case, between 0-9 and A-Z.
    		if !(('0' <= e && e <= '9') || ('A' <= e && e <= 'Z')) {
    			t.Fail()
    		}
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 1.1K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    not just CGO_CFLAGS_ALLOW='-mfoo'. Similarly named variables control
    the allowed CPPFLAGS, CXXFLAGS, FFLAGS, and LDFLAGS.
    
    Also for security reasons, only a limited set of characters are
    permitted, notably alphanumeric characters and a few symbols, such as
    '.', that will not be interpreted in unexpected ways. Attempts to use
    forbidden characters will get a "malformed #cgo argument" error.
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/lex/input.go

    	// We use the Stack's input method; no macro processing at this stage.
    	tok := in.Stack.Next()
    	if tok != scanner.Ident {
    		in.expectText("expected identifier after # directive")
    	}
    	// Name is alphanumeric by definition.
    	return in.Stack.Text()
    }
    
    // #define processing.
    func (in *Input) define() {
    	name := in.macroName()
    	args, tokens := in.macroDefinition(name)
    	in.defineMacro(name, args, tokens)
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  4. src/bytes/bytes.go

    	}
    	return b
    }
    
    // isSeparator reports whether the rune could mark a word boundary.
    // TODO: update when package unicode captures more of the properties.
    func isSeparator(r rune) bool {
    	// ASCII alphanumerics and underscore are not separators
    	if r <= 0x7F {
    		switch {
    		case '0' <= r && r <= '9':
    			return false
    		case 'a' <= r && r <= 'z':
    			return false
    		case 'A' <= r && r <= 'Z':
    			return false
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
Back to top