VirtualBox

Changeset 16326 in vbox


Ignore:
Timestamp:
Jan 28, 2009 6:37:23 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42161
Message:

document Utf8Str::substr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/string.h

    r16324 r16326  
    77
    88/*
    9  * Copyright (C) 2006-2007 Sun Microsystems, Inc.
     9 * Copyright (C) 2006-2009 Sun Microsystems, Inc.
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    502502    static const size_t npos;
    503503
     504    /**
     505     * Returns a substring of "this" as a new Utf8Str. Works exactly like
     506     * its equivalent in std::string except that this interprets pos and n
     507     * as UTF-8 codepoints instead of bytes. With the default parameters "0"
     508     * and "npos", this always copies the entire string.
     509     * @param pos Index of first codepoints to copy from "this", counting from 0.
     510     * @param n Number of codepoints to copy, starting with the one at "pos".
     511     */
    504512    Utf8Str substr(size_t pos = 0, size_t n = npos) const;
    505513
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