Ver código fonte

Added AppendLine to TStringBuilder

Carl Husberg 3 anos atrás
pai
commit
9a1b05d4d4
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8 0
      stringbuilder.mod/stringbuilder.bmx

+ 8 - 0
stringbuilder.mod/stringbuilder.bmx

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