ru.makkarpov.scalingua.pofile.parse.MutableMultipartString.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalingua_2.11 Show documentation
Show all versions of scalingua_2.11 Show documentation
A simple gettext-like internationalization library for Scala
The newest version!
package ru.makkarpov.scalingua.pofile.parse
import ru.makkarpov.scalingua.pofile.MultipartString
import scala.collection.mutable
class MutableMultipartString {
private var parts: mutable.Builder[String, Seq[String]] = _
reset()
def reset(): Unit = parts = Seq.newBuilder[String]
def add(s: String): Unit = parts += s
def result: MultipartString = MultipartString(parts.result():_*)
}