Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IsAlpha (0.1 sec)

  1. src/cmd/vendor/golang.org/x/text/internal/language/parse.go

    package language
    
    import (
    	"bytes"
    	"errors"
    	"fmt"
    	"sort"
    
    	"golang.org/x/text/internal/tag"
    )
    
    // isAlpha returns true if the byte is not a digit.
    // b must be an ASCII letter or digit.
    func isAlpha(b byte) bool {
    	return b > '9'
    }
    
    // isAlphaNum returns true if the string contains only ASCII letters or digits.
    func isAlphaNum(s []byte) bool {
    	for _, c := range s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/deleted_kinds_test.go

    				currentMajor: 1,
    				currentMinor: 20,
    				isAlpha:      true,
    			},
    			restStorage: storageRemovedIn(1, 20),
    			expected:    true,
    		},
    		{
    			name: "removed-in-curr-but-alpha-but-strict",
    			resourceExpirationEvaluator: resourceExpirationEvaluator{
    				currentMajor:                 1,
    				currentMinor:                 20,
    				isAlpha:                      true,
    				strictRemovedHandlingInAlpha: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

    }
    
    std::optional<llvm::SmallDenseMap<char, int64_t>> EquationToMap(
        llvm::StringRef equation) {
      llvm::SmallDenseMap<char, int64_t> map;
      for (int64_t i = 0; i < equation.size(); ++i) {
        if (!std::isalpha(equation[i])) {
          // Unsupported character in the equation.
          return std::nullopt;
        }
        if (map.count(equation[i])) {
          // Duplicate character in the equation.
          return std::nullopt;
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/aot/codegen.cc

    namespace tensorflow {
    namespace tfcompile {
    
    namespace {
    
    using BufferInfo = xla::cpu_function_runtime::BufferInfo;
    
    bool IsAlpha(char c) {
      return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z');
    }
    
    bool IsAlphaNum(char c) { return IsAlpha(c) || (c >= '0' && c <= '9'); }
    
    // Convert an XLA type into a C++ type.
    Status XLATypeToCpp(xla::PrimitiveType type, string* str) {
      switch (type) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/text/internal/language/lookup.go

    }
    
    type Region uint16
    
    // getRegionID returns the region id for s if s is a valid 2-letter region code
    // or unknownRegion.
    func getRegionID(s []byte) (Region, error) {
    	if len(s) == 3 {
    		if isAlpha(s[0]) {
    			return getRegionISO3(s)
    		}
    		if i, err := strconv.ParseUint(string(s), 10, 10); err == nil {
    			return getRegionM49(int(i))
    		}
    	}
    	return getRegionISO2(s)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top