Expand description

Compile-time string operations

MSRV: Rust 1.51.0

Macros

Concatenates values into a string slice.

Returns true if the given pattern matches a sub-slice of this string slice.

Converts a string slice to a specified case. Non-ascii characters are not affected.

Converts a string literal to a specified case.

Encode a string slice with a specified encoding.

Encode a string slice with a specified encoding and append a nul character.

Returns true if the given pattern matches a suffix of this string slice.

Checks that two strings are equal.

Creates a string slice using interpolation of const expressions.

Converts a byte string literal to a string literal

Converts hexadecimal string slices to a byte array.

Converts a string slice to an IP address.

Returns the length of a string slice or a byte string

Parse a value from a string slice.

Converts a string slice to *const c_char.

Asserts that the string literal matches the pattern.

Creates a new string slice by repeating a string slice n times.

Replaces all matches of a pattern with another string slice.

Returns true if the given pattern matches a prefix of this string slice.

Converts a string slice or a byte string to a byte array.

Converts a string slice into an array of its characters.

Converts a value to a string slice.

Returns a compile-time verified header name string literal.

Returns a compile-time verified regex string literal.