Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isASCIILower (0.13 sec)

  1. pkg/util/strcase/camelcase.go

    		// The next word is a sequence of characters that must start upper case.
    		if isASCIILower(c) {
    			c ^= ' ' // Make it a capital letter.
    		}
    		t = append(t, c) // Guaranteed not lower case.
    		// Accept lower case sequence that follows.
    		for i+1 < len(s) && isASCIILower(s[i+1]) {
    			i++
    			t = append(t, s[i])
    		}
    	}
    	return string(t)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 28 19:48:10 UTC 2020
    - 2.7K bytes
    - Viewed (0)
  2. pkg/util/strcase/camelcase_test.go

    			want: false,
    		},
    		{
    			name: "b",
    			c:    'b',
    			want: true,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := isASCIILower(tt.c); got != tt.want {
    				t.Errorf("isASCIILower() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func Test_isASCIIDigit(t *testing.T) {
    	tests := []struct {
    		name string
    		c    byte
    		want bool
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top