- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for IsAlpha (0.23 sec)
-
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) -
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) -
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) -
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)