parse_hex_u32

Function parse_hex_u32 

Source
pub fn parse_hex_u32(hex_str: &str) -> Option<u32>
Available on crate feature simd only.
Expand description

Parse hexadecimal string to u32 using SIMD when available

Optimized parsing of hex values commonly found in ASS files such as color values (&H00FF00FF&) and embedded data.

§Arguments

  • hex_str - Hexadecimal string (without 0x or &H prefix)

§Returns

Parsed u32 value or None if invalid hex format.

§Example

use ass_core::tokenizer::simd::parse_hex_u32;

let value = parse_hex_u32("00FF00FF").unwrap();
assert_eq!(value, 0x00FF00FF);