projects
/
ncmpc-debian.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util/LocaleString: add IsIncompleteCharMB()
[ncmpc-debian.git]
/
src
/
util
/
LocaleString.hxx
diff --git
a/src/util/LocaleString.hxx
b/src/util/LocaleString.hxx
index
7f1c010
..
92f3a01
100644
(file)
--- a/
src/util/LocaleString.hxx
+++ b/
src/util/LocaleString.hxx
@@
-34,6
+34,13
@@
#include <cstddef>
+/**
+ * Is the given character incomplete?
+ */
+gcc_pure
+bool
+IsIncompleteCharMB(const char *s, size_t n);
+
/**
* Wrapper for std::mbrlen() which attempts to recover with a best
* effort from invalid or incomplete sequences.