Skip to main content

extract_c_field_chunks

Function extract_c_field_chunks 

Source
pub fn extract_c_field_chunks(body: &str) -> Vec<(String, String)>
Expand description

Split a C/C++ struct body (text between { and }, exclusive) into field chunks separated by ; at depth 0.

Each chunk includes any preceding // or /* */ comments.