The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
320 B
20 lines
320 B
1 year ago
|
## Added 'fill' kwarg to int.to_string()
|
||
|
|
||
|
int.to_string() now accepts a `fill` argument. This allows you to pad the
|
||
|
string representation of the integer with leading zeroes:
|
||
|
|
||
|
```meson
|
||
|
n = 4
|
||
|
message(n.to_string())
|
||
|
message(n.to_string(length: 3))
|
||
|
|
||
|
n = -4
|
||
|
message(n.to_string(length: 3))
|
||
|
```
|
||
|
|
||
|
OUTPUT:
|
||
|
```meson
|
||
|
4
|
||
|
004
|
||
|
-04
|
||
|
```
|