(str_view: &ArrayRef)
| 89 | } |
| 90 | |
| 91 | fn soundex_view(str_view: &ArrayRef) -> Result<ArrayRef> { |
| 92 | let str_array = as_string_view_array(str_view)?; |
| 93 | let result = str_array |
| 94 | .iter() |
| 95 | .map(|opt_str| opt_str.map(compute_soundex)) |
| 96 | .collect::<StringArray>(); |
| 97 | Ok(Arc::new(result) as ArrayRef) |
| 98 | } |
| 99 | |
| 100 | fn classify_char(c: char) -> Option<char> { |
| 101 | match c.to_ascii_uppercase() { |
no test coverage detected
searching dependent graphs…