Lines Matching +full:internal +full:- +full:mem
1 // SPDX-License-Identifier: 0BSD
6 /// \brief Find and replace non-printable characters with question marks
9 /// characters are printable. Otherwise single-byte character set is assumed
25 /// \brief Check if a string contains any non-printable characters
28 /// iswprint(3) returns non-zero for all of them; true otherwise.
31 /// \note In case mbrtowc(3) isn't available, single-byte character set
35 extern const char *tuklib_mask_nonprint_r(const char *str, char **mem);
37 /// \brief Replace non-printable characters with question marks
40 /// \param mem This function always calls free(*mem) to free the old
41 /// allocation and then sets *mem = NULL. Before the first
42 /// call, *mem should be initialized to NULL. If this
45 /// stored to *mem. Otherwise *mem will remain NULL.
50 /// allocated memory is also stored to *mem. A modified string
52 /// allocation fails, "???" is returned and *mem is NULL.
58 /// \brief Replace non-printable characters with question marks
60 /// This is a convenience function for single-threaded use. This calls
61 /// tuklib_mask_nonprint_r() using an internal static variable to hold