Changeset 17634 in vbox for trunk/src/VBox/Main/glue
- Timestamp:
- Mar 10, 2009 3:01:07 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 44112
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/string.cpp
r17054 r17634 38 38 const size_t Utf8Str::npos = (size_t)-1; 39 39 40 Utf8Str Utf8Str::substr(size_t pos /*= 0*/, size_t n /*= npos*/) const 40 size_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 55 Utf8Str Utf8Str::substr(size_t pos /*= 0*/, size_t n /*= npos*/) 56 const 41 57 { 42 58 Utf8Str ret;
Note:
See TracChangeset
for help on using the changeset viewer.