Bläddra i källkod

Merge pull request #240 from thareh/master

Added AppendLine to TStringBuilder
Brucey 3 år sedan
förälder
incheckning
19ec22e5f4
1 ändrade filer med 9 tillägg och 0 borttagningar
  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.