MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getStringFromList

Method getStringFromList

ij/src/main/java/ij/util/Tools.java:426–428  ·  view source on GitHub ↗

Retrieves a String form a list of key-number pairs like "value1="abc" str='the Text'". The "=" (if present) must be part of the 'key' string. Strings containing commas, semicolons or whitespace must be enclosed in single or double quotes. There must be no whitespace between key and quotes or key

(String list, String key)

Source from the content-addressed store, hash-verified

424 * Escape sequences with backslashes are recognized, also backslash-u???? for unicode.
425 * Returns null if 'list' is null or if the key is not found */
426 public static String getStringFromList(String list, String key) {
427 return getStringFromList(list, key, null);
428 }
429
430 public static String getStringFromList(String list, String key, String defaultValue) {
431 if (list == null) return defaultValue;

Callers 2

saveMethod · 0.95
getMultiplySymbolMethod · 0.95

Calls 5

decodeEscapedMethod · 0.95
charAtMethod · 0.80
substringMethod · 0.80
lengthMethod · 0.65
indexOfMethod · 0.45

Tested by

no test coverage detected