[][src]Crate slash_formatter

Slash Formatter

This crate provides functions to deal with slashes and backslashes in strings.

Examples

To see examples, check out the documentation for each function.

Macros

backslash

Concatenate multiple strings with backslashes.

backslash_in_place

Concatenate multiple strings with backslashes.

concat_with_backslash

Concatenates literals into a static string slice separated by a backslash. Prefixes and suffixes can also be added.

concat_with_file_separator

Concatenates literals into a static string slice separated by FILE_SEPARATOR. Prefixes and suffixes can also be added.

concat_with_slash

Concatenates literals into a static string slice separated by a slash. Prefixes and suffixes can also be added.

file_separator

Concatenate multiple strings with FILE_SEPARATOR. It can also be used to get the literal FILE_SEPARATOR.

file_separator_in_place

Concatenate multiple strings with FILE_SEPARATOR. It can also be used to get the literal FILE_SEPARATOR.

slash

Concatenate multiple strings with slashes. It can also be used to get the literal '/'.

slash_in_place

Concatenate multiple strings with slashes. It can also be used to get the literal '/'.

Functions

add_end_backslash

Add an ending backslash into a string.

add_end_backslash_in_place

Add an ending backslash into a string.

add_end_file_separator

Add an ending FILE_SEPARATOR into a string.

add_end_file_separator_in_place

Add an ending FILE_SEPARATOR into a string.

add_end_slash

Add an ending slash into a string.

add_end_slash_in_place

Add an ending slash into a string.

add_start_backslash

Add a starting backslash into a string.

add_start_backslash_in_place

Add a starting backslash into a string.

add_start_file_separator

Add a starting FILE_SEPARATOR into a string.

add_start_file_separator_in_place

Add a starting FILE_SEPARATOR into a string.

add_start_slash

Add a starting slash into a string.

add_start_slash_in_place

Add a starting slash into a string.

concat_with_backslash

Concatenate two strings with a backslash.

concat_with_backslash_in_place

Concatenate two strings with a backslash.

concat_with_file_separator

Concatenate two strings with FILE_SEPARATOR.

concat_with_file_separator_in_place

Concatenate two strings with FILE_SEPARATOR.

concat_with_slash

Concatenate two strings with a slash.

concat_with_slash_in_place

Concatenate two strings with a slash.

delete_end_backslash

Delete an ending backslash in a string except for '\\'.

delete_end_backslash_in_place

Delete an ending backslash in a string except for '\\'.

delete_end_file_separator

Delete an ending FILE_SEPARATOR a string except for just FILE_SEPARATOR.

delete_end_file_separator_in_place

Delete an ending FILE_SEPARATOR a string except for just FILE_SEPARATOR.

delete_end_slash

Delete an ending slash in a string except for '/'.

delete_end_slash_in_place

Delete an ending slash in a string except for '/'.

delete_start_backslash

Delete a starting backslash in a string except for '\\'.

delete_start_backslash_in_place

Delete a starting backslash in a string except for '\\'.

delete_start_file_separator

Delete a starting FILE_SEPARATOR a string except for just FILE_SEPARATOR.

delete_start_file_separator_in_place

Delete a starting FILE_SEPARATOR a string except for just FILE_SEPARATOR.

delete_start_slash

Delete a starting slash in a string except for '/'.

delete_start_slash_in_place

Delete a starting slash in a string except for '/'.