MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / parse_named_value

Function parse_named_value

packages/server/src/android.rs:2146–2149  ·  view source on GitHub ↗
(input: &'a str, key: &str)

Source from the content-addressed store, hash-verified

2144}
2145
2146fn parse_named_value<'a>(input: &'a str, key: &str) -> Option<&'a str> {
2147 let (_, value) = input.split_once(key)?;
2148 Some(value.split([',', '}', ']']).next().unwrap_or(value).trim())
2149}
2150
2151fn parse_android_display_rotation(output: &str) -> Option<u16> {
2152 output

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected