diff options
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils/FtsUtils.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/FtsUtils.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/FtsUtils.java b/src/main/java/de/pixart/messenger/utils/FtsUtils.java index ee4f10da5..3a00ac7fd 100644 --- a/src/main/java/de/pixart/messenger/utils/FtsUtils.java +++ b/src/main/java/de/pixart/messenger/utils/FtsUtils.java @@ -107,4 +107,15 @@ public class FtsUtils { return input.substring(begin, end + 1); } } + + public static String toUserEnteredString(List<String> term) { + final StringBuilder builder = new StringBuilder(); + for (String part : term) { + if (builder.length() != 0) { + builder.append(' '); + } + builder.append(part); + } + return builder.toString(); + } }
\ No newline at end of file |