Extract a value using a dot-separated path string (e.g., `"address.city"`). Convenience wrapper over `extract_path`.
(buf: &[u8], offset: usize, dot_path: &str)
| 75 | /// Extract a value using a dot-separated path string (e.g., `"address.city"`). |
| 76 | /// Convenience wrapper over `extract_path`. |
| 77 | pub fn extract_dot_path(buf: &[u8], offset: usize, dot_path: &str) -> Option<FieldRange> { |
| 78 | let segments: Vec<&str> = dot_path.split('.').collect(); |
| 79 | extract_path(buf, offset, &segments) |
| 80 | } |
| 81 | |
| 82 | #[cfg(test)] |
| 83 | mod tests { |