VirtualBox

Changeset 35128 in vbox for trunk/include/iprt/cpp


Ignore:
Timestamp:
Dec 15, 2010 12:38:41 PM (14 years ago)
Author:
vboxsync
Message:

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

Location:
trunk/include/iprt/cpp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/ministring.h

    r34785 r35128  
    664664
    665665    /**
     666     * Replaces all occurences of cFind with cReplace in the member string.
     667     * In order not to produce invalid UTF-8, the characters must be ASCII
     668     * values less than 128; this is not verified.
     669     *
     670     * @param cFind Character to replace. Must be ASCII < 128.
     671     * @param cReplace Character to replace cFind with. Must be ASCII < 128.
     672     */
     673    void findReplace(char cFind, char cReplace);
     674
     675    /**
    666676     * Returns a substring of "this" as a new Utf8Str.
    667677     *
  • trunk/include/iprt/cpp/xml.h

    r33835 r35128  
    454454    bool getAttributeValue(const char *pcszMatch, const char *&ppcsz) const;
    455455    bool getAttributeValue(const char *pcszMatch, iprt::MiniString &str) const;
     456    bool getAttributeValuePath(const char *pcszMatch, iprt::MiniString &str) const;
    456457    bool getAttributeValue(const char *pcszMatch, int32_t &i) const;
    457458    bool getAttributeValue(const char *pcszMatch, uint32_t &i) const;
     
    473474        return setAttribute(pcszName, strValue.c_str());
    474475    }
     476    AttributeNode* setAttributePath(const char *pcszName, const iprt::MiniString &strValue);
    475477    AttributeNode* setAttribute(const char *pcszName, int32_t i);
    476478    AttributeNode* setAttribute(const char *pcszName, uint32_t i);
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