MapSplitter splitter = Splitter// .on(";")// .withKeyValueSeparator("=");
Assert.assertNotNull(splitter.split("key=value;key2=value")); /* throw Exception */splitter.split("key=value;key2=value=");--
guava-...@googlegroups.com
Project site: https://github.com/google/guava
This group: http://groups.google.com/group/guava-discuss
This list is for general discussion.
To report an issue: https://github.com/google/guava/issues/new
To get help: http://stackoverflow.com/questions/ask?tags=guava
---
You received this message because you are subscribed to the Google Groups "guava-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guava-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/guava-discuss/0d23e551-90f4-4d8e-b367-88c4058ea871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Under what circumstances would an input like that be valid, and not an indication that there's a bug in your input data?I don't believe there's any way to make that input allowed, just because it's ambiguous input: it could arguably be read as either "key2" mapped to "value=", or "key2=value" mapped to "".
The key contains all of the characters in the line starting with the first non-white space character and up to, but not including, the first unescaped'=',':', or white space character other than a line terminator.
--
guava-...@googlegroups.com
Project site: https://github.com/google/guava
This group: http://groups.google.com/group/guava-discuss
This list is for general discussion.
To report an issue: https://github.com/google/guava/issues/new
To get help: http://stackoverflow.com/questions/ask?tags=guava
---
You received this message because you are subscribed to the Google Groups "guava-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guava-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/guava-discuss/CAGsWfGixQHQO3TyOpomyeH%3DO1CvX9dkgberFiARUNfHAjjyOJw%40mail.gmail.com.