Changeset 1883
- Timestamp:
- 3/6/2010 8:29:48 AM (2 years ago)
- File:
-
- 1 edited
-
branches/eraser6/6.0/Eraser.Manager/FileSystem.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/6.0/Eraser.Manager/FileSystem.cs
r1878 r1883 66 66 "ABCDEFGHIJKLMNOPQRSTUVWXYZ _+=-()[]{}',`~!"; 67 67 for (int j = 0, k = resultAry.Length; j < k; ++j) 68 { 68 69 resultAry[j] = (byte)validFileNameChars[ 69 70 (int)resultAry[j] % validFileNameChars.Length]; 71 72 if (j == 0 || j == k - 1) 73 //The first or last character cannot be whitespace 74 while (Char.IsWhiteSpace((char)resultAry[j])) 75 resultAry[j] = (byte)validFileNameChars[ 76 (int)resultAry[j] % validFileNameChars.Length]; 77 } 70 78 71 79 result = Encoding.UTF8.GetString(resultAry);
Note: See TracChangeset
for help on using the changeset viewer.
