MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / parse_hex_byte

Function parse_hex_byte

crates/opencode-tui/src/theme/mod.rs:594–598  ·  view source on GitHub ↗
(a: u8, b: u8)

Source from the content-addressed store, hash-verified

592}
593
594fn parse_hex_byte(a: u8, b: u8) -> Option<u8> {
595 let high = parse_hex_nibble(a)?;
596 let low = parse_hex_nibble(b)?;
597 Some((high << 4) | low)
598}
599
600fn ansi_to_color(code: u64) -> Color {
601 if code < 16 {

Callers 1

parse_color_literalFunction · 0.85

Calls 1

parse_hex_nibbleFunction · 0.85

Tested by

no test coverage detected