Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/path_util.c
| Show First 20 Lines • Show All 290 Lines • ▼ Show 20 Lines | |||||
| * REMOVED based on popular demand (see T45900). | * REMOVED based on popular demand (see T45900). | ||||
| * Percent '%' char is a bit same case - not recommended to use it, | * Percent '%' char is a bit same case - not recommended to use it, | ||||
| * but supported by all decent FS/OS around. | * but supported by all decent FS/OS around. | ||||
| * | * | ||||
| * \note On Windows, it also ensures there is no '.' (dot char) at the end of the file, | * \note On Windows, it also ensures there is no '.' (dot char) at the end of the file, | ||||
| * this can lead to issues. | * this can lead to issues. | ||||
| * | * | ||||
| * \note On Windows, it also checks for forbidden names | * \note On Windows, it also checks for forbidden names | ||||
| * (see https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx ). | * (see https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file#naming-conventions ). | ||||
| */ | */ | ||||
| bool BLI_filename_make_safe(char *fname) | bool BLI_filename_make_safe(char *fname) | ||||
| { | { | ||||
| const char *invalid = | const char *invalid = | ||||
| "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||||
| "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||||
| "/\\?*:|\"<>"; | "/\\?*:|\"<>"; | ||||
| char *fn; | char *fn; | ||||
| ▲ Show 20 Lines • Show All 1,687 Lines • Show Last 20 Lines | |||||