Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 45 for emptystring (0.99 sec)

  1. operator/pkg/util/reflect.go

    // otherwise it returns false.
    func ValuesAreSameType(v1 reflect.Value, v2 reflect.Value) bool {
    	return v1.Type() == v2.Type()
    }
    
    // IsEmptyString returns true if value is an empty string.
    func IsEmptyString(value any) bool {
    	if value == nil {
    		return true
    	}
    	switch kindOf(value) {
    	case reflect.String:
    		if _, ok := value.(string); ok {
    			return value.(string) == ""
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java

        }
    
        @Override
        public synchronized void delete(final SynonymItem item) {
            final SynonymItem synonymItem = item;
            synonymItem.setNewInputs(StringUtil.EMPTY_STRINGS);
            synonymItem.setNewOutputs(StringUtil.EMPTY_STRINGS);
            try (SynonymUpdater updater = new SynonymUpdater(item)) {
                reload(updater);
            }
        }
    
        protected void reload(final SynonymUpdater updater) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/ds/DataStoreFactory.java

        private static final Logger logger = LogManager.getLogger(DataStoreFactory.class);
    
        protected Map<String, DataStore> dataStoreMap = new LinkedHashMap<>();
    
        protected String[] dataStoreNames = StringUtil.EMPTY_STRINGS;
    
        protected long lastLoadedTime = 0;
    
        public void add(final String name, final DataStore dataStore) {
            if (name == null || dataStore == null) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java

        private static OptionalEntity<CharMappingItem> getEntity(final CreateForm form) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
                final CharMappingItem entity = new CharMappingItem(0, StringUtil.EMPTY_STRINGS, StringUtil.EMPTY);
                return OptionalEntity.of(entity);
            case CrudMode.EDIT:
                if (form instanceof EditForm) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/RelatedContentHelper.java

                    }
                }
                return contentList.toArray(new String[contentList.size()]);
            }
            return StringUtil.EMPTY_STRINGS;
        }
    
        private String toLowerCase(final String term) {
            return term != null ? term.toLowerCase(Locale.ROOT) : term;
        }
    
        public void setRegexPrefix(final String regexPrefix) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlExtractor.java

                    return new String[] { obj.toString() };
                }
            } catch (final XPathException e) {
                logger.warn("Failed to parse the content by {}", path, e);
                return StringUtil.EMPTY_STRINGS;
            }
    
        }
    
        protected DOMParser getDomParser() {
            final DOMParser parser = new DOMParser();
            try {
                // feature
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

            }
        }
    
        @Override
        public synchronized void delete(final CharMappingItem item) {
            final CharMappingItem mappingItem = item;
            mappingItem.setNewInputs(StringUtil.EMPTY_STRINGS);
            mappingItem.setNewOutput(StringUtil.EMPTY);
            try (MappingUpdater updater = new MappingUpdater(item)) {
                reload(updater);
            }
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. src/net/ip.go

    	s := make([]byte, len(b)*2)
    	for i, tn := range b {
    		s[i*2], s[i*2+1] = hexDigit[tn>>4], hexDigit[tn&0xf]
    	}
    	return string(s)
    }
    
    // ipEmptyString is like ip.String except that it returns
    // an empty string when ip is unset.
    func ipEmptyString(ip IP) string {
    	if len(ip) == 0 {
    		return ""
    	}
    	return ip.String()
    }
    
    // MarshalText implements the [encoding.TextMarshaler] interface.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. operator/pkg/validate/validate.go

    func validateLeaf(validations map[string]ValidatorFunc, path util.Path, val any, checkRequired bool) util.Errors {
    	pstr := path.String()
    	msg := fmt.Sprintf("validate %s:%v(%T) ", pstr, val, val)
    	if util.IsValueNil(val) || util.IsEmptyString(val) {
    		if checkRequired && requiredValues[pstr] {
    			return util.NewErrs(fmt.Errorf("field %s is required but not set", util.ToYAMLPathString(pstr)))
    		}
    		msg += fmt.Sprintf("validate %s: OK (empty value)", pstr)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 12 16:04:15 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequest.java

            final String index;
            if (hits.length > 0) {
                index = hits[0].getIndex();
            } else {
                index = SuggestConstants.EMPTY_STRING;
            }
    
            final boolean singleWordQuery = isSingleWordQuery(query);
            final boolean hiraganaQuery = isHiraganaQuery(query);
            for (int i = 0; i < hits.length && words.size() < size; i++) {
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top