mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 18:07:42 +01:00
revert illegal/legal test change in legalize_for_path() (to be reverted again once we have a migration plan)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3192 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
74d1ce79da
commit
0d2ce27d4a
1 changed files with 2 additions and 2 deletions
|
|
@ -92,13 +92,13 @@ ustring
|
|||
legalize_for_path (ustring str)
|
||||
{
|
||||
ustring::size_type pos;
|
||||
ustring illegal_chars = "/\\*";
|
||||
ustring legal_chars = "abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_+=: ";
|
||||
ustring legal;
|
||||
|
||||
legal = str;
|
||||
pos = 0;
|
||||
|
||||
while ((pos = legal.find_first_of (illegal_chars, pos)) != string::npos) {
|
||||
while ((pos = legal.find_first_not_of (legal_chars, pos)) != string::npos) {
|
||||
legal.replace (pos, 1, "_");
|
||||
pos += 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue