Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for IsLetter (0.27 sec)

  1. src/bytes/example_test.go

    	// Output: ["Achtung! Achtung"]
    }
    
    func ExampleTrimFunc() {
    	fmt.Println(string(bytes.TrimFunc([]byte("go-gopher!"), unicode.IsLetter)))
    	fmt.Println(string(bytes.TrimFunc([]byte("\"go-gopher!\""), unicode.IsLetter)))
    	fmt.Println(string(bytes.TrimFunc([]byte("go-gopher!"), unicode.IsPunct)))
    	fmt.Println(string(bytes.TrimFunc([]byte("1234go-gopher!567"), unicode.IsNumber)))
    	// Output:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. 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 {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 22 06:43:02 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. 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
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

              // Inefficient implementation that defines all letters as escapable.
              @Override
              protected int nextEscapeIndex(CharSequence csq, int index, int end) {
                while (index < end && !Character.isLetter(csq.charAt(index))) {
                  index++;
                }
                return index;
              }
            };
        assertEquals("\0HELLO \uD800\uDC00 WORLD!\n", e.escape("\0HeLLo \uD800\uDC00 WorlD!\n"));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

              // Inefficient implementation that defines all letters as escapable.
              @Override
              protected int nextEscapeIndex(CharSequence csq, int index, int end) {
                while (index < end && !Character.isLetter(csq.charAt(index))) {
                  index++;
                }
                return index;
              }
            };
        assertEquals("\0HELLO \uD800\uDC00 WORLD!\n", e.escape("\0HeLLo \uD800\uDC00 WorlD!\n"));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  6. 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 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  7. 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'))}.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K 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'))}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  9. src/bytes/bytes.go

    			return false
    		case 'A' <= r && r <= 'Z':
    			return false
    		case r == '_':
    			return false
    		}
    		return true
    	}
    	// Letters and digits are not separators
    	if unicode.IsLetter(r) || unicode.IsDigit(r) {
    		return false
    	}
    	// Otherwise, all we can do for now is treat spaces as separators.
    	return unicode.IsSpace(r)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolInfoProvider.kt

            val jvmNameFromProperty = property.getJvmNameFromAnnotation(analysisSession.useSiteSession, useSiteTarget)
            if (jvmNameFromProperty != null) {
                return jvmNameFromProperty
            }
    
            val accessor = if (isSetter) property.setter else property.getter
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Sep 19 22:14:09 GMT 2023
    - 7.1K bytes
    - Viewed (0)
Back to top