Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
2156fc64
Commit
2156fc64
authored
Aug 20, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/StringStrip: more API documentation
parent
44144010
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
StringStrip.hxx
src/util/StringStrip.hxx
+8
-2
No files found.
src/util/StringStrip.hxx
View file @
2156fc64
...
@@ -35,8 +35,10 @@
...
@@ -35,8 +35,10 @@
#include <stddef.h>
#include <stddef.h>
/**
/**
* Returns a pointer to the first non-whitespace character in the
* Skips whitespace at the beginning of the string, and returns the
* string, or to the end of the string.
* first non-whitespace character. If the string has no
* non-whitespace characters, then a pointer to the NULL terminator is
* returned.
*/
*/
gcc_pure
gcc_returns_nonnull
gcc_nonnull_all
gcc_pure
gcc_returns_nonnull
gcc_nonnull_all
const
char
*
const
char
*
...
@@ -49,6 +51,10 @@ StripLeft(char *p) noexcept
...
@@ -49,6 +51,10 @@ StripLeft(char *p) noexcept
return
const_cast
<
char
*>
(
StripLeft
((
const
char
*
)
p
));
return
const_cast
<
char
*>
(
StripLeft
((
const
char
*
)
p
));
}
}
/**
* Skips whitespace at the beginning of the string, and returns the
* first non-whitespace character or the end pointer.
*/
gcc_pure
gcc_returns_nonnull
gcc_nonnull_all
gcc_pure
gcc_returns_nonnull
gcc_nonnull_all
const
char
*
const
char
*
StripLeft
(
const
char
*
p
,
const
char
*
end
)
noexcept
;
StripLeft
(
const
char
*
p
,
const
char
*
end
)
noexcept
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment