Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 4,541 for isString (0.08 seconds)

  1. cmd/postpolicyform.go

    	case int64:
    		return v, nil
    	case int:
    		return int64(v), nil
    	case string:
    		i, err := strconv.Atoi(v)
    		return int64(i), err
    	default:
    		return 0, errors.New("Invalid number format")
    	}
    }
    
    // isString - Safely check if val is of type string without causing panic.
    func isString(val any) bool {
    	_, ok := val.(string)
    	return ok
    }
    
    // ContentLengthRange - policy content-length-range field.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Oct 23 15:10:12 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  2. doc/go_spec.html

    </p>
    
    <h3 id="String_types">String types</h3>
    
    <p>
    A <i>string type</i> represents the set of string values.
    A string value is a (possibly empty) sequence of bytes.
    The number of bytes is called the length of the string and is never negative.
    Strings are immutable: once created,
    it is impossible to change the contents of a string.
    The predeclared string type is <code>string</code>;
    it is a <a href="#Types">named type</a>.
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Apr 01 23:39:18 GMT 2026
    - 287.8K bytes
    - Click Count (1)
  3. src/test/java/jcifs/util/InputValidatorTest.java

            assertEquals("teststring", InputValidator.sanitizeForLogging("test\nstring"));
            assertEquals("teststring", InputValidator.sanitizeForLogging("test\rstring"));
            assertEquals("teststring", InputValidator.sanitizeForLogging("test\tstring"));
    
            // Test long string truncation
            String longString = "a".repeat(1100);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  4. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            });
        }
    
        @Test
        public void testStringWithAllowedWhitespace() throws Exception {
            validator.validateString("test\tstring", 100, "test");
            validator.validateString("test\r\nstring", 100, "test");
            // Should pass without exception
        }
    
        @Test
        public void testValidPath() throws Exception {
            validator.validatePath("\\share\\folder\\file.txt");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/it/search/SearchApiTests.java

            String wcQuery1 = "othe*";
            String wcQuery2 = "oth??s";
            Map<String, String> params = new HashMap<>();
            params.put("q", field + ":" + query);
            params.put("num", "100");
            String response = checkMethodBase(new HashMap<>()).params(params).get("/api/v1/documents").asString();
            int recordCount = JsonPath.from(response).getInt("record_count");
            assertTrue(recordCount > 0);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 21 13:29:45 GMT 2025
    - 19K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/it/admin/SuggestTests.java

    public class SuggestTests extends CrudTestBase {
    
        private static final String NAME_PREFIX = "";
        private static final String API_PATH = "/api/admin/suggest";
        private static final String LIST_ENDPOINT_SUFFIX = "";
        private static final String ITEM_ENDPOINT_SUFFIX = "";
    
        private static final String KEY_PROPERTY = "";
    
        @Override
        protected String getNamePrefix() {
            return NAME_PREFIX;
        }
    
        @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/net/InetAddresses.java

      }
    
      private static @Nullable String convertDottedQuadToHex(String ipString) {
        int lastColon = ipString.lastIndexOf(':');
        String initialPart = ipString.substring(0, lastColon + 1);
        String dottedQuad = ipString.substring(lastColon + 1);
        byte[] quad = textToNumericFormatV4(dottedQuad);
        if (quad == null) {
          return null;
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/it/admin/FailureUrlTests.java

         */
        private void testReadFailureUrlLogs() {
            logger.info("[BEGIN] testReadFailureUrlLogs");
            final Map<String, Object> searchBody = new HashMap<>();
            searchBody.put("size", 100);
    
            String response = checkMethodBase(searchBody).get(API_PATH + "/logs").asString();
            List<Map<String, Object>> logs = JsonPath.from(response).getList("response.logs");
    
            logger.info("Failure URL logs: {}", logs);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/it/admin/DocumentsTests.java

            // Clean up test documents
            final Map<String, Object> searchBody = new HashMap<>();
            searchBody.put("size", 1000);
            searchBody.put("q", NAME_PREFIX + "*");
    
            String response = checkMethodBase(searchBody).get(SEARCHLIST_API_PATH + "/docs").asString();
            List<Map<String, Object>> docs = JsonPath.from(response).getList("response.docs");
    
            for (Map<String, Object> doc : docs) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/it/admin/StatsTests.java

            String response1 = checkGetMethod(searchBody, "").asString();
            Integer status1 = JsonPath.from(response1).get("response.status");
            assertEquals(Integer.valueOf(0), status1, "First call should return status 0");
    
            String response2 = checkGetMethod(searchBody, "").asString();
            Integer status2 = JsonPath.from(response2).get("response.status");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6.8K bytes
    - Click Count (0)
Back to Top