Files
Notes/notes-service/vendor/fluent-bundle/src/builtins.rs
T
2026-08-01 16:11:49 +03:00

14 lines
348 B
Rust

use crate::{FluentArgs, FluentValue};
#[allow(non_snake_case)]
pub fn NUMBER<'a>(positional: &[FluentValue<'a>], named: &FluentArgs) -> FluentValue<'a> {
let Some(FluentValue::Number(n)) = positional.first() else {
return FluentValue::Error;
};
let mut n = n.clone();
n.options.merge(named);
FluentValue::Number(n)
}