Skip to content

Commit

Permalink
#11107 Removed doxygen style documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed May 4, 2015
1 parent 21e5c3c commit 31889d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
9 changes: 1 addition & 8 deletions src/support/utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,7 @@ size_t u8_offset(const char *s, size_t charnum)
return i;
}

/**
* @brief Calculates number of characters in a UTF-8 string
*
* @param[in] s UTF-8 encoded string
* @param[in] offset Length of the string (or substring) in bytes
*
* @return Number of logical characters (or codepoints)
*/
/* byte offset => charnum */
size_t u8_charnum(const char *s, size_t offset)
{
size_t charnum = 0;
Expand Down
11 changes: 2 additions & 9 deletions src/support/utf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,8 @@ size_t u8_wc_toutf8(char *dest, uint32_t ch);
/* character number to byte offset */
DLLEXPORT size_t u8_offset(const char *str, size_t charnum);

/**
* @brief Calculates number of characters in UTF-8 encoded string
*
* @param[in] iStr UTF-8 encoded string (or substring)
* @param[in] iLen Length of string (or substring) in bytes
*
* @return Number of logical characters (or codepoints) in string (or substring)
*/
DLLEXPORT size_t u8_charnum(const char *iStr, size_t iLen);
/* byte offset to character number */
DLLEXPORT size_t u8_charnum(const char *str, size_t offset);

/* return next character, updating an index variable */
uint32_t u8_nextchar(const char *s, size_t *i);
Expand Down

0 comments on commit 31889d3

Please sign in to comment.