diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-09 15:11:11 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-09 15:11:11 -0500 |
| commit | 7a4f2e73addf6dfcde2a6b17b62b961608e556a0 (patch) | |
| tree | c03e4758e5725a4a6d352f5bb7d323796ed99947 /stdlib/bools.c | |
| parent | 5d35f286336878a3529dabdb3f7800b6f84712eb (diff) | |
Rename `from_text()` to `parse()`
Diffstat (limited to 'stdlib/bools.c')
| -rw-r--r-- | stdlib/bools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/bools.c b/stdlib/bools.c index bc1a6445..9a2c8cd6 100644 --- a/stdlib/bools.c +++ b/stdlib/bools.c @@ -22,7 +22,7 @@ PUREFUNC public Text_t Bool$as_text(const bool *b, bool colorize, const TypeInfo return *b ? Text("yes") : Text("no"); } -PUREFUNC public OptionalBool_t Bool$from_text(Text_t text) +PUREFUNC public OptionalBool_t Bool$parse(Text_t text) { if (Text$equal_ignoring_case(text, Text("yes")) || Text$equal_ignoring_case(text, Text("on")) |
