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)
| 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; |
no test coverage detected