Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 229 for isLetter (0.22 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DeprecationMessageBuilder.java

            StringBuilder cleanId = new StringBuilder();
            boolean previousWasDash = false;
            for (int i = 0; i < id.length(); i++) {
                char c = id.charAt(i);
                if (Character.isLetter(c)) {
                    previousWasDash = false;
                    cleanId.append(Character.toLowerCase(c));
                } else {
                    if (previousWasDash) {
                        continue;
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. internal/event/target/postgresql.go

    		return err
    	} else if match {
    		return nil
    	}
    
    	// normalize the name to letters, digits, _ or $
    	valid := true
    	cleaned := strings.Map(func(r rune) rune {
    		switch {
    		case unicode.IsLetter(r):
    			return 'a'
    		case unicode.IsDigit(r):
    			return '0'
    		case r == '_', r == '$':
    			return r
    		default:
    			valid = false
    			return -1
    		}
    	}, name)
    
    	if valid {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/third_party/forked/golang/json/fields.go

    		case strings.ContainsRune("!#$%&()*+-./:<=>?@[]^_{|}~ ", c):
    			// Backslash and quote chars are reserved, but
    			// otherwise any punctuation chars are allowed
    			// in a tag name.
    		default:
    			if !unicode.IsLetter(c) && !unicode.IsDigit(c) {
    				return false
    			}
    		}
    	}
    	return true
    }
    
    const (
    	caseMask     = ^byte(0x20) // Mask to ignore case in ASCII.
    	kelvin       = '\u212a'
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 13.1K bytes
    - Viewed (0)
  4. src/net/http/pattern.go

    		}
    	}
    	return p, nil
    }
    
    func isValidWildcardName(s string) bool {
    	if s == "" {
    		return false
    	}
    	// Valid Go identifier.
    	for i, c := range s {
    		if !unicode.IsLetter(c) && c != '_' && (i == 0 || !unicode.IsDigit(c)) {
    			return false
    		}
    	}
    	return true
    }
    
    func pathUnescape(path string) string {
    	u, err := url.PathUnescape(path)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  5. src/database/sql/convert.go

    	}
    	return fmt.Sprintf("with name %q", nv.Name)
    }
    
    func validateNamedValueName(name string) error {
    	if len(name) == 0 {
    		return nil
    	}
    	r, _ := utf8.DecodeRuneInString(name)
    	if unicode.IsLetter(r) {
    		return nil
    	}
    	return fmt.Errorf("name %q does not begin with a letter", name)
    }
    
    // ccChecker wraps the driver.ColumnConverter and allows it to be used
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. src/text/template/parse/lex.go

    	return r == ' ' || r == '\t' || r == '\r' || r == '\n'
    }
    
    // isAlphaNumeric reports whether r is an alphabetic, digit, or underscore.
    func isAlphaNumeric(r rune) bool {
    	return r == '_' || unicode.IsLetter(r) || unicode.IsDigit(r)
    }
    
    func hasLeftTrimMarker(s string) bool {
    	return len(s) >= 2 && s[0] == trimMarker && isSpace(rune(s[1]))
    }
    
    func hasRightTrimMarker(s string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 04 22:36:12 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  7. src/reflect/type.go

    	m sync.Map
    }
    
    type structTypeUncommon struct {
    	structType
    	u uncommonType
    }
    
    // isLetter reports whether a given 'rune' is classified as a Letter.
    func isLetter(ch rune) bool {
    	return 'a' <= ch && ch <= 'z' || 'A' <= ch && ch <= 'Z' || ch == '_' || ch >= utf8.RuneSelf && unicode.IsLetter(ch)
    }
    
    // isValidFieldName checks if a string is a valid (struct) field name or not.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/CharMatcher.java

       */
      @Deprecated
      public static CharMatcher javaDigit() {
        return JavaDigit.INSTANCE;
      }
    
      /**
       * Determines whether a character is a BMP letter according to {@linkplain
       * Character#isLetter(char) Java's definition}. If you only care to match letters of the Latin
       * alphabet, you can use {@code inRange('a', 'z').or(inRange('A', 'Z'))}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 53.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/CharMatcher.java

       */
      @Deprecated
      public static CharMatcher javaDigit() {
        return JavaDigit.INSTANCE;
      }
    
      /**
       * Determines whether a character is a BMP letter according to {@linkplain
       * Character#isLetter(char) Java's definition}. If you only care to match letters of the Latin
       * alphabet, you can use {@code inRange('a', 'z').or(inRange('A', 'Z'))}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  10. src/text/scanner/scanner.go

    	s.error(fmt.Sprintf(format, args...))
    }
    
    func (s *Scanner) isIdentRune(ch rune, i int) bool {
    	if s.IsIdentRune != nil {
    		return ch != EOF && s.IsIdentRune(ch, i)
    	}
    	return ch == '_' || unicode.IsLetter(ch) || unicode.IsDigit(ch) && i > 0
    }
    
    func (s *Scanner) scanIdentifier() rune {
    	// we know the zero'th rune is OK; start scanning at the next one
    	ch := s.next()
    	for i := 1; s.isIdentRune(ch, i); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top