Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 229 for isLetter (0.96 sec)

  1. 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)
  2. 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)
  3. src/cmd/compile/internal/syntax/scanner.go

    	for s.ch == ' ' || s.ch == '\t' || s.ch == '\n' && !nlsemi || s.ch == '\r' {
    		s.nextch()
    	}
    
    	// token start
    	s.line, s.col = s.pos()
    	s.blank = s.line > startLine || startCol == colbase
    	s.start()
    	if isLetter(s.ch) || s.ch >= utf8.RuneSelf && s.atIdentChar(true) {
    		s.nextch()
    		s.ident()
    		return
    	}
    
    	switch s.ch {
    	case -1:
    		if nlsemi {
    			s.lit = "EOF"
    			s.tok = _Semi
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
  4. 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)
  5. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/FileOrUriNotationConverter.java

                result.converted(((TextResource) notation).asFile());
            }
        }
    
        private static boolean isWindowsRootDirectory(String scheme) {
            return scheme.length() == 2 && Character.isLetter(scheme.charAt(0)) && scheme.charAt(1) == ':' && OperatingSystem.current().isWindows();
        }
    
        private static void convertToUrl(String notationString, NotationConvertResult<? super Object> result) {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 01:09:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. src/internal/fuzz/minimize_test.go

    			expected: []any{"00000"},
    		},
    		{
    			name: "string_with_letter",
    			fn: func(e CorpusEntry) error {
    				b := e.Values[0].(string)
    				r, _ := utf8.DecodeRune([]byte(b))
    				if unicode.IsLetter(r) {
    					return fmt.Errorf("bad %v", e.Values[0])
    				}
    				return nil
    			},
    			input:    []any{"ZZZZZ"},
    			expected: []any{"A"},
    		},
    	}
    
    	for _, tc := range cases {
    		tc := tc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 12 19:47:40 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go

    			if strings.HasPrefix(elem, "!!") {
    				return fmt.Errorf("invalid double negative in build constraint: %s", arg)
    			}
    			elem = strings.TrimPrefix(elem, "!")
    			for _, c := range elem {
    				if !unicode.IsLetter(c) && !unicode.IsDigit(c) && c != '_' && c != '.' {
    					return fmt.Errorf("invalid non-alphanumeric build constraint: %s", arg)
    				}
    			}
    		}
    	}
    	return nil
    }
    
    var (
    	nl         = []byte("\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. src/go/scanner/scanner.go

    		return 0, 0, false // no ":"
    	}
    	// i >= 0
    	n, err := strconv.ParseUint(string(text[i+1:]), 10, 0)
    	return i + 1, int(n), err == nil
    }
    
    func isLetter(ch rune) bool {
    	return 'a' <= lower(ch) && lower(ch) <= 'z' || ch == '_' || ch >= utf8.RuneSelf && unicode.IsLetter(ch)
    }
    
    func isDigit(ch rune) bool {
    	return isDecimal(ch) || ch >= utf8.RuneSelf && unicode.IsDigit(ch)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  9. src/go/token/token.go

    // is not a digit. Keywords are not identifiers.
    func IsIdentifier(name string) bool {
    	if name == "" || IsKeyword(name) {
    		return false
    	}
    	for i, c := range name {
    		if !unicode.IsLetter(c) && c != '_' && (i == 0 || !unicode.IsDigit(c)) {
    			return false
    		}
    	}
    	return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/rsc.io/markdown/code.go

    	var n int
    	peek := s
    	if peek.trimFence(&fence, &info, &n) {
    		if fence[0] == '~' && info != "" {
    			// goldmark does not handle info after ~~~
    			p.corner = true
    		} else if info != "" && !isLetter(info[0]) {
    			// goldmark does not allow numbered info.
    			// goldmark does not treat a tab as introducing a new word.
    			p.corner = true
    		}
    		for _, c := range info {
    			if isUnicodeSpace(c) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top