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.
Macros
Concatenate multiple strings with backslashes.
Concatenate multiple strings with backslashes.
Concatenate multiple strings with FILE_SEPARATORs.
Concatenate multiple strings with FILE_SEPARATORs.
Concatenate multiple strings with slashes.
Concatenate multiple strings with slashes.
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 a starting backslash into a string.
Add a starting backslash into a string.
Add a starting backslash into a string.
Add a starting FILE_SEPARATOR into a string.
Add a starting FILE_SEPARATOR into a string.
Add a starting FILE_SEPARATOR into a string.
Add a starting slash into a string.
Add a starting slash into a string.
Add a 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 a starting backslash in a string except for ‘\’.
Delete a starting backslash in a string except for ‘\’.
Delete a starting backslash in a string except for ‘\’.
Delete a starting FILE_SEPARATOR in a string except for the FILE_SEPARATOR.
Delete a starting FILE_SEPARATOR in a string except for the FILE_SEPARATOR.
Delete a starting FILE_SEPARATOR in a string except for the FILE_SEPARATOR.
Delete a starting slash in a string except for ‘/’.
Delete a starting slash in a string except for ‘/’.
Delete a starting slash in a string except for ‘/’.