浏览代码

Merge pull request #240 from thareh/master

Added AppendLine to TStringBuilder
Brucey 3 年之前
父节点
当前提交
19ec22e5f4
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      stringbuilder.mod/stringbuilder.bmx

+ 9 - 0
stringbuilder.mod/stringbuilder.bmx

@@ -151,6 +151,15 @@ 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)
+		Append(value)
+		AppendNewLine()
+		Return Self
+	End Method
 
 	Rem
 	bbdoc: Appends a #Byte value to the string builder.