- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for escapeFn (0.06 sec)
-
cmd/utils.go
// depending on input, additionally also handles situations such as // `//` are normalized as `/`, also removes any `/` prefix before // returning. func unescapeGeneric(p string, escapeFn func(string) (string, error)) (string, error) { ep, err := escapeFn(p) if err != nil { return "", err } return trimLeadingSlash(ep), nil } // unescapePath is similar to unescapeGeneric but for specifically // path unescaping.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 33K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java
String escaped3 = SuggestUtil.escapeWildcardQuery(query3); assertEquals("test\\*query\\?end", escaped3); // Test with no wildcards String query4 = "test query"; String escaped4 = SuggestUtil.escapeWildcardQuery(query4); assertEquals("test query", escaped4); // Test with multiple wildcards String query5 = "***???";
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 18.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/QueryStringBuilder.java
} /** * Escapes specific characters in a query string. * Replaces each specified character with its escaped version (prefixed with backslash). * * @param q the query string to escape * @param values the characters to escape * @return the escaped query string */ protected String escape(final String q, final String... values) { String value = q;Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/GsaConfigParser.java
return escape(s) + ".*"; } final StringBuilder buf = new StringBuilder(100); return appendFileterPath(buf, escape(s)); } /** * Escapes special regex characters in a string to create a literal pattern.Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 21.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/api/json/SearchApiManager.java
} /** * Escapes a callback name. * @param callbackName The callback name. * @return The escaped callback name. */ protected String escapeCallbackName(final String callbackName) { return "/**/" + callbackName.replaceAll("[^0-9a-zA-Z_\\$\\.]", StringUtil.EMPTY); } /** * Escapes a JSON object. * @param obj The object to escape.Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 54.6K bytes - Viewed (1) -
src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java
} } /** * Escapes wildcard characters in the given query string. * * This method replaces all occurrences of '*' with '\*' and * all occurrences of '?' with '\?' to ensure that these characters * are treated as literals rather than wildcard characters in queries. * * @param query the query string to escape * @return the escaped query string */Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 17.4K bytes - Viewed (0) -
README.md
}); ``` ### Text Processing and JSON ```java import org.codelibs.core.text.*; // JSON utilities with proper escaping String escaped = JsonUtil.escape("Hello \"World\" with special chars"); String unescaped = JsonUtil.unescape(escaped); // Text tokenization Tokenizer tokenizer = new Tokenizer("field1,field2,field3", ","); while (tokenizer.hasMoreTokens()) {Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sun Aug 31 02:56:02 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java
} public void test_unescape() throws Exception { // Test with escaped characters (backslash sequences) String content = "test\\t1\n" + // escaped tab sequence "test\\n2\n" + // escaped newline sequence "test3\n"; // no escape // Write content to test file writeTestFile(content); // Reload the fileRegistered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ViewHelper.java
return StringUtil.EMPTY; } /** * Escapes HTML and applies highlighting to text. * Handles boundary position detection if enabled. * * @param text the text to process * @return the escaped and highlighted text */ protected String escapeHighlight(final String text) { final String escaped = LaFunctions.h(text); final String value;Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 52.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java
return OptionalThing.of(key.toString()); } return OptionalThing.empty(); } /** * Escapes special characters in a value string for safe logging. * * @param action the string value to escape * @return the escaped string with tabs replaced by spaces */ protected String escapeValue(final String action) { return action.replace('\t', ' '); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 17.4K bytes - Viewed (0)