Changeset 44349 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 24, 2013 10:44:42 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r44320 r44349 1523 1523 * preferred to remove the space and brackets too). We also remove all 1524 1524 * characters which need UTF-16 surrogate pairs for Windows's benefit. */ 1525 #ifdef RT_STRICT1526 1525 RTUNICP aCpSet[] = 1527 1526 { ' ', ' ', '(', ')', '-', '.', '0', '9', 'A', 'Z', 'a', 'z', '_', '_', 1528 1527 0xa0, 0xd7af, '\0' }; 1529 #endif1530 1528 char *pszName = strName.mutableRaw(); 1531 Assert(RTStrPurgeComplementSet(pszName, aCpSet, '_') >= 0); 1529 if (RTStrPurgeComplementSet(pszName, aCpSet, '_') < 0) 1530 AssertFailed(); 1532 1531 /* No leading dot or dash. */ 1533 1532 if (pszName[0] == '.' || pszName[0] == '-')
Note:
See TracChangeset
for help on using the changeset viewer.