blob: a71c9004f2e47561f74dc951587c26b59c18e6f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id$
package scala.compat
class StringBuilder {
val str = new StringBuffer()
def this(s: String) = { this(); str.append(s) }
def charAt(i: Int): Char = str.charAt(i)
def append(x: Any): StringBuilder = {
str.append(x)
this
}
def append(x: Char): StringBuilder = {
str.append(x)
this
}
def append(x: String): StringBuilder = {
str.append(x)
this
}
def length(): Int = str.length()
def setLength(i: Int) = str.setLength(i)
override def toString() = str.toString()
}
|