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

type name check fixes

This commit is contained in:
Alexander Medvednikov
2019-08-04 09:36:21 +02:00
parent 8bce5cb810
commit ee437de8d3
4 changed files with 34 additions and 12 deletions

View File

@ -188,6 +188,10 @@ pub fn (c byte) str() string {
return str
}
pub fn (c byte) is_capital() bool {
return c >= `A` && c <= `Z`
}
pub fn (b []byte) clone() []byte {
mut res := [byte(0); b.len]
for i := 0; i < b.len; i++ {