Clarify comments.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25668 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-07-16 14:49:36 +00:00
parent 14be46fd4b
commit ab6ecc9fea

View File

@ -183,9 +183,10 @@ docstring const trim(docstring const & a, char const * p = " ");
*/ */
std::string const trim(std::string const & a, char const * p = " "); std::string const trim(std::string const & a, char const * p = " ");
/** Trims characters off the end of a string. /** Trims characters off the end of a string, removing any character
in p.
\code \code
rtrim("abccc", "c") == "ab". rtrim("abcde", "dec") == "ab".
\endcode \endcode
*/ */
std::string const rtrim(std::string const & a, char const * p = " "); std::string const rtrim(std::string const & a, char const * p = " ");
@ -193,7 +194,7 @@ docstring const rtrim(docstring const & a, char const * p = " ");
/** Trims characters off the beginning of a string. /** Trims characters off the beginning of a string.
\code \code
("ababcdef", "ab") = "cdef" ("abbabcdef", "ab") = "cdef"
\endcode \endcode
*/ */
std::string const ltrim(std::string const & a, char const * p = " "); std::string const ltrim(std::string const & a, char const * p = " ");