compute_system_id

Function compute_system_id 

Source
fn compute_system_id(reflector: &str, protocol: &str) -> String
Expand description

Returns the Rdio Scanner system id for a given D-STAR reflector.

See the module-level documentation for the base-offset table. Unknown protocols or non-matching reflector-name patterns fall back to the raw 3-digit suffix (or "0" if none).

§Examples

assert_eq!(compute_system_id("REF030", "dplus"), "10030");
assert_eq!(compute_system_id("DCS030", "dcs"),   "30030");
assert_eq!(compute_system_id("XLX030", "dextra"),"20030");
assert_eq!(compute_system_id("XRF030", "dextra"),"40030");