Skip to main content

istitle

Function istitle 

Source
pub fn istitle<D: Dimension>(a: &StringArray<D>) -> FerrayResult<Array<bool, D>>
Expand description

Return true where the string is titlecased and non-empty. Matches numpy.strings.istitle / CPython str.istitle() (do_istitle): uppercase/titlecase characters may only follow an uncased character (they open a word), lowercase characters may only follow a cased character, and at least one cased character is present. Titlecase (Lt) characters such as Dž count as an opening (uppercase-position) character, so "Dž" and "Džx" are titlecased.