commit | 739e3577ade0580cafd181d647d637fde813de02 | [log] [tgz] |
---|---|---|
author | Alex Vakulenko <avakulenko@google.com> | Thu Dec 03 15:33:19 2015 -0800 |
committer | Alex Vakulenko <avakulenko@google.com> | Fri Dec 04 02:18:47 2015 +0000 |
tree | 04a1c24faa45354f1dbe35bb4ff5aab0eb8295da | |
parent | 88f55d8a6765d176973bfa0ce7d1000305ad6770 [diff] |
Make Split() function work consistently with empty strings Split() would return an array of one string if the original string had no delimters. However in case the input is an empty string, the result will be a vector with zero elements, even if purge_empty_strings is set to false. Change-Id: If0cd2cd07d21b89c647d6d5b2985796cc78370af Reviewed-on: https://weave-review.googlesource.com/1765 Reviewed-by: Vitaly Buka <vitalybuka@google.com>