aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/wcstringutil.h
diff options
context:
space:
mode:
authorGravatar Aaron Gyes <me@aaron.gy>2016-06-05 21:42:01 -0700
committerGravatar Aaron Gyes <me@aaron.gy>2016-06-05 21:42:01 -0700
commit7ef40f4e53827e9e2c429230f5fadbd093cd6402 (patch)
tree40f7cdc623615302ba40ee5e0dfa57c3994dada8 /src/wcstringutil.h
parent9f21e3792aed2ac0c9bbbc94d3e4ff169cc0288a (diff)
parent2fafb13eaa30981754a8cd0ba8f3c082e3147fa8 (diff)
Merge pull request #3118 from floam/headerdoc-fixes
Update Xcode project, HeaderDoc comments. Fix various invalid HeaderDoc comments. Normalize autoload.cpp/autoload.h as an example of something closer to "proper" HeaderDoc formatting. Have clang/Xcode validate HeaderDoc comments. Remove key_reader.cpp from Xcode project.
Diffstat (limited to 'src/wcstringutil.h')
-rw-r--r--src/wcstringutil.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/wcstringutil.h b/src/wcstringutil.h
index ea4489e7..4a86f86e 100644
--- a/src/wcstringutil.h
+++ b/src/wcstringutil.h
@@ -7,18 +7,16 @@
#include "common.h"
-/// Typedef that represents a range in a wcstring. The first element is the location, the second is
-/// the count.
+/// @typedef wcstring_range represents a range in a wcstring.
+/// The first element is the location, the second is the count.
typedef std::pair<wcstring::size_type, wcstring::size_type> wcstring_range;
/// wcstring equivalent of wcstok(). Supports NUL. For convenience and wcstok() compatibility, the
/// first character of each token separator is replaced with NUL.
-///
-/// Returns a pair of (pos, count).
-/// Returns (npos, npos) when it's done.
-/// Returns (pos, npos) when the token is already known to be the final token.
-///
-/// Note that the final token may not necessarily return (pos, npos).
+/// @return Returns a pair of (pos, count).
+/// This will be (npos, npos) when it's done. In the form of (pos, npos)
+/// when the token is already known to be the final token.
+/// @note The final token may not necessarily return (pos, npos).
wcstring_range wcstring_tok(wcstring& str, const wcstring& needle,
wcstring_range last = wcstring_range(0, 0));