mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
i8, i18, u16 str()
This commit is contained in:
parent
66f271f100
commit
c4a43633da
@ -41,6 +41,10 @@ pub fn (nn int) str() string {
|
|||||||
return tos(buf + max - len, len)
|
return tos(buf + max - len, len)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn (n i8) str() string { return int(n).str() }
|
||||||
|
pub fn (n i16) str() string { return int(n).str() }
|
||||||
|
pub fn (n u16) str() string { return int(n).str() }
|
||||||
|
|
||||||
pub fn (nn u32) str() string {
|
pub fn (nn u32) str() string {
|
||||||
mut n := nn
|
mut n := nn
|
||||||
if n == u32(0) {
|
if n == u32(0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user