Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for isLetter (0.67 sec)

  1. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/NamespaceBuilder.java

            }
            return result.toString();
        }
    
        private static boolean isCppIdentifierCharacterStart(char c) {
            return Character.isLetter(c) || c == '_';
        }
    
        private static boolean isCppIdentifierCharacterPart(char c) {
            return Character.isLetter(c) || Character.isDigit(c) || c == '_';
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. src/unicode/example_test.go

    	fmt.Printf("%t\n", unicode.IsNumber('Ⅷ'))
    	fmt.Printf("%t\n", unicode.IsNumber('A'))
    	// Output:
    	// true
    	// false
    }
    
    func ExampleIsLetter() {
    	fmt.Printf("%t\n", unicode.IsLetter('A'))
    	fmt.Printf("%t\n", unicode.IsLetter('7'))
    	// Output:
    	// true
    	// false
    }
    
    func ExampleIsLower() {
    	fmt.Printf("%t\n", unicode.IsLower('a'))
    	fmt.Printf("%t\n", unicode.IsLower('A'))
    	// Output:
    	// true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 08 00:18:29 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/cases/info.go

    // isBreak returns whether this rune should introduce a break.
    func (c info) isBreak() bool {
    	return c.cccVal() == cccBreak
    }
    
    // isLetter returns whether the rune is of break type ALetter, Hebrew_Letter,
    // Numeric, ExtendNumLet, or Extend.
    func (c info) isLetter() bool {
    	ccc := c.cccVal()
    	if ccc == cccZero {
    		return !c.isCaseIgnorable()
    	}
    	return ccc != cccBreak
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/util/cdi/cdi.go

    		return fmt.Errorf("invalid name %q, should end with a letter or digit", name)
    	}
    	return nil
    }
    
    func isLetter(c rune) bool {
    	return ('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')
    }
    
    func isDigit(c rune) bool {
    	return '0' <= c && c <= '9'
    }
    
    func isAlphaNumeric(c rune) bool {
    	return isLetter(c) || isDigit(c)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 09:48:24 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  5. src/unicode/graphic.go

    func IsControl(r rune) bool {
    	if uint32(r) <= MaxLatin1 {
    		return properties[uint8(r)]&pC != 0
    	}
    	// All control characters are < MaxLatin1.
    	return false
    }
    
    // IsLetter reports whether the rune is a letter (category [L]).
    func IsLetter(r rune) bool {
    	if uint32(r) <= MaxLatin1 {
    		return properties[uint8(r)]&(pLmask) != 0
    	}
    	return isExcludingLatin(Letter, r)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 20:02:46 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/validate.go

    			return fmt.Errorf("duplicate analyzer: %s", a.Name)
    		}
    		color[a] = finished
    	}
    
    	return nil
    }
    
    func validIdent(name string) bool {
    	for i, r := range name {
    		if !(r == '_' || unicode.IsLetter(r) || i > 0 && unicode.IsDigit(r)) {
    			return false
    		}
    	}
    	return name != ""
    }
    
    type CycleInRequiresGraphError struct {
    	AnalyzerNames map[string]bool
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 21:52:54 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. src/text/scanner/example_test.go

    	}
    
    	fmt.Println()
    	s.Init(strings.NewReader(src))
    	s.Filename = "percent"
    
    	// treat leading '%' as part of an identifier
    	s.IsIdentRune = func(ch rune, i int) bool {
    		return ch == '%' && i == 0 || unicode.IsLetter(ch) || unicode.IsDigit(ch) && i > 0
    	}
    
    	for tok := s.Scan(); tok != scanner.EOF; tok = s.Scan() {
    		fmt.Printf("%s: %s\n", s.Position, s.TokenText())
    	}
    
    	// Output:
    	// default:1:1: %
    	// default:1:2: var1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 10 02:01:58 UTC 2018
    - 2.7K bytes
    - Viewed (0)
  8. src/unicode/graphic_test.go

    			want = true
    		}
    		if got != want {
    			t.Errorf("%U incorrect: got %t; want %t", i, got, want)
    		}
    	}
    }
    
    func TestIsLetterLatin1(t *testing.T) {
    	for i := rune(0); i <= MaxLatin1; i++ {
    		got := IsLetter(i)
    		want := Is(Letter, i)
    		if got != want {
    			t.Errorf("%U incorrect: got %t; want %t", i, got, want)
    		}
    	}
    }
    
    func TestIsUpperLatin1(t *testing.T) {
    	for i := rune(0); i <= MaxLatin1; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.6K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/tokenizer.go

    		line: 1,
    		file: file,
    	}
    }
    
    // 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 04 20:35:21 UTC 2022
    - 3K bytes
    - Viewed (0)
  10. utils/utils.go

    			return string(strconv.AppendInt(append([]byte(frame.File), ':'), int64(frame.Line), 10))
    		}
    	}
    
    	return ""
    }
    
    func IsValidDBNameChar(c rune) bool {
    	return !unicode.IsLetter(c) && !unicode.IsNumber(c) && c != '.' && c != '*' && c != '_' && c != '$' && c != '@'
    }
    
    // CheckTruth check string true or not
    func CheckTruth(vals ...string) bool {
    	for _, val := range vals {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 22 06:43:02 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top