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

all: ~500 more byte=>u8

This commit is contained in:
Alexander Medvednikov
2022-04-15 18:25:45 +03:00
parent ae6a25f44e
commit fbb9e65c0f
148 changed files with 544 additions and 494 deletions

View File

@ -44,16 +44,16 @@ struct Reader {
// headings []string
data string
pub mut:
delimiter byte
comment byte
delimiter u8
comment u8
is_mac_pre_osx_le bool
row_pos int
}
[params]
pub struct ReaderConfig {
delimiter byte = `,`
comment byte = `#`
delimiter u8 = `,`
comment u8 = `#`
}
// new_reader initializes a Reader with string data to parse and,
@ -210,6 +210,6 @@ fn (mut r Reader) read_record() ?[]string {
return fields
}
fn valid_delim(b byte) bool {
fn valid_delim(b u8) bool {
return b != 0 && b != `"` && b != `\r` && b != `\n`
}

View File

@ -10,7 +10,7 @@ mut:
sb strings.Builder
pub mut:
use_crlf bool
delimiter byte
delimiter u8
}
pub fn new_writer() &Writer {