mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
Correct comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20141 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d24f392c40
commit
779220a03b
@ -219,15 +219,18 @@ docstring const rtrim(docstring const & a, char const * p = " ");
|
||||
std::string const ltrim(std::string const & a, char const * p = " ");
|
||||
docstring const ltrim(docstring const & a, char const * p = " ");
|
||||
|
||||
/** Splits the string by the first delim.
|
||||
Splits the string by the first appearance of delim.
|
||||
The leading string up to delim is returned in piece (not including
|
||||
delim), while the original string is cut from after the delimiter.
|
||||
Example:
|
||||
/** Splits the string given in the first argument at the first occurence
|
||||
of the third argumnent, delim.
|
||||
What precedes delim is returned in the second argument, piece; this
|
||||
will be the whole of the string if no delimiter is found.
|
||||
The return value is what follows delim, if anything. So the return
|
||||
value is the null string if no delimiter is found.
|
||||
Examples:
|
||||
\code
|
||||
s1= ""; s2= "a;bc".split(s1, ';') -> s1 == "a"; s2 == "bc";
|
||||
s1= "a;bc"; s2= ""
|
||||
ret = split(s1, s2, ';') -> ret = "bc", s2 == "a"
|
||||
\endcode
|
||||
*/
|
||||
*/
|
||||
std::string const split(std::string const & a, std::string & piece, char delim);
|
||||
docstring const split(docstring const & a, docstring & piece, char_type delim);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user