pub trait Utf8NameSpaceImpl: AsUtf8 {
Show 35 methods // Provided methods fn hex_decode(&self) -> Result<ChunkedArray<Utf8Type>, PolarsError> { ... } fn hex_encode(&self) -> ChunkedArray<Utf8Type> { ... } fn base64_decode(&self) -> Result<ChunkedArray<Utf8Type>, PolarsError> { ... } fn base64_encode(&self) -> ChunkedArray<Utf8Type> { ... } fn to_integer( &self, base: u32, strict: bool ) -> Result<ChunkedArray<Int64Type>, PolarsError> { ... } fn contains_chunked( &self, pat: &ChunkedArray<Utf8Type>, literal: bool, strict: bool ) -> Result<ChunkedArray<BooleanType>, PolarsError> { ... } fn str_len_chars(&self) -> ChunkedArray<UInt32Type> { ... } fn str_len_bytes(&self) -> ChunkedArray<UInt32Type> { ... } fn contains( &self, pat: &str, strict: bool ) -> Result<ChunkedArray<BooleanType>, PolarsError> { ... } fn contains_literal( &self, lit: &str ) -> Result<ChunkedArray<BooleanType>, PolarsError> { ... } fn replace<'a>( &'a self, pat: &str, val: &str ) -> Result<ChunkedArray<Utf8Type>, PolarsError> { ... } fn replace_literal<'a>( &'a self, pat: &str, val: &str, n: usize ) -> Result<ChunkedArray<Utf8Type>, PolarsError> { ... } fn replace_all( &self, pat: &str, val: &str ) -> Result<ChunkedArray<Utf8Type>, PolarsError> { ... } fn replace_literal_all<'a>( &'a self, pat: &str, val: &str ) -> Result<ChunkedArray<Utf8Type>, PolarsError> { ... } fn extract( &self, pat: &str, group_index: usize ) -> Result<ChunkedArray<Utf8Type>, PolarsError> { ... } fn extract_all( &self, pat: &str ) -> Result<ChunkedArray<ListType>, PolarsError> { ... } fn strip_chars( &self, pat: &Series ) -> Result<ChunkedArray<Utf8Type>, PolarsError> { ... } fn strip_chars_start( &self, pat: &Series ) -> Result<ChunkedArray<Utf8Type>, PolarsError> { ... } fn strip_chars_end( &self, pat: &Series ) -> Result<ChunkedArray<Utf8Type>, PolarsError> { ... } fn strip_prefix( &self, prefix: &ChunkedArray<Utf8Type> ) -> ChunkedArray<Utf8Type> { ... } fn strip_suffix( &self, suffix: &ChunkedArray<Utf8Type> ) -> ChunkedArray<Utf8Type> { ... } fn split_exact( &self, by: &ChunkedArray<Utf8Type>, n: usize ) -> Result<StructChunked, PolarsError> { ... } fn split_exact_inclusive( &self, by: &ChunkedArray<Utf8Type>, n: usize ) -> Result<StructChunked, PolarsError> { ... } fn splitn( &self, by: &ChunkedArray<Utf8Type>, n: usize ) -> Result<StructChunked, PolarsError> { ... } fn split(&self, by: &ChunkedArray<Utf8Type>) -> ChunkedArray<ListType> { ... } fn split_inclusive( &self, by: &ChunkedArray<Utf8Type> ) -> ChunkedArray<ListType> { ... } fn extract_all_many( &self, pat: &ChunkedArray<Utf8Type> ) -> Result<ChunkedArray<ListType>, PolarsError> { ... } fn extract_groups( &self, pat: &str, dtype: &DataType ) -> Result<Series, PolarsError> { ... } fn count_matches( &self, pat: &str, literal: bool ) -> Result<ChunkedArray<UInt32Type>, PolarsError> { ... } fn count_matches_many( &self, pat: &ChunkedArray<Utf8Type>, literal: bool ) -> Result<ChunkedArray<UInt32Type>, PolarsError> { ... } fn to_lowercase(&self) -> ChunkedArray<Utf8Type> { ... } fn to_uppercase(&self) -> ChunkedArray<Utf8Type> { ... } fn to_titlecase(&self) -> ChunkedArray<Utf8Type> { ... } fn concat(&self, other: &ChunkedArray<Utf8Type>) -> ChunkedArray<Utf8Type> { ... } fn str_slice( &self, start: i64, length: Option<u64> ) -> ChunkedArray<Utf8Type> { ... }
}

Provided Methods§

source

fn hex_decode(&self) -> Result<ChunkedArray<Utf8Type>, PolarsError>

Available on non-crate feature binary_encoding only.
source

fn hex_encode(&self) -> ChunkedArray<Utf8Type>

Available on crate feature string_encoding only.
source

fn base64_decode(&self) -> Result<ChunkedArray<Utf8Type>, PolarsError>

Available on non-crate feature binary_encoding only.
source

fn base64_encode(&self) -> ChunkedArray<Utf8Type>

Available on crate feature string_encoding only.
source

fn to_integer( &self, base: u32, strict: bool ) -> Result<ChunkedArray<Int64Type>, PolarsError>

Available on crate feature string_to_integer only.
source

fn contains_chunked( &self, pat: &ChunkedArray<Utf8Type>, literal: bool, strict: bool ) -> Result<ChunkedArray<BooleanType>, PolarsError>

source

fn str_len_chars(&self) -> ChunkedArray<UInt32Type>

Get the length of the string values as number of chars.

source

fn str_len_bytes(&self) -> ChunkedArray<UInt32Type>

Get the length of the string values as number of bytes.

source

fn contains( &self, pat: &str, strict: bool ) -> Result<ChunkedArray<BooleanType>, PolarsError>

Check if strings contain a regex pattern.

source

fn contains_literal( &self, lit: &str ) -> Result<ChunkedArray<BooleanType>, PolarsError>

Check if strings contain a given literal

source

fn replace<'a>( &'a self, pat: &str, val: &str ) -> Result<ChunkedArray<Utf8Type>, PolarsError>

Replace the leftmost regex-matched (sub)string with another string

source

fn replace_literal<'a>( &'a self, pat: &str, val: &str, n: usize ) -> Result<ChunkedArray<Utf8Type>, PolarsError>

Replace the leftmost literal (sub)string with another string

source

fn replace_all( &self, pat: &str, val: &str ) -> Result<ChunkedArray<Utf8Type>, PolarsError>

Replace all regex-matched (sub)strings with another string

source

fn replace_literal_all<'a>( &'a self, pat: &str, val: &str ) -> Result<ChunkedArray<Utf8Type>, PolarsError>

Replace all matching literal (sub)strings with another string

source

fn extract( &self, pat: &str, group_index: usize ) -> Result<ChunkedArray<Utf8Type>, PolarsError>

Extract the nth capture group from pattern.

source

fn extract_all(&self, pat: &str) -> Result<ChunkedArray<ListType>, PolarsError>

Extract each successive non-overlapping regex match in an individual string as an array.

source

fn strip_chars( &self, pat: &Series ) -> Result<ChunkedArray<Utf8Type>, PolarsError>

source

fn strip_chars_start( &self, pat: &Series ) -> Result<ChunkedArray<Utf8Type>, PolarsError>

source

fn strip_chars_end( &self, pat: &Series ) -> Result<ChunkedArray<Utf8Type>, PolarsError>

source

fn strip_prefix( &self, prefix: &ChunkedArray<Utf8Type> ) -> ChunkedArray<Utf8Type>

source

fn strip_suffix( &self, suffix: &ChunkedArray<Utf8Type> ) -> ChunkedArray<Utf8Type>

source

fn split_exact( &self, by: &ChunkedArray<Utf8Type>, n: usize ) -> Result<StructChunked, PolarsError>

Available on crate feature dtype-struct only.
source

fn split_exact_inclusive( &self, by: &ChunkedArray<Utf8Type>, n: usize ) -> Result<StructChunked, PolarsError>

Available on crate feature dtype-struct only.
source

fn splitn( &self, by: &ChunkedArray<Utf8Type>, n: usize ) -> Result<StructChunked, PolarsError>

Available on crate feature dtype-struct only.
source

fn split(&self, by: &ChunkedArray<Utf8Type>) -> ChunkedArray<ListType>

source

fn split_inclusive(&self, by: &ChunkedArray<Utf8Type>) -> ChunkedArray<ListType>

source

fn extract_all_many( &self, pat: &ChunkedArray<Utf8Type> ) -> Result<ChunkedArray<ListType>, PolarsError>

Extract each successive non-overlapping regex match in an individual string as an array.

source

fn extract_groups( &self, pat: &str, dtype: &DataType ) -> Result<Series, PolarsError>

Available on crate feature extract_groups only.

Extract all capture groups from pattern and return as a struct.

source

fn count_matches( &self, pat: &str, literal: bool ) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Count all successive non-overlapping regex matches.

source

fn count_matches_many( &self, pat: &ChunkedArray<Utf8Type>, literal: bool ) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Count all successive non-overlapping regex matches.

source

fn to_lowercase(&self) -> ChunkedArray<Utf8Type>

Modify the strings to their lowercase equivalent.

source

fn to_uppercase(&self) -> ChunkedArray<Utf8Type>

Modify the strings to their uppercase equivalent.

source

fn to_titlecase(&self) -> ChunkedArray<Utf8Type>

Available on crate feature nightly only.

Modify the strings to their titlecase equivalent.

source

fn concat(&self, other: &ChunkedArray<Utf8Type>) -> ChunkedArray<Utf8Type>

Concat with the values from a second Utf8Chunked.

source

fn str_slice(&self, start: i64, length: Option<u64>) -> ChunkedArray<Utf8Type>

Slice the string values.

Determines a substring starting from start and with optional length length of each of the elements in array. start can be negative, in which case the start counts from the end of the string.

Implementors§