Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 182 for format (0.58 sec)

  1. src/cmd/compile/internal/types2/format.go

    			arg = buf.String()
    		}
    		args[i] = arg
    	}
    	return fmt.Sprintf(format, args...)
    }
    
    // check may be nil.
    func (check *Checker) sprintf(format string, args ...any) string {
    	var qf Qualifier
    	if check != nil {
    		qf = check.qualifier
    	}
    	return sprintf(qf, false, format, args...)
    }
    
    func (check *Checker) trace(pos syntax.Pos, format string, args ...any) {
    	fmt.Printf("%s:\t%s%s\n",
    		pos,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. maven-embedder/src/main/java/org/apache/maven/cli/transfer/FileSizeFormat.java

                }
            }
        }
    
        public String format(long size) {
            return format(size, null);
        }
    
        public String format(long size, ScaleUnit unit) {
            return format(size, unit, false);
        }
    
        public String format(long size, ScaleUnit unit, boolean omitSymbol) {
            StringBuilder sb = new StringBuilder();
            format(sb, size, unit, omitSymbol);
            return sb.toString();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 21:48:41 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

            final Date date = toDate("10/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_MediumStyle() throws Exception {
            final Date date = toDate("2010/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
         */
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. maven-slf4j-provider/src/main/java/org/apache/maven/slf4j/MavenFailOnSeverityLogger.java

            super.warn(format, arg);
            logLevelRecorder.record(Level.WARN);
        }
    
        /**
         * Perform double parameter substitution before logging the message of level
         * WARN according to the format outlined above.
         */
        @Override
        public void warn(String format, Object arg1, Object arg2) {
            super.warn(format, arg1, arg2);
            logLevelRecorder.record(Level.WARN);
        }
    
        /**
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jan 09 06:36:58 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

            final Date date = toDate("11:49");
            assertThat(new SimpleDateFormat("HH:mm:ss").format(date), is("11:49:00"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_MediumStyle() throws Exception {
            final Date date = toDate("11:49:10");
            assertThat(new SimpleDateFormat("HH:mm:ss").format(date), is("11:49:10"));
        }
    
        /**
         * @throws Exception
         */
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

      public void testNameFormatWithPercentS_custom() {
        String format = "super-duper-thread-%s";
        ThreadFactory factory = builder.setNameFormat(format).build();
        for (int i = 0; i < 11; i++) {
          assertEquals(rootLocaleFormat(format, i), factory.newThread(monitoredRunnable).getName());
        }
      }
    
      public void testNameFormatWithPercentD_custom() {
        String format = "super-duper-thread-%d";
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

      public void testNameFormatWithPercentS_custom() {
        String format = "super-duper-thread-%s";
        ThreadFactory factory = builder.setNameFormat(format).build();
        for (int i = 0; i < 11; i++) {
          assertEquals(rootLocaleFormat(format, i), factory.newThread(monitoredRunnable).getName());
        }
      }
    
      public void testNameFormatWithPercentD_custom() {
        String format = "super-duper-thread-%d";
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  8. maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java

            // CHECKSTYLE_ON: MagicNumber
    
            String format;
            if (d > 0) {
                // Length 11+ chars
                format = "%d d %02d:%02d h";
            } else if (h > 0) {
                // Length 7 chars
                format = "%2$02d:%3$02d h";
            } else if (m > 0) {
                // Length 9 chars
                format = "%3$02d:%4$02d min";
            } else {
                // Length 7-8 chars
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:59 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/XslTransformer.java

            String destDir = "";
            if (args.length > 3) {
                destDir = args[3];
            }
    
            System.out.format("=> stylesheet %s%n", stylesheet);
            System.out.format("=> source %s%n", source);
            System.out.format("=> dest %s%n", dest);
            System.out.format("=> destDir %s%n", destDir);
    
            TransformerFactory factory = TransformerFactory.newInstance();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/extension/ReleasedVersionsDetails.kt

                .map { (_, v) -> v.maxOrNull()!!.format() }
    
            // Limit to first and last release of each major version
            mainTestedVersions = testedVersions.map { VersionNumber.parse(it.gradleVersion().version) }
                .groupBy { it.major }
                .map { (_, v) -> listOf(v.minOrNull()!!.format(), v.maxOrNull()!!.format()) }.flatten()
        }
    
        private
        fun VersionNumber.format() =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top