mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
table: TypeCategory; freetype: remove C code; [typedef] C structs;
Objective-C interfaces
This commit is contained in:
@ -195,7 +195,7 @@ pub fn (n int) hex() string {
|
||||
} else {
|
||||
11
|
||||
}
|
||||
hex := malloc(len) // 0x + \n
|
||||
hex := malloc(len) // 0x + \n
|
||||
count := int(C.sprintf(hex, '0x%x', n))
|
||||
return tos(hex, count)
|
||||
}
|
||||
@ -245,14 +245,14 @@ pub fn (c byte) str() string {
|
||||
}
|
||||
|
||||
pub fn (c byte) is_capital() bool {
|
||||
return c >= `A` && c <= `Z`
|
||||
}
|
||||
return c >= `A` && c <= `Z`
|
||||
}
|
||||
|
||||
pub fn (b []byte) clone() []byte {
|
||||
mut res := [byte(0); b.len]
|
||||
mut res := [byte(0); b.len]
|
||||
for i := 0; i < b.len; i++ {
|
||||
res[i] = b[i]
|
||||
}
|
||||
return res
|
||||
}
|
||||
res[i] = b[i]
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user