StringGrouper

Groups sub sections of Strings. Basically implements String.grouped, except that it guarantees that it won't break surrogate pairs.

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(s: String, n: Int): List[String]

Group the given string by the given size.

Group the given string by the given size.

Value parameters:
n

The size of the groups.

s

The string to group.

Returns:

A list of strings, grouped by the specific size.