mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 01:01:12 -03:00
Be a bit more consistent and proper.
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user