mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-21 04:46:29 +00:00
Merge changes from str_substitution that are unrelated to that branch.
Included is a small bugfix to an ast_str helper, but most of these changes are simply doxygen fixes. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@185912 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -451,7 +451,7 @@ void ast_str_trim_blanks(struct ast_str *buf),
|
||||
)
|
||||
|
||||
/*!\brief Returns the current length of the string stored within buf.
|
||||
* \param A pointer to the ast_str string.
|
||||
* \param buf A pointer to the ast_str structure.
|
||||
*/
|
||||
AST_INLINE_API(
|
||||
size_t attribute_pure ast_str_strlen(struct ast_str *buf),
|
||||
@@ -461,7 +461,8 @@ size_t attribute_pure ast_str_strlen(struct ast_str *buf),
|
||||
)
|
||||
|
||||
/*!\brief Returns the current maximum length (without reallocation) of the current buffer.
|
||||
* \param A pointer to the ast_str string.
|
||||
* \param buf A pointer to the ast_str structure.
|
||||
* \retval Current maximum length of the buffer.
|
||||
*/
|
||||
AST_INLINE_API(
|
||||
size_t attribute_pure ast_str_size(struct ast_str *buf),
|
||||
@@ -471,7 +472,8 @@ size_t attribute_pure ast_str_size(struct ast_str *buf),
|
||||
)
|
||||
|
||||
/*!\brief Returns the string buffer within the ast_str buf.
|
||||
* \param A pointer to the ast_str string.
|
||||
* \param buf A pointer to the ast_str structure.
|
||||
* \retval A pointer to the enclosed string.
|
||||
*/
|
||||
AST_INLINE_API(
|
||||
char * attribute_pure ast_str_buffer(struct ast_str *buf),
|
||||
@@ -480,6 +482,11 @@ char * attribute_pure ast_str_buffer(struct ast_str *buf),
|
||||
}
|
||||
)
|
||||
|
||||
/*!\brief Truncates the enclosed string to the given length.
|
||||
* \param buf A pointer to the ast_str structure.
|
||||
* \param len Maximum length of the string.
|
||||
* \retval A pointer to the resulting string.
|
||||
*/
|
||||
AST_INLINE_API(
|
||||
char *ast_str_truncate(struct ast_str *buf, ssize_t len),
|
||||
{
|
||||
|
Reference in New Issue
Block a user