Skip to content

RayStudio36/StringBuilder.lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StringBuilder v0.2

StringBuilder module for lua

Installation

The stringbuilder.lua file should be dropped into an existing project and required by it.

StringBuilder = require 'stringbuilder'

Example

sb = StringBuilder()
sb:append(1):append('hello'):append(true)
sb:append(1, 2, 3)
sb:append_format('%d%s', 1, 'hello')
sb:append_line(1, 2, 3)
sb:append_array({1, 2, 3}, ', ')
sb:append_table({a=1, b=2, c=3}, ', ')
str = sb:tostring()
sb:clear()

About

StringBuilder module for lua

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages