Changes in uspace/srv/fs/exfat/exfat_dentry.c [e738d56:ff0c270] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_dentry.c
re738d56 rff0c270 101 101 bool exfat_valid_char(wchar_t ch) 102 102 { 103 switch (ch) { 104 case 0x01 ... 0x1F: 105 case '/': 106 case '\\': 107 case '?': 108 case '|': 109 case '>': 110 case '<': 111 case '"': 112 case '*': 113 case ':': 114 return false; 115 default: 116 return true; 117 } 103 /* TODO */ 104 return true; 118 105 } 119 106 120 107 bool exfat_valid_name(const char *name) 121 108 { 122 size_t off = 0; 123 wchar_t ch; 124 125 while ((ch = str_decode(name, &off, STR_NO_LIMIT)) != 0) { 126 if (!exfat_valid_char(ch)) 127 return false; 128 } 109 /* TODO */ 129 110 return true; 130 111 } 131 112 132 size_t exfat_utf16_length(const uint16_t *wstr)113 size_t utf16_length(const uint16_t *wstr) 133 114 { 134 115 size_t len = 0;
Note:
See TracChangeset
for help on using the changeset viewer.