Crate slash_formatter

source ·
Expand description

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.

Functions

Add an ending backslash into a string.
Add an ending backslash into a string.
Add an ending backslash into a string.
Add an ending FILE_SEPARATOR into a string.
Add an ending FILE_SEPARATOR into a string.
Add an ending FILE_SEPARATOR into a string.
Add an ending slash into a string.
Add an ending slash into a string.
Add an ending slash into a string.
Add an starting backslash into a string.
Add an starting backslash into a string.
Add an starting backslash into a string.
Add an starting FILE_SEPARATOR into a string.
Add an starting FILE_SEPARATOR into a string.
Add an starting FILE_SEPARATOR into a string.
Add an starting slash into a string.
Add an starting slash into a string.
Add an starting slash into a string.
Concatenate two strings with a backslash.
Concatenate two strings with a backslash.
Concatenate two strings with a backslash.
Concatenate two strings with a FILE_SEPARATOR.
Concatenate two strings with a FILE_SEPARATOR.
Concatenate two strings with a FILE_SEPARATOR.
Concatenate two strings with a slash.
Concatenate two strings with a slash.
Concatenate two strings with a slash.
Delete an ending backslash in a string except for ‘\’.
Delete an ending backslash in a string except for ‘\’.
Delete an ending backslash in a string except for ‘\’.
Delete an ending FILE_SEPARATOR in a string except for the FILE_SEPARATOR.
Delete an ending FILE_SEPARATOR in a string except for the FILE_SEPARATOR.
Delete an ending FILE_SEPARATOR in a string except for the FILE_SEPARATOR.
Delete an ending slash in a string except for ‘/’.
Delete an ending slash in a string except for ‘/’.
Delete an ending slash in a string except for ‘/’.
Delete an starting backslash in a string except for ‘\’.
Delete an starting backslash in a string except for ‘\’.
Delete an starting backslash in a string except for ‘\’.
Delete an starting FILE_SEPARATOR in a string except for the FILE_SEPARATOR.
Delete an starting FILE_SEPARATOR in a string except for the FILE_SEPARATOR.
Delete an starting FILE_SEPARATOR in a string except for the FILE_SEPARATOR.
Delete an starting slash in a string except for ‘/’.
Delete an starting slash in a string except for ‘/’.
Delete an starting slash in a string except for ‘/’.