Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for underscore (0.23 sec)

  1. internal/s3select/sql/stringfuncs.go

    )
    
    const (
    	percent    rune = '%'
    	underscore rune = '_'
    	runeZero   rune = 0
    )
    
    func evalSQLLike(text, pattern string, escape rune) (match bool, err error) {
    	s := []rune{}
    	prev := runeZero
    	hasLeadingPercent := false
    	patLen := len([]rune(pattern))
    	for i, r := range pattern {
    		if i > 0 && prev == escape {
    			switch r {
    			case percent, escape, underscore:
    				s = append(s, r)
    				prev = r
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 4.2K bytes
    - Viewed (0)
  2. internal/event/target/postgresql.go

    		case r == '_', r == '$':
    			return r
    		default:
    			valid = false
    			return -1
    		}
    	}, name)
    
    	if valid {
    		// check for simple name or quoted name
    		// - letter/underscore followed by one or more letter/digit/underscore
    		// - any text between quotes (text cannot contain a quote itself)
    		if match, err := regexp.MatchString("^[a_][a0_$]*$", cleaned); err != nil {
    			return err
    		} else if match {
    			return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/lex/tokenizer.go

    	}
    }
    
    // We want center dot (·) and division slash (∕) to work as identifier characters.
    func isIdentRune(ch rune, i int) bool {
    	if unicode.IsLetter(ch) {
    		return true
    	}
    	switch ch {
    	case '_': // Underscore; traditional.
    		return true
    	case '\u00B7': // Represents the period in runtime.exit. U+00B7 '·' middle dot
    		return true
    	case '\u2215': // Represents the slash in runtime/debug.setGCPercent. U+2215 '∕' division slash
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  4. cmd/metrics-v2.go

    		// A is 65, a is 97
    		if v >= 'a' {
    			b.WriteRune(v)
    			continue
    		}
    		// v is capital letter here
    		// disregard first letter
    		// add underscore if last letter is capital letter
    		// add underscore when previous letter is lowercase
    		// add underscore when next letter is lowercase
    		if (i != 0 || i == l-1) && ((i > 0 && rune(camel[i-1]) >= 'a') ||
    			(i < l-1 && rune(camel[i+1]) >= 'a')) {
    			b.WriteRune('_')
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  5. 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
    		case r == '_':
    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)
  6. cmd/bucket-lifecycle-audit.go

    package cmd
    
    import "github.com/minio/minio/internal/bucket/lifecycle"
    
    //go:generate stringer -type lcEventSrc -trimprefix lcEventSrc_ $GOFILE
    type lcEventSrc uint8
    
    //revive:disable:var-naming Underscores is used here to indicate where common prefix ends and the enumeration name begins
    const (
    	lcEventSrc_None lcEventSrc = iota
    	lcEventSrc_Heal
    	lcEventSrc_Scanner
    	lcEventSrc_Decom
    	lcEventSrc_Rebal
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 01 15:56:24 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  7. src/bytes/bytes_test.go

    	{"", ""},
    	{"a", "A"},
    	{" aaa aaa aaa ", " Aaa Aaa Aaa "},
    	{" Aaa Aaa Aaa ", " Aaa Aaa Aaa "},
    	{"123a456", "123a456"},
    	{"double-blind", "Double-Blind"},
    	{"ÿøû", "Ÿøû"},
    	{"with_underscore", "With_underscore"},
    	{"unicode \xe2\x80\xa8 line separator", "Unicode \xe2\x80\xa8 Line Separator"},
    }
    
    func TestTitle(t *testing.T) {
    	for _, tt := range TitleTests {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  8. src/cmd/cgo/doc.go

    environment variables work in a similar way for C++ code.
    
    # Go references to C
    
    Within the Go file, C's struct field names that are keywords in Go
    can be accessed by prefixing them with an underscore: if x points at a C
    struct with a field named "type", x._type accesses the field.
    C struct fields that cannot be expressed in Go, such as bit fields
    or misaligned data, are omitted in the Go struct, replaced by
    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)
Back to top