Macros.md (rakudo-2020.08.2) | : | Macros.md (rakudo-2020.09) | ||
---|---|---|---|---|
skipping to change at line 176 | skipping to change at line 176 | |||
Escapes horisontal whitespaces in the parameter with `\`. This is the macro used | Escapes horisontal whitespaces in the parameter with `\`. This is the macro used | |||
when parser encounters a `@@` macro call. | when parser encounters a `@@` macro call. | |||
### nl_escape(text) | ### nl_escape(text) | |||
_Pre-expanded_ | _Pre-expanded_ | |||
Escapes newlines in the parameter with `\`. | Escapes newlines in the parameter with `\`. | |||
### `c_escape(text)` | ||||
Escapes a string for use in `C` source code. | ||||
### `sq_escape(text)` | ||||
Escaping single quotes and backslashes. | ||||
Can e.g. be used in a Perl '' string. | ||||
### sp_unescape(text) | ### sp_unescape(text) | |||
Very simple unescaping. Replaces all `\<char>` sequences with `<char>`. | Very simple unescaping. Replaces all `\<char>` sequences with `<char>`. | |||
### nfp(path/file), nfpl(path1/file1 path2/file2 ...) | ### nfp(path/file), nfpl(path1/file1 path2/file2 ...) | |||
_Pre-expanded_ | _Pre-expanded_ | |||
The macro name stands for Normalize File Path. Converts Unix-style paths with | The macro name stands for Normalize File Path. Converts Unix-style paths with | |||
`/` directory separator into what is suitable for the current OS. Most typical | `/` directory separator into what is suitable for the current OS. Most typical | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 9 lines changed or added |