1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vlib: remove ustring usage (#10618)

This commit is contained in:
Daniel Däschle
2021-06-30 21:30:28 +02:00
committed by GitHub
parent 9d02ca51d1
commit 3881e97a40
14 changed files with 86 additions and 80 deletions

View File

@@ -1,6 +1,5 @@
import os
import os.notify
import time
// make a pipe and return the (read, write) file descriptors
fn make_pipe() ?(int, int) {

View File

@@ -90,18 +90,6 @@ pub fn read_lines(path string) ?[]string {
return res
}
// read_ulines reads the file in `path` into an array of ustring lines.
fn read_ulines(path string) ?[]ustring {
lines := read_lines(path) ?
// mut ulines := new_array(0, lines.len, sizeof(ustring))
mut ulines := []ustring{}
for myline in lines {
// ulines[i] = ustr
ulines << myline.ustring()
}
return ulines
}
// sigint_to_signal_name will translate `si` signal integer code to it's string code representation.
pub fn sigint_to_signal_name(si int) string {
// POSIX signals: