$path = "D:\xcode\xdemo\realtime-screen-ocr-rust\pptx-rs\src\oxml\parse_sld.rs"
$lines = Get-Content $path -Encoding UTF8
for ($i=0; $i -lt $lines.Count; $i++) {
    $line = $lines[$i].Trim()
    if ($line -match '^pub fn |^fn ') {
        $ln = $i + 1
        Write-Output "$ln : $line"
    }
}
