VirtualBox

Ignore:
Timestamp:
Dec 15, 2010 12:38:41 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68965
Message:

Main: more backslash conversion in settings read/write, so add generic methods to XML classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/ministring.cpp

    r33605 r35128  
    212212
    213213    return npos;
     214}
     215
     216void MiniString::findReplace(char cFind, char cReplace)
     217{
     218    for (size_t i = 0; i < length(); ++i)
     219    {
     220        char *p = &m_psz[i];
     221        if (*p == cFind)
     222            *p = cReplace;
     223    }
    214224}
    215225
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette