浏览代码

Added AppendLine to TStringBuilder

Carl Husberg 3 年之前
父节点
当前提交
9a1b05d4d4
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      stringbuilder.mod/stringbuilder.bmx

+ 8 - 0
stringbuilder.mod/stringbuilder.bmx

@@ -151,6 +151,14 @@ Public
 		bmx_stringbuilder_append_string(buffer, value)
 		Return Self
 	End Method
+	
+	Rem
+	bbdoc: Appends a #String onto the string builder with new line at the end.
+	End Rem	
+	Method AppendLine:TStringBuilder(value:String)
+		bmx_stringbuilder_append_string(buffer, value + "~r~n")
+		Return Self
+	End Method
 
 	Rem
 	bbdoc: Appends a #Byte value to the string builder.