mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
all: add strings.Builder.write_string and use write_string instead of write (#8892)
This commit is contained in:
parent
36a6bc270c
commit
f54c1a5cc2
34 changed files with 402 additions and 397 deletions
|
@ -23,7 +23,7 @@ pub fn (mut b Builder) write_b(data byte) {
|
|||
b.len++
|
||||
}
|
||||
|
||||
pub fn (mut b Builder) write(s string) {
|
||||
pub fn (mut b Builder) write_string(s string) {
|
||||
b.buf.push_many(s.str, s.len)
|
||||
// b.buf << []byte(s) // TODO
|
||||
b.len += s.len
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue