Skip to main content

first_codepoint

Function first_codepoint 

Source
pub fn first_codepoint<T>(
    arg: impl IntoExpr<T>,
) -> Expr<<T as StringLengthExpr>::Output>
Expand description

Returns the numeric code of the first character, or zero for empty text. Other multibyte encodings accept only ASCII characters. Maps to PostgreSQL ASCII, which returns Unicode code points with UTF8.