1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Shared utility functions for the resolver.
//!
//! Provides [`language_rank`] for SMI version preference ordering and
//! [`normalize_timestamp`] for LAST-UPDATED timestamp comparison. Both
//! are used by the OID and import phases to select the preferred module
//! when multiple modules define the same symbol or OID.
use crateLanguage;
/// Return a numeric rank for SMI language version.
///
/// Higher values are preferred when multiple modules define the same OID.
/// SMIv2 (rank 2) takes precedence over SMIv1 and SPPI (rank 1).
pub
/// Normalize LAST-UPDATED timestamps for comparison.
///
/// Expands 11-character timestamps (YYMMDDHHmmZ) to 13-character form
/// (YYYYMMDDHHmmZ) by prepending "19" for years >= 70 and "20" otherwise.
/// Already-expanded timestamps are returned as-is.
pub