2021-08-01 14:08:49 +03:00
|
|
|
module builtin
|
|
|
|
|
|
|
|
pub fn (i int) str() string {
|
|
|
|
mut res := ''
|
2021-09-08 20:30:46 +03:00
|
|
|
#res = new string( i )
|
|
|
|
|
|
|
|
return res
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn (i i64) str() string {
|
|
|
|
mut res := ''
|
|
|
|
#res = new string( i )
|
|
|
|
|
|
|
|
return res
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn (i u32) str() string {
|
|
|
|
mut res := ''
|
|
|
|
#res = new string( i )
|
|
|
|
|
|
|
|
return res
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn (i u64) str() string {
|
|
|
|
mut res := ''
|
|
|
|
#res = new string( i )
|
|
|
|
|
|
|
|
return res
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn (i bool) str() string {
|
|
|
|
mut res := ''
|
|
|
|
#res = new string( i )
|
|
|
|
|
|
|
|
return res
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn (i any) str() string {
|
|
|
|
mut res := ''
|
|
|
|
#res = new string( i.toString() )
|
|
|
|
|
|
|
|
return res
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn (i int_literal) str() string {
|
|
|
|
res := ''
|
|
|
|
#res.str = i.val.toString()
|
2021-08-01 14:08:49 +03:00
|
|
|
|
|
|
|
return res
|
|
|
|
}
|