Skip to main content

handle_total

Function handle_total 

Source
pub fn handle_total(text: &str, entry: &mut Entry)
Expand description

Handle thr:total text content

Parses non-negative integer from text. Silently ignores non-numeric, negative, overflow, empty, and whitespace-only values (consistent with how parse_duration handles invalid input throughout the codebase).

ยงArguments

  • text - Text content of the thr:total element
  • entry - Entry to update with the parsed count