(@Nullable CharSequence str, @NotNull CharSink<?> sink)
| 1391 | } |
| 1392 | |
| 1393 | public static void toUpperCase(@Nullable CharSequence str, @NotNull CharSink<?> sink) { |
| 1394 | if (str != null) { |
| 1395 | final int len = str.length(); |
| 1396 | for (int i = 0; i < len; i++) { |
| 1397 | sink.put(Character.toUpperCase(str.charAt(i))); |
| 1398 | } |
| 1399 | } |
| 1400 | } |
| 1401 | |
| 1402 | public static void trim(TrimType type, CharSequence str, StringSink sink) { |
| 1403 | if (str == null) { |