Function replace_placeholders_with_formatting

Source
pub fn replace_placeholders_with_formatting(
    input: &str,
    device_tags: &HashMap<String, DeviceTag>,
    country_code: &str,
    format: &NumberFormat,
) -> String
Expand description

Replaces placeholders in a string with values from device tags and applies number formatting when needed

ยงArguments

  • input - Input string with placeholders
  • device_tags - Map of device tags
  • country_code - Country code for number formatting
  • format - Number format to apply to tag values