X-Git-Url: http://git.kaliko.me/?p=ncmpc-debian.git;a=blobdiff_plain;f=src%2Futil%2FLocaleString.hxx;h=92f3a016b2aa7a00fcc8c03270d16aa19b66fe7e;hp=7f1c010084534ee688b26d0e962a4dca149f1eec;hb=52b52dd277c756ce46bc22eb08981ef9b4449453;hpb=7d119976c954c332d9cf52c4756d70089e15480c diff --git a/src/util/LocaleString.hxx b/src/util/LocaleString.hxx index 7f1c0100..92f3a016 100644 --- a/src/util/LocaleString.hxx +++ b/src/util/LocaleString.hxx @@ -34,6 +34,13 @@ #include +/** + * 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.