2021-08-01 13:08:49 +02:00
|
|
|
module builtin
|
|
|
|
|
|
|
|
pub fn (i int) str() string {
|
|
|
|
mut res := ''
|
2021-09-08 19:30:46 +02: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 13:08:49 +02:00
|
|
|
|
|
|
|
return res
|
|
|
|
}
|