Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LOWER_HYPHEN (0.05 sec)

  1. guava-tests/test/com/google/common/base/CaseFormatTest.java

        }
      }
    
      public void testLowerHyphenToLowerHyphen() {
        assertEquals("foo", LOWER_HYPHEN.to(LOWER_HYPHEN, "foo"));
        assertEquals("foo-bar", LOWER_HYPHEN.to(LOWER_HYPHEN, "foo-bar"));
      }
    
      public void testLowerHyphenToLowerUnderscore() {
        assertEquals("foo", LOWER_HYPHEN.to(LOWER_UNDERSCORE, "foo"));
        assertEquals("foo_bar", LOWER_HYPHEN.to(LOWER_UNDERSCORE, "foo-bar"));
      }
    
      public void testLowerHyphenToLowerCamel() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu May 04 09:41:29 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/CaseFormat.java

     *
     * @author Mike Bostock
     * @since 1.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public enum CaseFormat {
      /** Hyphenated variable naming convention, e.g., "lower-hyphen". */
      LOWER_HYPHEN(CharMatcher.is('-'), "-") {
        @Override
        String normalizeWord(String word) {
          return Ascii.toLowerCase(word);
        }
    
        @Override
        String convert(CaseFormat format, String s) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/CaseFormat.java

     *
     * @author Mike Bostock
     * @since 1.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public enum CaseFormat {
      /** Hyphenated variable naming convention, e.g., "lower-hyphen". */
      LOWER_HYPHEN(CharMatcher.is('-'), "-") {
        @Override
        String normalizeWord(String word) {
          return Ascii.toLowerCase(word);
        }
    
        @Override
        String convert(CaseFormat format, String s) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 6.3K bytes
    - Viewed (0)
Back to top