mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.js: fix strings.Builder
This commit is contained in:
parent
24136ab88b
commit
ed99fc2d42
@ -13,7 +13,7 @@ pub:
|
|||||||
|
|
||||||
pub fn new_builder(initial_size int) Builder {
|
pub fn new_builder(initial_size int) Builder {
|
||||||
return Builder {
|
return Builder {
|
||||||
// buf: _make(0, initial_size, sizeof(byte))
|
buf: _make(0, initial_size, sizeof(byte))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
31
vlib/strings/builder_js.v
Normal file
31
vlib/strings/builder_js.v
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
// Copyright (c) 2019 Alexander Medvednikov. All rights reserved.
|
||||||
|
// Use of this source code is governed by an MIT license
|
||||||
|
// that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
module strings
|
||||||
|
|
||||||
|
struct Builder {
|
||||||
|
pub:
|
||||||
|
len int
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn new_builder(initial_size int) Builder {
|
||||||
|
return Builder {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn (b mut Builder) write(s string) {
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn (b mut Builder) writeln(s string) {
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn (b Builder) str() string {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn (b mut Builder) cut(n int) {
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn (b mut Builder) free() {
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user