Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 291 - 300 of 489 for charm (0.02 seconds)

  1. android/guava-tests/test/com/google/common/io/TestCharSource.java

    import static java.nio.charset.StandardCharsets.UTF_8;
    
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.Reader;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * A char source for testing that has configurable options.
     *
     * @author Colin Decker
     */
    @NullUnmarked
    public class TestCharSource extends CharSource implements TestStreamSupplier {
    
      private final TestByteSource byteSource;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  2. src/test/java/jcifs/util/StringsTest.java

            }
    
            @ParameterizedTest
            @DisplayName("getBytes should handle various string inputs")
            @NullAndEmptySource
            @ValueSource(strings = { "Simple ASCII", "Special chars: !@#$%^&*()", "Unicode: ñöt ascii ℃", "Mixed: ASCII + 中文 + Русский",
                    "Emojis: 🎉🌟💻", "Very long string with multiple words and various characters 1234567890" })
            void testGetBytesWithVariousInputs(String input) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  3. .teamcity/src/main/kotlin/model/FunctionalTestBucketModel.kt

        ) : this(listOf(subproject), parallelizationMethod)
    
        val name = truncateName(subprojects.joinToString(","))
    
        private fun truncateName(str: String) =
            // Can't exceed Linux file name limit 255 char on TeamCity
            if (str.length > 200) {
                str.substring(0, 200) + "..."
            } else {
                str
            }
    
        override fun createFunctionalTestsFor(
            model: CIBuildModel,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Apr 10 15:09:32 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java

        public static String stripInvalidXMLCharacters(final String in) {
            if (StringUtil.isEmpty(in)) {
                return in;
            }
    
            final StringBuilder buf = new StringBuilder(in.length());
            char c;
            for (int i = 0; i < in.length(); i++) {
                c = in.charAt(i);
                if (c == 0x9 || c == 0xA || c == 0xD || (c >= 0x20 && c <= 0xD7FF) || (c >= 0xE000 && c <= 0xFFFD)
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sat Nov 22 13:28:22 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/text/JsonUtil.java

         *
         * @param value input
         * @return escaped string.
         */
        public static String escape(final String value) {
            if (value == null) {
                return null;
            }
    
            char c;
            final int len = value.length();
            final StringBuilder buf = new StringBuilder(len * 2);
    
            for (int i = 0; i < len; i++) {
                c = value.charAt(i);
                String escaped = switch (c) {
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jul 24 01:52:43 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/base/DefaultsTest.java

    @GwtIncompatible
    @NullUnmarked
    public class DefaultsTest extends TestCase {
      public void testGetDefaultValue() {
        assertEquals(false, Defaults.defaultValue(boolean.class).booleanValue());
        assertEquals('\0', Defaults.defaultValue(char.class).charValue());
        assertEquals(0, Defaults.defaultValue(byte.class).byteValue());
        assertEquals(0, Defaults.defaultValue(short.class).shortValue());
        assertEquals(0, Defaults.defaultValue(int.class).intValue());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/suggest/index/contents/querylog/QueryLogTest.java

            assertEquals("カテゴリ:技術", queryLog.getFilterQueryString());
        }
    
        @Test
        public void test_specialCharacters() throws Exception {
            String query = "test-query_with.special@chars!";
            QueryLog queryLog = new QueryLog(query, null);
    
            assertEquals(query, queryLog.getQueryString());
        }
    
        @Test
        public void test_longQuery() throws Exception {
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Thu Nov 13 00:40:54 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  8. maven-tests/mvnw

          return 1
        fi
      fi
    }
    
    # hash string like Java String::hashCode
    hash_string() {
      str="${1:-}" h=0
      while [ -n "$str" ]; do
        char="${str%"${str#?}"}"
        h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
        str="${str#?}"
      done
      printf %x\\n $h
    }
    
    verbose() { :; }
    [ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
    
    die() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Sep 25 18:22:49 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/opensearch/extension/analysis/ProlongedSoundMarkCharFilterFactory.java

    import org.opensearch.index.IndexSettings;
    import org.opensearch.index.analysis.AbstractCharFilterFactory;
    
    public class ProlongedSoundMarkCharFilterFactory extends AbstractCharFilterFactory {
        private char replacement;
    
        public ProlongedSoundMarkCharFilterFactory(final IndexSettings indexSettings, final Environment env, final String name,
                final Settings settings) {
            super(indexSettings, name);
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Sat Mar 15 06:51:20 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/io/ByteArrayDataInput.java

      @Override
      short readShort();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      int readUnsignedShort();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      char readChar();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      int readInt();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      long readLong();
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 27 20:25:25 GMT 2024
    - 2.7K bytes
    - Click Count (0)
Back to Top