VirtualBox

Changeset 17634 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Mar 10, 2009 3:01:07 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
44112
Message:

OVF: add export support for remaining description entry items (actual image export is next)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/string.cpp

    r17054 r17634  
    3838const size_t Utf8Str::npos = (size_t)-1;
    3939
    40 Utf8Str Utf8Str::substr(size_t pos /*= 0*/, size_t n /*= npos*/) const
     40size_t Utf8Str::find(const char *pcszFind,
     41                     size_t pos /*= 0*/)
     42    const
     43{
     44    const char *pszThis, *p;
     45
     46    if (    ((pszThis = c_str()))
     47         && (pos < length())
     48         && ((p = strstr(pszThis + pos, pcszFind)))
     49       )
     50        return p - pszThis;
     51
     52    return npos;
     53}
     54
     55Utf8Str Utf8Str::substr(size_t pos /*= 0*/, size_t n /*= npos*/)
     56    const
    4157{
    4258    Utf8Str ret;
Note: See TracChangeset for help on using the changeset viewer.

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