Skip to content

carstenbauer/StringBuilders.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StringBuilders

Project Status: Active - The project has reached a stable, usable state and is being actively developed. codecov

Overview

A simple type for building up Strings. Use as follows:

using StringBuilders

sb = StringBuilder()
append!(sb, "First string")
append!(sb, "Second string")

s = String(sb)

The advantage of StringBuilders.jl over using IOBuffer is in the API. Some may find The higher-level StringBuilders.jl API easier to use. For comparison, the example above using IOBuffer would be

io = IOBuffer()
write(io, "First string")
write(io, "Second String")
s = String(take!(io))
close(io)

About

A StringBuilder type for julia

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Julia 100.0%