Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 465 for isnumber (0.12 sec)

  1. src/unicode/example_test.go

    	fmt.Printf("%t\n", unicode.IsDigit('৩'))
    	fmt.Printf("%t\n", unicode.IsDigit('A'))
    	// Output:
    	// true
    	// false
    }
    
    func ExampleIsNumber() {
    	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:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 08 00:18:29 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  2. src/unicode/graphic.go

    func IsMark(r rune) bool {
    	// There are no mark characters in Latin-1.
    	return isExcludingLatin(Mark, r)
    }
    
    // IsNumber reports whether the rune is a number (category [N]).
    func IsNumber(r rune) bool {
    	if uint32(r) <= MaxLatin1 {
    		return properties[uint8(r)]&pN != 0
    	}
    	return isExcludingLatin(Number, r)
    }
    
    // IsPunct reports whether the rune is a Unicode punctuation character
    // (category [P]).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 20:02:46 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/base/timings.go

    	// determine column widths and contents
    	var widths []int
    	var number []bool
    	for _, line := range lines {
    		for i, col := range line {
    			if i < len(widths) {
    				if len(col) > widths[i] {
    					widths[i] = len(col)
    				}
    			} else {
    				widths = append(widths, len(col))
    				number = append(number, isnumber(col)) // first line determines column contents
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. src/unicode/graphic_test.go

    		if got != want {
    			t.Errorf("%U incorrect: got %t; want %t", i, got, want)
    		}
    	}
    }
    
    func TestNumberLatin1(t *testing.T) {
    	for i := rune(0); i <= MaxLatin1; i++ {
    		got := IsNumber(i)
    		want := Is(Number, i)
    		if got != want {
    			t.Errorf("%U incorrect: got %t; want %t", i, got, want)
    		}
    	}
    }
    
    func TestIsPrintLatin1(t *testing.T) {
    	for i := rune(0); i <= MaxLatin1; i++ {
    		got := IsPrint(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)
  5. 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)
  6. pkg/config/security/security.go

    	"P-224",
    	"P-256",
    	"P-521",
    	"P-384",
    	"X25519",
    	"X25519Kyber768Draft00",
    )
    
    func IsValidCipherSuite(cs string) bool {
    	if cs == "" || cs == "ALL" {
    		return true
    	}
    	if !unicode.IsNumber(rune(cs[0])) && !unicode.IsLetter(rune(cs[0])) {
    		// Not all of these are correct, but this is needed to support advanced cases like - and + operators
    		// without needing to parse the full expression
    		return true
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 04:43:34 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/testdata/unicode.gox

    func IsDigit (r <type -21>) <type -15>;
    func IsGraphic (r <type -21>) <type -15>;
    func IsLetter (r <type -21>) <type -15>;
    func IsLower (r <type -21>) <type -15>;
    func IsMark (r <type -21>) <type -15>;
    func IsNumber (r <type -21>) <type -15>;
    func IsOneOf (ranges <type 23 [] <type 24 *<type 2>>>, r <type -21>) <type -15>;
    func IsPrint (r <type -21>) <type -15>;
    func IsPunct (r <type -21>) <type -15>;
    func IsSpace (r <type -21>) <type -15>;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 7.3K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/StaticVersionComparator.java

                Long numericPart2 = numericParts2[i];
    
                boolean is1Number = numericPart1 != null;
                boolean is2Number = numericPart2 != null;
    
                if (part1.equals(part2)) {
                    continue;
                }
                if (is1Number && !is2Number) {
                    return 1;
                }
                if (is2Number && !is1Number) {
                    return -1;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  9. src/main/resources/fess_indices/fess_user.user/user.json

          },
          "preferredLanguage" : {
            "type" : "keyword"
          },
          "departmentNumber" : {
            "type" : "keyword"
          },
          "uidNumber" : {
            "type" : "long"
          },
          "gidNumber" : {
            "type" : "long"
          },
          "homeDirectory" : {
            "type" : "keyword"
          },
          "groups": {
            "type": "keyword"
          },
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Dec 02 13:14:56 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  10. src/main/config/es/fess_user_user.json

                "type" : "keyword"
              },
              "employeeType" : {
                "type" : "keyword"
              },
              "facsimileTelephoneNumber" : {
                "type" : "keyword"
              },
              "gidNumber" : {
                "type" : "long"
              },
              "givenName" : {
                "type" : "keyword"
              },
              "groups" : {
                "type" : "keyword"
              },
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Dec 02 13:14:56 UTC 2021
    - 3.5K bytes
    - Viewed (0)
Back to top