MCPcopy Create free account
hub / github.com/apache/arrow-rs / parse_bool

Function parse_bool

arrow-csv/src/reader/mod.rs:937–945  ·  view source on GitHub ↗
(string: &str)

Source from the content-addressed store, hash-verified

935}
936
937fn parse_bool(string: &str) -> Option<bool> {
938 if string.eq_ignore_ascii_case("false") {
939 Some(false)
940 } else if string.eq_ignore_ascii_case("true") {
941 Some(true)
942 } else {
943 None
944 }
945}
946
947// parse the column string to an Arrow Array
948fn build_decimal_array<T: DecimalType>(

Callers 1

build_boolean_arrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected