|
@@ -34,6 +34,11 @@ class StringBuf {
|
|
|
|
|
|
var b:String = "";
|
|
|
|
|
|
+ /**
|
|
|
+ The length of [this] StringBuf in characters.
|
|
|
+ **/
|
|
|
+ public var length(get,never) : Int;
|
|
|
+
|
|
|
/**
|
|
|
Creates a new StringBuf instance.
|
|
|
|
|
@@ -41,6 +46,10 @@ class StringBuf {
|
|
|
**/
|
|
|
public function new() {}
|
|
|
|
|
|
+ inline function get_length() : Int {
|
|
|
+ return b.length;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
Appends the representation of [x] to [this] StringBuf.
|
|
|
|